You open QuickBooks and something is off. The file won’t open, a transaction vanishes, a customer “can’t be found,” or QuickBooks insists you rebuild your data every time you close it. The first thought is that the company file is corrupted, and the second is that your books are gone.
Take a breath. Many damaged files can be repaired, and others can be restored from a backup or from QuickBooks’ own recovery copies. What matters is doing things in the right order, so you don’t make the damage worse. This guide shows how to confirm the problem, the safe sequence of fixes and what to do if repair isn’t enough.
This guide is for QuickBooks Desktop (Windows), with a short Mac section. QuickBooks Online keeps your data on QuickBooks’ servers, so it doesn’t have a company file you can corrupt.
Quick Answer: What to Do First
- Stop using the file and ask everyone else to close it.
- Make a copy of the company file (.QBW) and, if you can, a backup.
- Run File > Utilities > Verify Data.
- If it reports damage, run File > Utilities > Rebuild Data, then verify again.
- If damage remains, use File Doctor or restore a backup, and consider Auto Data Recovery.
Is Your Company File Really Corrupted?
Not every problem with a company file is corruption. QuickBooks lists several other causes of a file that won’t open, so rule them out first.
| What you see | Likely cause | Method to use |
|---|---|---|
| File won’t open, or a “backup” file is selected | Wrong file type (.QBB or .QBM, not .QBW) | Check the File Type |
| Window or report freezes on open | Saved windows or large reports | Open Without Saved Windows |
| Opens from the desktop but not from its folder | Bad file location | Move a Copy of the File |
| Sample file also fails | Damaged QuickBooks program | Repair QuickBooks |
| “Lost integrity” or “failed the integrity check” | Data damage | Verify, Then Rebuild |
| Rebuild prompt keeps coming back | Persistent damage | Manual Repair or File Doctor |
| Errors 6123, 6190, 6000 832 and similar | Network, hosting or file access | Error Code Guides |
| Missing or wrong transactions | Data damage or a bad restore | Verify, Then Restore |
Before You Start
- Don’t keep opening and closing the file. Each attempt can add damage.
- Copy the .QBW file to a safe folder, such as your desktop or an external drive. Don’t work only on the original.
- Find your most recent backup (.QBB) and check its date. See how to back up a QuickBooks Desktop company file.
- Get everyone out of the file in a multi-user setup.
- Assisted Payroll users: QuickBooks says to contact support before rebuilding.
- Update QuickBooks to the latest release if you can open it. See QuickBooks not updating if updates fail.
- Keep antivirus and firewall on. Nothing here needs them off.
Fix 1: Rule Out Problems That Look Like Corruption
These come from QuickBooks’ own “can’t open your company file” steps.
Check the file type. Only a .QBW file opens as a company file. A backup (.QBB) or portable file (.QBM) needs File > Open or Restore Company instead.
Check compression and encryption.
- Right-click the company file and choose Properties.
- Select Advanced.
- Clear Compress and Encrypt, then click OK.
Open without saved windows.
- Open QuickBooks. Under No Company Open, select your file.
- Hold ALT, then select Open. Keep holding ALT until it opens. If it asks for a password, release ALT, type it and hold ALT again.
- Once open, go to Edit > Preferences > Desktop View, choose Don’t save the desktop and click OK.
Test the program with a sample file. Hold CTRL and open QuickBooks from the Start menu, then choose Open a Sample file. If the sample won’t open, QuickBooks itself is damaged. See Fix 9.
Move a copy of the file. Copy the .QBW to your desktop, then use File > Open or restore company to open the copy. If it opens, the original location was the problem.
If the file still won’t open, or opens with errors, go on.
Fix 2: Run Verify Data
- Go to Window > Close All.
- Go to File > Utilities > Verify Data.
Results:
- “Detected no problems”: Your data is fine. Look for another cause.
- An error message: Search QuickBooks’ support site for that exact message.
- “Lost integrity”: The file is damaged. Move to Fix 3.
Fix 3: Run Rebuild Data (Back Up First)
QuickBooks requires a backup before rebuilding.
- Go to File > Utilities > Rebuild Data.
- When QuickBooks asks to back up, click OK.
- Choose where to save it, and don’t overwrite an existing backup. Type a new name and click Save.
- Let the rebuild finish. It may say “QuickBooks is not responding,” but it’s still working as long as your mouse cursor moves.
- When you see “Rebuild has completed,” click OK.
If it seems stuck, see QuickBooks rebuilding data file stuck. QuickBooks says that if the first rebuild took 2 hours or more, contact support.
Fix 4: Verify Again and Repeat If Needed
- Run File > Utilities > Verify Data again.
- If damage remains, rebuild again. QuickBooks says you can repeat this two or three times, but only while the error messages change.
- Stop if the same error repeats in a loop. A community contributor said that if a rebuild fails more than three times, the file is probably badly damaged. Don’t keep looping.
Fix 5: Repair Specific Errors Manually
- Back up the file.
- Go to File > Utilities > Verify Data.
- On the Verify Results screen, choose Expand All.
- Select See Online Article for each error and follow the steps.
- If an error has no article, contact QuickBooks support. You can also search the qbwin.log log for the error.
Fix 6: Use Quick Fix my File and QuickBooks File Doctor
- Close QuickBooks and open QuickBooks Tool Hub. See our Tool Hub guide.
- Open Company File Issues.
- Run Quick Fix my File first. A QuickBooks staff member suggested this order in a 2024 thread.
- Then run QuickBooks File Doctor and choose your file. See how to use QuickBooks File Doctor.
- If File Doctor fails, see QuickBooks File Doctor not working.
Download a fresh copy of File Doctor each time through Tool Hub instead of reusing an old one.
Fix 7: Restore a Recent Backup
If repair fails, restore a backup. QuickBooks warns that you’ll need to re-enter anything created after that backup.
- Go to File > Open or Restore Company.
- Select Restore a backup copy and click Next.
- Select Local backup and click Next.
- Choose your backup file (.QBB) and click Next.
- Choose a different folder or name from the damaged file, so you don’t overwrite it.
- Click Save and let QuickBooks restore it.
- Run Verify Data on the restored file.
In one community thread, QuickBooks Team said a backup plus a repair can keep entries made after the backup, but they didn’t explain how. If you’ve entered a lot since your last backup, try Fix 8 before restoring.
Fix 8: Try Auto Data Recovery (ADR)
ADR is a QuickBooks feature that may recover all or nearly all of your data. QuickBooks says to use it only after you’ve tried appropriate troubleshooting.
What to know first:
- It works in QuickBooks Pro, Premier and Enterprise for Windows.
- It doesn’t work in Accountant editions.
- No ADR file is created if the backup is larger than 1.5 GB.
- ADR copies are in a folder called QuickBooksAutoDataRecovery, in the same place as your company file. To find that location, press F2 or Ctrl + 1 in QuickBooks, or check the No Company Open window.
- Turn on file extensions in File Explorer so you can see .QBW and .TLG.
Option 1: Recover using your original .TLG with the .QBW.adr file
- Create a folder named QBTest on your desktop.
- Copy your company file’s .tlg file (same name as the company file) into QBTest.
- From the QuickBooksAutoDataRecovery folder, copy the .QBW.adr file into QBTest.
- In QBTest, rename the .QBW.adr file by removing .adr, so it ends in .QBW.
- Open QuickBooks and open the company file in QBTest.
- Check your registers to confirm the transactions are there.
- Run File > Utilities > Verify Data.
- If the copy is good, move the damaged file elsewhere and put the QBTest copy in the original location.
Option 2: Recover using .QBW.adr and .TLG.adr (loses the last 12 hours)
- Create a QBTest folder on your desktop.
- Copy the .TLG.adr and .QBW.adr files from the QuickBooksAutoDataRecovery folder into QBTest.
- Remove .adr from the end of both names.
- Open the file in QBTest, check your registers and run Verify Data.
- If it’s good, swap it in as above.
Always work in QBTest so the originals stay untouched until you’ve confirmed recovery.
Fix 9: Repair QuickBooks Itself
If even the sample file won’t open, or errors continue everywhere, the program may be damaged, not the data.
- Open Tool Hub, select Installation Issues and run the Install Diagnostic Tool. See QuickBooks Install Diagnostic Tool.
- Press Windows + R, type appwiz.cpl, press Enter, select QuickBooks, click Uninstall/Change and choose Repair.
- As a last step, back up your file and follow our Clean Install Tool guide.
When the File Can’t Be Repaired
QuickBooks lists errors that, if they remain after the steps above, mean the file can’t be recovered this way:
- 503 (a QuickBooks Online error)
- -14113, 0
- -6150, 1006
- C=44
- “Database disk image is malformed”
- “Warning, no such table: schemaHistory”
In that case, QuickBooks says to restore an older company file or create a new one. You can also contact a professional file-repair service. QuickBooks’ own data services team can help too, but QuickBooks says that process can take several days. Whichever you choose, give them a copy, not your only file.
QuickBooks Desktop for Mac
- Go to File > Utilities > Verify Data and click OK to close all windows.
- If you see “Your data has failed the integrity check,” go to File > Utilities > Rebuild Data.
- Click OK to back up when asked. If you choose Cancel, no backup is made.
- When it finishes, click OK and run Verify Data again. Repeat if errors remain.
Hosted, Server and Multi-User Files
- Do the repair on one computer, with everyone else out of the file.
- On a server, repair a copy and swap it in afterwards.
- If it’s hosted, ask your hosting provider for help before changing anything.
- If you see error codes about access or communication, see QuickBooks cannot communicate with the company file and QuickBooks error 6123.
After the Repair: What to Check
A rebuild can change data. In one 2025 community post, a user said a rebuild marked bills from three years earlier as unpaid. So check:
- Account balances against your last bank statements
- Accounts Receivable and Payable aging reports
- A few recent transactions and your last backups’ dates
- Payroll liabilities, if you run payroll
- The Verify result, which should say it detected no problems
Then take a fresh backup. If something looks wrong, compare it with the backup you made before rebuilding.
What Not to Do
- Don’t rebuild without a backup
- Don’t overwrite your only backup or the damaged file
- Don’t keep rebuilding over and over once errors loop
- Don’t rename or edit database files you don’t understand
- Don’t start a new company file with opening balances until you’ve tried the steps above
- Don’t turn off antivirus or a firewall
- Don’t send your only copy to anyone you haven’t checked out
How to Prevent Company File Corruption
QuickBooks doesn’t publish a single cause of data damage, so this is general best practice:
- Back up often, and keep copies on another drive or off site
- Test a restore now and then
- Keep ADR available by keeping backups under 1.5 GB where possible
- Close QuickBooks properly before shutting down
- Keep QuickBooks and Windows updated
- Use a stable network for multi-user files
- Run Verify Data now and then, especially after crashes
When to Get Help
Get help if Verify still reports damage after Fix 5, if File Doctor and your backups fail, if you use Assisted Payroll or if you see any of the unrecoverable errors above. Have your QuickBooks version (F2), the exact error message, the date of your last good backup and the steps you’ve tried. The Data Service Solutions team can go through it with you.
Frequently Asked Questions
How do I know if my QuickBooks company file is corrupted?
Run File > Utilities > Verify Data. If it reports lost integrity or an error, the file is damaged. “Detected no problems” means it’s fine.
Can a corrupted QuickBooks file be repaired?
Often, yes, with Rebuild Data and File Doctor. Some files can’t be repaired and need a backup or ADR.
Will Rebuild Data delete my data?
It’s meant to repair, not delete, but it can change data. Back up first and check balances afterwards.
What is Auto Data Recovery?
A QuickBooks feature that keeps recovery copies of your company file in a QuickBooksAutoDataRecovery folder. It doesn’t work for Accountant editions or backups over 1.5 GB.
How much data does ADR lose?
Option 2 recovers everything except the last 12 hours. Option 1 uses your original .TLG file and may recover more.
Should I rebuild more than once?
QuickBooks says you can repeat it two or three times, only while the messages change.
What if the rebuild takes hours?
QuickBooks says to contact support if the first rebuild takes 2 hours or more.
What if QuickBooks keeps asking me to rebuild?
Try Quick Fix my File, File Doctor and the Install Diagnostic Tool. If it loops after several rebuilds, the file may be badly damaged.
Does this apply to QuickBooks Online?
No. Online has no local company file.
Can I recover transactions entered after my last backup?
Maybe, through ADR or a repair, but nothing is guaranteed.
Is a corrupted file the same as “company file not found”?
No. See our company file not found guide.
When should I contact a professional?
When repair fails, when you can’t risk the data or when you see an unrecoverable error.
Wrapping Up
If QuickBooks says your company file is corrupted, protect it first: copy it, back it up and work on a copy. Then verify, rebuild, use File Doctor and restore a backup or try ADR if needed. And check your numbers when it’s done. If it’s still stuck, the Data Service Solutions team can help.

