MicroStation File Corruption: Recovery, Compress, and Axiom FileFixer Workflow
MicroStation files won't open, crash on save, or show missing elements due to corruption. I cover the built-in file repair, compress options, and the manual recovery workflow that saves corrupted design files.

MicroStation File Corruption: Recovery, Compress, and Axiom FileFixer Workflow
Axiom Int., a Bentley third-party support provider, describes file corruption as one of the top 10 MicroStation problems: "Problems that cause MicroStation to crash or prevent design files from opening can lead to late nights and working on weekends." Their FileFixer tool is specifically designed to repair corruption that MicroStation's built-in tools can't handle. Bentley's MicroStation 2024 release notes also list multiple defect fixes related to file corruption and stability.
File corruption in MicroStation can manifest as:
- File won't open (MicroStation crashes or hangs during loading)
- File opens but elements are missing
- File opens but crashes when saving
- File opens but displays error messages about invalid elements
- File size is unexpectedly large (bloat from corrupted data)
Fix 1: Use MicroStation's Built-in File Repair
MicroStation has a built-in file checking and repair tool:
- Close all files in MicroStation
- Go to File → Check File
- Select the corrupted file
- Choose Repair mode (not just Check)
- MicroStation scans the file for:
- Corrupted element headers
- Invalid geometry data
- Broken level references
- Corrupted cell definitions
- Invalid font references
- Click Repair to fix found issues
- Save the repaired file with a new name (don't overwrite the original)
When This Works
- Files with minor corruption (a few invalid elements)
- Files that crash occasionally but not consistently
- Files with bloat from deleted elements that weren't properly removed
When This Doesn't Work
- Files that won't open at all (MicroStation crashes before repair can run)
- Files with severe level table corruption
- Files with corrupted file headers
Fix 2: Use the Compress Command
File compression removes deleted elements and unused data, which can fix corruption caused by bloat:
- Open the file (if it opens)
- Go to File → Compress → Compress Options
- Select all options:
- Delete unused levels
- Delete unused attachment levels
- Delete unused definitions (cells, line styles, text styles)
- Delete unused shared cells
- Delete orphaned elements
- Click Compress
- Save the compressed file with a new name
Compress from Command Line
If the file won't open normally, try compressing from the command line:
- Open a command prompt
- Navigate to the MicroStation program directory
- Run:
microstation.exe -w -c "path\to\corrupted.dgn" - The
-wflag opens the file in a repair/work mode - If the file opens, run the compress command
- Save with a new name
Fix 3: Recover from Backup Files
MicroStation creates backup files automatically:
- Look for
.bakfiles in the same directory as the corrupted file - The
.bakfile is the previous version before the last save - Copy the
.bakfile and rename it to.dgn - Open the renamed file
- If it opens successfully, you've recovered the pre-corruption version
Previous Version Recovery
If the .bak file is also corrupted:
- Right-click the corrupted file in Windows File Explorer
- Select Properties → Previous Versions
- Windows may have shadow copies from System Restore or File History
- Select a version from before the corruption occurred
- Copy the previous version to a new location
Fix 4: Use the Key-in Commands for Recovery
MicroStation key-in commands can sometimes access corrupted files that won't open normally:
- Open MicroStation with a blank file
- In the key-in dialog, type:
This reads the file as a referenceRF=path\to\corrupted.dgn - If the file loads as a reference, use:
FENCE FILE>path\to\recovered.dgn - This copies all elements from the reference into a new file
- The new file has a clean file structure, free from corruption
Alternative Key-in Recovery
- Open MicroStation with a blank seed file
- Key-in:
REFERENCE ATTACH path\to\corrupted.dgn - If the reference attaches, key-in:
FENCE CREATE ALL - Key-in:
FENCE FILE>path\to\recovered.dgn - Open the recovered file and verify all elements are present
Fix 5: Use Axiom FileFixer
For corruption that MicroStation's built-in tools can't fix, Axiom's FileFixer is the industry-standard recovery tool:
- Purchase and install FileFixer from axiomint.com
- Run FileFixer on the corrupted file
- FileFixer performs deep-level analysis:
- Scans every element in the file
- Identifies and repairs corrupted element headers
- Rebuilds the level table
- Removes orphaned data
- Repairs cell definitions
- FileFixer can repair files that won't open in MicroStation at all
- The repaired file is saved with a new name
When to Use FileFixer
- When MicroStation's built-in repair fails
- When the file won't open at all
- When the file was corrupted by a crash during save
- When the file was recovered from a damaged drive
- For batch processing of multiple corrupted files
Fix 6: Prevent Corruption with Best Practices
Save Regularly
- Set MicroStation to auto-save: Workspace → Preferences → Operation
- Set Save interval to 15 minutes
- This reduces the amount of work lost if a crash occurs
Don't Work Over the Network
- Copy files from network drives to local storage before editing
- Network interruptions during save can corrupt files
- Copy the file back to the network after saving locally
Keep File Sizes Manageable
- Compress files regularly (see Fix 2)
- Split large files into multiple smaller files using references
- Keep individual design files under 100MB when possible
- Use references for survey data, existing conditions, and background imagery
Use Seed Files
- Always start new files from a standard seed file
- Don't create files by copying and renaming existing files
- Copying can carry over corruption from the original file
- Seed files have clean file structures
Close References Before Closing the Master File
- Detach all references before closing the master file
- This prevents reference corruption from affecting the master file
- Re-attach references when you reopen the file
Fix 7: Recover Elements from Corrupted Files
If you can open the file but some elements are missing or corrupted:
- Open the file in MicroStation
- Go to Edit → Select All (Ctrl+A)
- Copy all elements: Ctrl+C
- Create a new file from a seed file
- Paste the elements: Ctrl+V
- This copies only valid elements, leaving corrupted ones behind
- Check which elements are missing and recreate them
Fix 8: Check for Reference Corruption
Sometimes the master file is fine, but a reference file is corrupted:
- Open the master file
- If it's slow or crashes, detach all references
- Re-attach references one at a time
- When attaching a specific reference causes problems, that reference is corrupted
- Repair the reference file using the methods above
- Re-attach the repaired reference
Summary
| Fix | Type | When to Use | |-----|------|-------------| | Built-in file repair | First step | File opens but has issues | | Compress command | Maintenance | File opens but is bloated | | Backup file recovery | Quick recovery | .bak file exists | | Key-in recovery | Advanced | File won't open normally | | Axiom FileFixer | Last resort | All other methods fail | | Prevent corruption | Preventive | Ongoing best practices | | Element copy to new file | Partial recovery | Some elements missing | | Check reference corruption | Diagnostic | Master file seems fine |
The most effective recovery strategy is: try the built-in repair first, then try the key-in fence file method, then use FileFixer as a last resort. For prevention, always work on local copies (not network drives), compress files regularly, and use standard seed files for new designs.
Source Verification
More Microstation Guides
performance
MicroStation 3D Modeling Performance: Solids, Surfaces, and Display Optimization for Plant Design
8 min
troubleshooting
MicroStation DWG Compatibility: Import Export Issues, Line Weight Mapping, and Font Substitution
8 min
performance
MicroStation Large File Performance: Reference Files, Raster Manager, and Display Settings
9 min
troubleshooting
MicroStation Reference File Display Problems: Missing Geometry, Wrong Coordinates, and Level Overrides
8 min
Related Troubleshooting Guides
Similar troubleshooting content for other CAD tools
3ds Max
•troubleshooting
3ds Max FBX and OBJ Import: Missing Materials, Broken UVs, and Texture Path Recovery
11 min
3ds Max
•troubleshooting
3ds Max Plugin DLL Errors: Missing Files, Load Failures, and plugin.ini Repair
9 min
3ds Max
•troubleshooting
3ds Max Random Crashes: Memory, Driver, and Crash Log Analysis Guide
10 min
Altium Designer
•troubleshooting
Fixing Altium Designer DRC Errors: Common Clearance and Routing Violations
9 min