Repair a damaged company file
Company files pick up small inconsistencies over years of use, crashes and network drops. QuickBooks itself often keeps working around them, but they can make specific requests fail. The connection is fine in this case. The problem is inside the file, and only QuickBooks tools can fix it.
This guide goes from the gentlest tool to the strongest. Stop as soon as the problem is gone.
Signs of a damaged file
Section titled “Signs of a damaged file”- Most actions in the app work, but one kind of record, or one specific record, fails every time.
- The app reports an unexpected error from QuickBooks for that record, and trying again gives the same result.
- QuickBooks itself is slow, crashes in the same place, or shows wrong balances in reports.
If nothing works at all, the file is probably not the problem. Start with Connection not active instead.
QuickBooks status 1000
Section titled “QuickBooks status 1000”The app’s support team may see QuickBooks status code 1000 for a failed request. Intuit’s SDK guide lists it as “Internal error”: QuickBooks hit an internal error while it processed the request. It does not name a cause, and one occurrence can be a passing problem. QuickBooks also answers 1000 to some requests it cannot carry out at all, such as deleting a unit of measure set, so on its own it does not mean the file is damaged. If it repeats for the same record and the request is one QuickBooks normally accepts, check the file with the steps below.
This is not the Web Connector code QBWC1000, which is about the connector file. See QuickBooks Web Connector error codes.
Back up first
Section titled “Back up first”Repairs change the file. Always make a backup before you start.
- Open the company file as Admin in single-user mode.
- Choose File › Back Up Company › Create Local Backup.
- Follow the prompts and save the backup to a location other than the company file’s folder, such as a USB drive.
Step 1: Verify Data
Section titled “Step 1: Verify Data”Verify Data checks the file and reports problems. It does not change anything.
- Ask everyone to close the company file.
- On any computer with QuickBooks, open the company file as Admin.
- Choose File › Utilities › Verify Data. QuickBooks says “Before verifying your data, QuickBooks will need to close all open windows.” and asks “Do you want to continue?” Click OK.
- Wait while a progress window titled Working says “Verifying data integrity. This may take some time.” and “Press ESC to cancel”. Large files can take a long time.
- Read the result:
- QuickBooks detected no problems with your data. The file is fine. Try the failing action in the app again. If it still fails, contact the app’s support team.
- Your data has lost integrity. Continue to Rebuild Data.
- A specific error. Write it down and continue to Rebuild Data. Intuit’s help site has articles for many of these messages.
Find the details in QBWin.log
Section titled “Find the details in QBWin.log”QuickBooks writes what Verify Data found to a log file called QBWin.log. The app’s support team or an accountant may ask for it.
- In QuickBooks, press F2 (or Ctrl+1) to open the Product Information window.
- Press F3 (or Ctrl+2) to open Tech Help, then select the Open File tab.
- Select QBWin.log, then click Open File. The log opens in Notepad.
- Press Ctrl+F and search for
Begin Verifyto find the start of the last Verify Data run. The lines after it list the problems found.
The file is also in C:\Users\<your Windows user>\AppData\Local\Intuit\QuickBooks\log\, in a folder named for your QuickBooks version. QuickBooks starts a new QBWin.log each time it opens and renames the old one, so look at the newest file after a Verify Data run. Not every line in the log means damage. Intuit notes that at least one common message, about a lock file, is not a sign of damage.
Step 2: Rebuild Data
Section titled “Step 2: Rebuild Data”Rebuild Data repairs the problems Verify Data found.
If you use Intuit’s Assisted Payroll, Intuit asks you to contact them before you rebuild.
- Choose File › Utilities › Rebuild Data.
- QuickBooks says “Before rebuilding the data file, a backup must be made.” and warns “Do not use existing backup disks! If you do so, you may replace your one good backup with a bad backup.” Click OK and follow the backup steps. Save the backup to a new location, under a new name. Do not replace another backup.
- If you save the backup to the same drive as the company file, QuickBooks warns “You’ve told us to save backup copies to the same hard drive (drive: C:) that holds your company file. We do not recommend this.” Click Change Location to pick another drive, or Use this Location to keep going. The warning can appear a second time when you click Save Now.
- Wait while the Working progress window says “Rebuilding data file. This may take some time.” A window titled Rebuild Completed says “Rebuild has completed.” It has View Results and Close buttons. Click Close.
- Run Verify Data again.
- If Verify Data still reports problems, run Rebuild Data once more. Some files need two or three passes. If the first rebuild took two hours or more, Intuit asks you to contact QuickBooks support instead of running it again.
After a clean Verify Data result, try the failing action in the app again.
If Verify Data still finds damage after rebuilding, Intuit’s advice is to look up each error from QBWin.log on its help site and fix it by hand, or to restore a recent backup. A restored backup loses the work entered since it was made.
Step 3: Fix the specific record
Section titled “Step 3: Fix the specific record”If one record keeps failing after a clean Verify Data, the damage may be in that record alone.
- Open the record in QuickBooks, make a small change, save it, then undo the change and save again.
- For a list entry such as a customer or item, open the list, select View › Re-sort List, and try again.
- If the record still fails, create a replacement and make the old one inactive. Ask your accountant before you delete or void a transaction.
Step 4: Rebuild the indexes with a portable company file
Section titled “Step 4: Rebuild the indexes with a portable company file”A portable company file (.QBM) is a compact copy of your company data. When QuickBooks opens one, it rebuilds the file’s indexes, and Intuit notes that some help articles use this to fix minor data problems.
Create the portable file:
- Open the company file as Admin.
- Choose File › Create Copy. In the Save Copy or Backup window, select Portable company file and click Next.
- In the Save Portable Company File window, give it a name that differs from your company file, so the two are easy to tell apart, save it somewhere easy to find, such as the desktop, and click Save.
- QuickBooks shows a Close and reopen window. Click OK. When QuickBooks has saved the file, it shows a QuickBooks Desktop Information window; click OK.
Open it again:
- Choose File › Open or Restore Company. In the Open or Restore Company window, select Restore a portable file and click Next.
- In the Open Portable Company File window, select the
.QBMfile and click Open, then click Next. - In the Save Company File as window, choose where to save the restored company file and its name, and click Save. Sign in as usual.
Restoring over the same file keeps the connection working with no further steps. If you restore the portable file under a new name or in a new folder, the connection still recognizes the company, but its saved location no longer matches: until you update it, the app reports that a different company file is open. Follow Fix a moved, renamed or restored company file afterwards.
Step 5: QuickBooks File Doctor
Section titled “Step 5: QuickBooks File Doctor”If Rebuild Data cannot fix the file, Intuit’s QuickBooks File Doctor does a deeper repair. It is part of the free QuickBooks Tool Hub.
- Close QuickBooks.
- Download QuickBooks Tool Hub from Intuit’s article Fix company file and network issues with QuickBooks File Doctor. Download it only from Intuit.
- Open the downloaded file,
QuickBooksToolHub.exe, install it, and open Tool Hub. - Select Company File Issues, then Quick Fix my File. Click OK when it finishes, then open QuickBooks and try again.
- If the problem continues, close QuickBooks, return to Company File Issues in Tool Hub and select Run QuickBooks File Doctor. It can take up to a minute to open.
- Select your company file, choose Check your file, and click Continue.
- Enter the QuickBooks Admin password when asked, then click Next.
The scan can take 10 to 15 minutes for a large file. Intuit notes that it can report a failure even when it fixed the problem, so open the file and run Verify Data afterwards.
About Condense Data
Section titled “About Condense Data”QuickBooks also has File › Utilities › Condense Data, which makes a large file smaller by removing old detail. It is not a repair tool. Intuit warns that it may not fix file damage and that it cannot be undone. Use it only on your accountant’s advice, after a backup, and never as a fix for a failing request.
Step 6: Intuit Data Services
Section titled “Step 6: Intuit Data Services”When none of the steps above work, Intuit’s Data Services team repairs damaged company files. Start by contacting QuickBooks support and describing the problem. If they open a Data Services case, the team asks you to upload the company file through Intuit’s secure file exchange. Ask Intuit about the cost and timing before you send the file.
We cannot repair QuickBooks company files, and neither can the app. These steps all run in QuickBooks or in Intuit’s tools.
Check that it worked
Section titled “Check that it worked”- Verify Data reports no problem.
- The action that failed in the app now succeeds.
When to contact the app’s support team
Section titled “When to contact the app’s support team”Contact them if Verify Data is clean and the same request still fails. Send the record type and name, the exact message the app showed, the time, the Verify Data result and, if they ask, QBWin.log.
Related pages
Section titled “Related pages”- A record is open or locked by another user
- Fix a moved, renamed or restored company file
- Requests stop working after restoring a backup
- QuickBooks Web Connector error codes
- End-user FAQ
Sources
Section titled “Sources”- Intuit, Verify and rebuild data in QuickBooks Desktop
- Intuit, Fix data damage on QuickBooks Desktop company file
- Intuit, Find QBWin.log or QuickBooks.log files
- Intuit, Create and open portable company files in QuickBooks Desktop
- Intuit, Fix company file and network issues with QuickBooks File Doctor
- Intuit, Use the Condense Data utility
- Intuit, QuickBooks Data Services FAQ
- Intuit, QuickBooks SDK Programmer’s Guide, Appendix A, status code 1000