QuickBooks Error 6189 816 appears with the message: "We're sorry, QuickBooks was unable to open your company file. You may need to repair it. Error codes: (-6189, -816)." This error blocks access to the company file and prevents QuickBooks from loading the business data. The underlying cause is most often a network configuration issue, a file already in use, or incorrect permissions on the QuickBooks data folder.
Part 1. What Causes Error 6189 816?
QuickBooks uses a network descriptor file (.nd) and a transaction log file (.tlg) alongside the main .qbw company file. When any of these support files are corrupted, missing, or blocked, the -6189, -816 error appears.
Main causes:
- File already open by another user or process — QuickBooks restricts simultaneous single-user mode access. If another workstation or process holds the file lock, this error appears.
- Damaged or outdated
.ndfile — The network descriptor.ndfile (e.g.,CompanyFile.qbw.nd) tells QuickBooks where the database server is. If it is corrupt, QuickBooks cannot connect. - QuickBooks Database Server Manager not running — The Database Server Manager service on the host computer must be running for multi-user access.
- Incorrect folder permissions — The QuickBooks data folder requires read/write access for the
QBDataServiceUseraccount. Insufficient permissions block file access. - Firewall blocking QuickBooks — Windows Firewall or third-party security software may block the ports QuickBooks uses for database communication.
- Corrupted company file — In some cases, the
.qbwfile itself is damaged and requires repair.
| Error Component | Meaning |
|---|---|
| -6189 | Cannot open or access the company file |
| -816 | File is in use or a permission/network block exists |
💡 Tip: Before applying any fix, close QuickBooks on all computers that might have it open. Sometimes another workstation holds the file lock without the user realizing it, and simply closing QuickBooks everywhere resolves the error immediately.
Part 2. Fix 1 — Run QuickBooks File Doctor
Intuit's QuickBooks Tool Hub includes the File Doctor tool, which automatically diagnoses and repairs many Error 6189 816 causes:
- Download and install QuickBooks Tool Hub from Intuit's official site.
- Open the Tool Hub → click Company File Issues.
- Click Run QuickBooks File Doctor.
- In File Doctor, select your company file from the dropdown (or browse to it).
- Choose Check your file (middle option).
- Enter your QuickBooks Admin password when prompted.
- Wait for the scan and repair to complete — this may take up to 5 minutes.
- Open QuickBooks and attempt to open the company file.
QuickBooks File Doctor addresses common .nd file corruption, network misconfigurations, and basic permission issues automatically.
🗣️ r/QuickBooks user: "Error 6189 816 appeared out of nowhere on a Monday morning. Ran the QuickBooks File Doctor and it fixed everything in about 3 minutes. No idea what changed over the weekend."
Part 3. Fix 2 — Rename the .ND and .TLG Files
The .nd (network descriptor) and .tlg (transaction log) files are generated automatically by QuickBooks when they are missing or renamed. Renaming them forces QuickBooks to rebuild both files fresh, often clearing the error:
- Open File Explorer and navigate to the folder containing your QuickBooks company file (default:
C:\Users\Public\Documents\Intuit\QuickBooks\Company Files\). - Locate the files with the same name as your
.qbwfile but with.ndand.tlgextensions:- Example:
MyCompany.qbw.ndandMyCompany.qbw.tlg
- Example:
- Right-click each file → Rename.
- Add
.oldto the end of each filename:MyCompany.qbw.nd.oldMyCompany.qbw.tlg.old
- Open QuickBooks. It will regenerate both files automatically when it tries to open the company file.
⚠️ Important: Only rename these support files — never rename the main
.qbwcompany file. The.tlgfile contains recent transaction logs. Renaming it does not delete any data in the company file; it only clears the log cache. However, any unposted transactions recorded in the log since the last full backup may not appear after the rename.
Part 4. Fix 3 — Check and Restart QuickBooks Database Server Manager
For multi-user setups, the QuickBooks Database Server Manager must be running on the host computer (the PC where the company file is stored):
- On the host computer, open Services (press Win + R → type
services.msc). - Scroll to QuickBooksDB (the version number matches your QuickBooks year, e.g.,
QuickBooksDB33for QB 2023). - If the service is stopped, right-click → Start.
- Right-click → Properties → set Startup type to Automatic.
- Click Apply and OK.
Alternatively, use the QuickBooks Tool Hub → Network Issues → QuickBooks Database Server Manager to scan and configure the service automatically.
💡 Tip: Confirm which computer is the "host" before proceeding. The host is the PC where the
.qbwfile is physically saved, not just any PC running QuickBooks. If you are unsure, look for the company file location in QuickBooks → File → Open or Restore Company.
Part 5. Fix 4 — Set Correct Folder Permissions
QuickBooks requires full read/write access for its data folder. The QBDataServiceUser account must have at least Modify permissions:
- Right-click the QuickBooks data folder → Properties → Security tab.
- Check whether QBDataServiceUser (or the local user running QuickBooks) has Full Control or Modify rights.
- If not, click Edit → Add and add the appropriate account.
- Grant Full Control, click Apply, and OK.
Common affected folders:
C:\Users\Public\Documents\Intuit\QuickBooks\- Any custom network folder where the company file is stored
| Account to Check | Required Permission | How to Verify |
|---|---|---|
| QBDataServiceUserXX | Full Control | Security tab of company folder |
| Current Windows user | Modify or Full Control | Security tab of company folder |
| SYSTEM | Full Control | Should already exist |
| Administrators group | Full Control | Should already exist |
Part 6. Fix 5 — Configure Windows Firewall for QuickBooks
QuickBooks requires specific ports to be open for database server communication. If Windows Firewall or a third-party firewall is blocking these ports, Error 6189 816 can appear on networked setups:
Required ports (varies by QuickBooks version):
- QuickBooks Desktop 2023–2026: TCP ports 8019, 56728, 55378, 55379
To allow QuickBooks through Windows Firewall:
- Open Windows Defender Firewall with Advanced Security (search "firewall" in Start).
- Click Inbound Rules → New Rule → Port → TCP.
- Enter the port numbers and choose Allow the connection.
- Apply to Domain, Private, and Public profiles.
- Name the rule (e.g., "QuickBooks Ports") and save.
For the most accurate port list for your specific version, refer to Intuit's firewall documentation.
🗣️ r/sysadmin user: "Spent two hours on QuickBooks Error 6189 816 before realizing a network firewall policy update had silently blocked the QB database port. Opened the port and every workstation connected immediately."
Part 7. Recover a Deleted QuickBooks Company File With Ritridata
If your .qbw company file was accidentally deleted — or lost due to a disk error or accidental format — Ritridata can scan your Windows drive and recover deleted files, including QuickBooks company files and their associated backups.
Step 1 — Select the drive/location
Step 2 — Run a safe scan
Step 3 — Preview and recover to another drive
FAQ
Q: What does QuickBooks Error -6189 mean? Error -6189 indicates that QuickBooks was unable to open the company file. It is always paired with a secondary code such as -816 (file in use or access blocked). Together they indicate a file access or network connectivity problem rather than file corruption in most cases.
Q: Can I fix Error 6189 816 without IT support? In many cases, yes. Running QuickBooks File Doctor handles the most common causes automatically. Renaming the .nd and .tlg files is also a safe, user-level fix that does not require advanced technical knowledge.
Q: Does Error 6189 816 mean my company file is corrupted? Not necessarily. The error often results from a network block, a missing service, or a stale file lock rather than actual data corruption. Try the simpler fixes (File Doctor, rename .nd/.tlg) before assuming file damage.
Q: How do I know if another user has the QuickBooks file open? Ask all users to close QuickBooks. If the error clears after everyone closes the program, a user or process was holding the file lock. Consider setting up multi-user mode properly so multiple users can access simultaneously without conflicts.
Q: Can I open the company file from a different location to bypass the error? Copying the .qbw file to your local desktop and opening it from there may work as a temporary bypass. However, this creates a duplicate file and does not resolve the underlying network or permission issue. Always fix the root cause before putting the file back in the shared location.
Q: How do I restore QuickBooks from a backup after this error? In QuickBooks, go to File → Open or Restore Company → Restore a backup copy → select your .qbb backup file. QuickBooks will create a new .qbw from the backup. Ensure the restored file is saved in the properly configured shared folder.
