QuickBooks Error 6150 -- Company File Cannot Be Opened

QuickBooks error 6150 blocks access to your company file, usually from file damage or a wrong extension. Here is what it means and how to fix it.

QuickBooks error 6150 appears when the program cannot open the company file you selected. In most cases the file itself is damaged, or the file you are trying to open has an extension QuickBooks does not recognize as a valid company file. This page covers the exact message, the underlying cause, the common triggers, and the steps our engineers use to resolve each one.

What the error message says

The message typically reads:

"An error occurred when QuickBooks tried to create, open, or use the company file. Error codes: (-6150, -1006)"

The second code varies. Common pairings include -6150 0, -6150 -1006, and -6150 77. In all variants the outcome is the same: QuickBooks starts, but the company file does not open.

What the code means

The 6000 series of errors relates to problems opening or creating a company file at the database level. Error 6150 specifically indicates that the QuickBooks database manager could not open the file. The file may be physically damaged internally, or it may not be a valid QuickBooks company file at all, which happens when the extension is wrong or the file was created by a different program.

What triggers it

The most frequent triggers our engineers see are:

  1. A damaged company file, often caused by an abrupt shutdown, power loss, or network interruption while the file was open.
  2. An incorrect file extension, for example a backup file (.QBB) or accountant's copy that has been renamed to .QBW, or a file created in a newer QuickBooks version being opened in an older one.
  3. A corrupted QuickBooks installation.
  4. Damage to the network data file (.ND) or a hosting configuration problem in multi-user setups.
  5. Malware that has modified files in the folder holding the company file.

How to fix it

Work through the scenarios below in order, starting with the most common.

Scenario 1: Incorrect file extension

  1. Check the extension of the file you are opening. A working company file ends in .QBW. If you have a .QBB file, that is a backup: restore it rather than open it. Use the File menu, then Open or Restore Company, then Restore a backup copy.
  2. If a file was renamed manually, restore the original extension. Renaming a backup to .QBW does not convert it and will produce error 6150.
  3. If the file was created or last saved in a newer QuickBooks release, update your QuickBooks installation to the latest release before opening it. Older versions cannot open files from newer ones.

Scenario 2: Damaged company file

  1. Open the sample company file that installs with QuickBooks. If the sample opens, QuickBooks itself is working and the problem is your file.
  2. Restore your most recent backup (.QBB) using File, then Open or Restore Company. Confirm the backup predates the damage.
  3. If no clean backup exists, run the built-in rebuild utility: with a company file open, choose File, then Utilities, then Rebuild Data. Follow with Verify Data. Repeat the rebuild if verify still reports problems.
  4. If the file will not open at all, restore a portable copy (.QBM) if you have one, or a recent local backup.
  5. If the file still will not open after these steps, the internal database is likely damaged beyond what the rebuild utility can repair. A specialized file repair service can rebuild the database structure directly.

Scenario 3: Corrupted QuickBooks installation

  1. Open the sample company file. If it also fails with 6150, the installation may be at fault.
  2. Back up your company file first.
  3. Uninstall QuickBooks through Windows Settings, then Apps.
  4. Rename the residual installation folders QuickBooks creates under Program Data so a fresh install does not inherit damaged files, then reinstall QuickBooks from your installer and update to the latest release.

Scenario 4: Multi-user and network configuration

  1. On the computer hosting the file, open the QuickBooks Database Server Manager and scan the folder holding the company file so the .ND file is regenerated.
  2. Delete the .ND and .TLG files that sit alongside the company file (they are configuration and transaction log files, and QuickBooks recreates them). Do not delete the .QBW or .QBB files.
  3. Confirm hosting is enabled on only one computer, the one storing the file, and disabled on workstations.

Scenario 5: Malware interference

  1. Run a full antivirus scan of the drive holding the company file.
  2. If threats are found and removed, attempt to open the file again, then run the rebuild and verify utilities to check integrity.

How to prevent it recurring

Keep automatic backups enabled and store at least one backup copy on a different drive or location. Avoid renaming company files or changing extensions. Close QuickBooks properly at the end of each session rather than shutting the computer down with the file open. On networks, keep the file on the host computer, use a wired connection where possible, and rescan the folder in Database Server Manager after any folder move. Finally, keep QuickBooks updated to the latest release so files saved elsewhere do not fail to open in an older version.

Keep going

Your Desktop doesn’t have to end when Intuit says so.

Start with the master survival guide, or jump straight to the fix you need.