QuickBooks Error H504: Company File Cannot Be Reached in Multi-User Mode
QuickBooks Error H504 blocks multi-user access to a company file on the network, and this guide explains the causes and the fixes that restore it.
Error H504 belongs to the QuickBooks Desktop H series, a family of codes that appear when a workstation cannot reach a company file stored on another computer. It often follows a network drop or a failure of the hosting service on the machine that holds the file. The data itself is usually fine. What broke is the connection. This page explains the code, the triggers, and the repairs our engineers use to restore multi-user access.
The exact error message
QuickBooks shows a dialog along these lines:
We're sorry. QuickBooks encountered a problem and we see the following error code: H504
This company file cannot be reached in multi-user mode.
Some releases word the second line slightly differently, and a Help button or an offer to open the file in single-user mode may appear. The code and the failed connection are the constants.
What does error H504 mean?
The H series covers hosting and connection failures in multi-user mode. H504 means the workstation sent a request to the host and never received a usable answer, so it behaves like a timeout. Multi-user QuickBooks depends on a Windows service named QuickBooksDB, which the Database Server Manager runs through the process QBDBMgrN.exe. When that service stops, or traffic to it is blocked, no workstation can open the file, and an H series code is the result. H504 overlaps with H202 and H303, and the fixes for the three overlap as well.
What triggers error H504?
Any of the following can produce the code, and more than one can apply at once:
- The QuickBooksDB service stopped on the host, often after a Windows update or an unplanned restart.
- Hosting is switched on for the wrong machine, or for several machines at once.
- A firewall or antivirus rule is blocking the database process on the host.
- The network data file beside the company file, the one with the .ND extension, points at an address that no longer exists.
- A cable, switch, router, or VPN link dropped while the file was open.
- The host went to sleep, restarted slowly, or was powered off.
How do you fix error H504?
Work through the scenarios in order and stop as soon as a workstation opens the file. The first two clear most cases we see.
The hosting service stopped on the host
- On the machine that stores the company file, close QuickBooks.
- Hold the Windows key and press R, type services.msc, and press Enter.
- Find the QuickBooksDB entry for your release; its name ends with the version year.
- Right-click it and choose Restart.
- Open Properties, set Startup type to Automatic, and confirm with OK.
- Open the file on the host first, then try a workstation.
Hosting is enabled on the wrong machine
- On the machine holding the file, open QuickBooks and press F2.
- In the Product Information window, read the Local Server Information section.
- If hosting is off there, choose File, then Utilities, then Host multi-user access.
- On every workstation, choose File, then Utilities. If Stop hosting multi-user access is listed, that machine is hosting wrongly, so select it.
- Exactly one machine should host: the one storing the file.
The Database Server Manager has not scanned the folder
- On the host, open QuickBooks Database Server Manager from the Start menu.
- Open the Scan Folders tab and choose Add Folder.
- Select the folder holding the company file and start the scan.
- Confirm the file appears in the results, then try the workstation again.
A firewall is blocking the database service
- On the host, open your firewall or security suite and find its exceptions list.
- Allow QBDBMgrN.exe, found in the QuickBooks program folder, to communicate in both directions.
- Allow the QuickBooks program on each workstation as well.
- If a third-party antivirus includes its own firewall, repeat the exception there; a Windows rule alone may not apply.
- Reopen the file from the workstation.
The network data file is stale
- Close QuickBooks on every machine and take a fresh backup of the company file.
- In the folder holding the file, locate the matching .ND file.
- Rename it so that it ends in .OLD.
- Rescan the folder with Database Server Manager, which rebuilds the file.
- Open the file on the host, then from the workstations.
The network itself dropped
- From a workstation, ping the host by name and check that replies return.
- If they do not, check the cable, the switch, and the router, then restart the host.
- If you reach the file through a mapped drive, disconnect it and map it again.
- Over a VPN, reconnect first and confirm another shared folder responds.
- Retry the company file once the link is stable.
Keeping H504 from coming back
- Leave hosting enabled on the host alone, and recheck every machine after any reinstall.
- Keep the QuickBooksDB service set to Automatic so it survives restarts.
- Add firewall exceptions permanently rather than as one-time allows.
- Rescan the company file folder in Database Server Manager after each QuickBooks update, since the service name and port can change with a new release year.
- Give the host a fixed network address so the .ND file stops chasing a moving target.
- Keep the host awake and on a wired connection during working hours.