How to Fix QuickBooks Error 6147 When Opening a Company File
When QuickBooks shows error 6147 (often displayed as -6147, 0 or a similar variant), it means the program hit a wall trying to open your company file. The error usually points to a damaged company file (.qbw), a corrupted backup (.qbb), or a problem with the network connection between your computer and where the file is stored.
What Triggers Error 6147
Several common issues can cause this error:
- A damaged company file or backup file — The file you are trying to open or restore has internal structural damage.
- Network issues — If the file lives on another computer or a server, a dropped or unstable network connection can trigger the error.
- Folder permissions — QuickBooks lacks the proper Windows permissions to read or write to the folder where the file is saved.
- A corrupted .TLG transaction log file — The transaction log associated with your company file has become damaged and is preventing QuickBooks from opening the main file.
Move the File to a Local Drive First
If you are trying to open a company file stored on a network drive, a USB stick, or a cloud-synced folder (like OneDrive or Dropbox), the easiest first step is to copy it to your local hard drive.
- Create a new folder directly on your C: drive (for example,
C:\QBData). - Copy the company file (.qbw) and its corresponding transaction log file (.tlg) into that new folder.
- Open the file from this new local location.
Cloud-synced folders frequently interfere with QuickBooks database operations. Running the file from a standard local folder eliminates that variable.
Restore From a Known Good Backup
If the error happens while restoring a backup (.qbb), the backup file itself may be damaged. Try restoring a different backup from an earlier date to see if it completes successfully. If your most recent backup fails but an older one works, the issue is isolated to that specific backup file.
Rename the Transaction Log File
The .TLG file tracks changes made to your company file since your last backup. If it becomes corrupted, QuickBooks may refuse to open the company file. Renaming it forces QuickBooks to create a fresh log.
- Locate your company file folder.
- Find the file with the same name as your company file but ending in .tlg.
- Right-click the .tlg file and select Rename.
- Add
.OLDto the end of the filename (for example,CompanyName.qbw.tlg.OLD). - Try opening your company file again.
Renaming the .TLG file does not delete your data. However, if you ever need to restore a backup, you will lose the ability to apply recent transactions logged in that file.
Use QuickBooks File Doctor
QuickBooks includes a built-in diagnostic tool that can automatically detect and repair certain types of file and network damage.
- Open the QuickBooks Tool Hub (if you do not have it installed, download it from Intuit’s website).
- Click on Company File Issues.
- Select Run QuickBooks File Doctor.
- Choose your company file from the dropdown menu, or browse for it.
- Select Check file damage only for a quick scan, or Both file damage and network damage if the file is hosted over a network.
- Enter your admin password when prompted and let the tool run.
The scan can take several minutes depending on the size of your file. Once it finishes, try opening the file normally.
Check Your Folder Permissions
QuickBooks needs full read and write access to the folder containing your company file. Right-click the folder, select Properties, and look at the Security tab. Ensure that your Windows user account and the system have full control over the folder.
When the File Itself Is Damaged
If you have tried the steps above and QuickBooks still cannot open the file, the company file likely has deeper structural damage. Running the Verify Data and Rebuild Data utilities inside QuickBooks can sometimes help, but you need to get the file open first. When the file will not open at all, professional data recovery is often the most reliable way to extract your data and rebuild a working company file.