> ## Fixing data and structure files

> If your data or structure file has been corrupted, use 4D Tools to diagnose and repair the file. If the structure file cannot be repaired, reinstall the AudBase program and log in with the initial administrator password (see Initial passwords for a structure file).

> When repairing a data file with 4D Tools, the internal references associated with a record may become altered. Under normal circumstances, AudBase relies on the stability of these internal references to speed up processes, such as limiting record access for different users. To ensure these functions operate correctly after using 4D Tools, the first time a repaired data file is used the administrator needs to execute two items from AudBase's Clean Up Menu.

> To clean up a data file after repair
> 1. Log in as the administrator.
>    If necessary, synchronize the data and structure files.
> 2. From the Home Window, select Data Manager > Administrator Menu Bar.
> 3. Select Clean Ups > Update Subject Sets.
> 4. Select Clean Ups > Update Searches\Exports

> For more information, see Clean Ups Menu items

> Related Topics
> Execute All Clean Ups menu item
> Updating subject sets
> Updating searches and exports

> #### Ongoing file maintenance

> Over time data files can fragment, which can affect the performance of your files. It is recommended that you occasionally use 4D Tools to defragment and compact data files. Once the files have been compacted, you must execute the Clean Up Menu items described above.