Issue:
When opening a file or syncing a file to central in Revit, the following message is shown:
Revit File Corrupted
Data in file (file name) is corrupt and needs to be manually recovered.
Alternate message:
Revit
Data in file an unnamed file is corrupt and needs to be manually recovered.
Note: If this message only occurs when the Audit box is checked, a different issue may be occurring (See: Cannot open file with audit in Revit).
Other messages that can occur related to corruption:
Causes:
For information on possible causes of corruption in Revit, see: Causes of data corruption in Revit.
Solution:
Before continuing in this section, try to open the model with the Audit function checked. This is found in the open dialog box window.
Overview:
- Check Hard disk space
- Check for Corrupt RVT links
- Recover automatic backup
- Recover manual backup
- Other items to check
First check if the hard drive is low on free space.
When Revit opens an RVT file, it expands out the data into the user Temp folder (%TEMP%). If Revit is not able to write or read the Temp folder because of low hard disk space, then corruption messages can occur even when the RVT file itself is fine.
- To ensure that this is not happening, free up at least 5 GB of hard disk space (this requirement is documented in the System Requirements for Revit). If working with larger models/projects (over 100 MBs), ensure that there is even more space available.
To estimate how much space to keep free:
-
Take the total size of the project (main RVT + all linked RVT models).
-
Multiply by 20.
-
Add 5 GB.
[Total Size x 20 + 5 GBs] (For Collaboration for Revit models multiple by 3, i.e., Total Size x 20 x 3, before adding the 5 GBs.)
- To ensure that there is no bad data in the Temp folder, and possibly free up significant hard disk space, delete all items currently in the Temp folder. To access this, type %tmp% into the Start menu search, into the Run window (WINDOWS-R), or into the location bar of any folder window. Note: If a warning appears about a file/folder being in use, then skip these items as they are in use by a running application/service.
Check for Corrupt RVT links.
When Revit opens a model, it accesses linked Revit models to check for changes that have occurred. If the linked model is corrupt, a corruption message can appear during the open process (even though the model is not itself corrupt).
To check for this:
- Nonworkshared models: Move/copy the model to location that does not have access to the links (generally moving/copying it to another folder works, unless the link is in a network location).
- Workshared models: Try opening the model with all of the worksets closed . If the model opens without error, start opening the worksets and see if the error returns when accessing a workset containing Revit links.
If the system has at least 5 GB of hard disk space free and the error continues when opening the model with all the worksets closed, recover an automatic backup.
Follow the steps in the links below, based on your file type, to recover a backup copy of the file.
- For non-workshared files:
See: Recovering non-workshared files
Note: If the nonworkshared file was saved directly to a network location a backup copy of the file will be saved in the journals folder. This could be another location to recover a backup from.
-
For workshared files:
- File-based worksharing:
- Use the following help topic to repair the central model using a good local copy: Repair a Corrupt Central Model (File-Based Worksharing Only)
- If the repair option does not work, use one of the following to restore a prior version of the model: NOTE: Before attempting these restore options, copy the backup folder to a location away from the corrupt RVT file! If this is not done there is a good chance that the recovery process fails.
Note: If all of the Central Model Backups are corrupt, also check each of the local models, as well as their backups.
- Revit Server Enterprise: Restore a Previous Version of a Server-Based Central Model
- Collaboration for Revit: Collaboration for Revit: Downloading previous copies of models
If a good backup file can be recovered/opened, go through the following steps to clean up the model/system:
- In the Open dialog box, check the Audit and Detach from Central checkbox.
- Go to Manage > Purge Unused.
- Go to the Application Menu > Save As dialog box, and save the file under a new name (in the same location as the original central model).
- Switch to the desktop and open Windows Explorer (Windows key + E).Type %TEMP% in the address bar.
- Delete as many files as possible from this folder. Some files may not be able to be deleted if they are in use by other applications.
- Move the old local files and their backups to the desktop.
- Open Revit.
- Open the project file with "Create new local" checked.
If all of the local files are corrupt and all of the automatic backups are corrupt, recover a manual backup.
The automatic backups store a set number of backups , and if more saves are made during a single editing session than this number, all of the automatic backups made previous to the editing session will be replaced. If a problem occurs during the editing session and all of the backups are replaced then there will not be an automatic backup available prior to the problem. Making periodic manual backups ensures saving a good copy of the model.
Other items to check:
- Nonworkshared models saved directly to a network path will have a copy saved in the journals folder.
- Nonworkshared models stored on a cloud drive (e.g., A360 Drive, Dropbox, Box) may have separate backups--check the web interface for the cloud service for backup recovery options.
- Try opening the file without audit and selecting, "Create new local."
See Also:
- Error: Data in File Is Corrupt (Revit Help topic)
- Best Practices: Preventing Data Corruption in Revit (Revit Help topic)
