QuickBooks says the company file is being used by another application
QuickBooks will not close the company file, exit or restore a backup while a connected app is still talking to it. Usually the app finishes within seconds and the message clears by itself. When it does not, the usual cause is a Web Connector that stopped partway through an update. This page covers both cases.
What you see
Section titled “What you see”When you choose File › Close Company, exit QuickBooks or start a restore, QuickBooks shows:
The company file cannot be closed at this time because there is another application (App name via Desktop Accounting API) which is using it. Before you can close the company file you must either close that application or instruct the application to end its session with QuickBooks.
App name is the name of the app that sent you the setup link.
Why it happens
Section titled “Why it happens”The Web Connector passes the app’s requests to QuickBooks in short sessions. While a session is open, QuickBooks counts the app as using the company file, the same as a person working in it.
- The app just finished a request. After a burst of requests, the connection stays open for about one second for the next request, then closes. A lone request closes its session as soon as QuickBooks answers and no requests are waiting. While the app works through a list page by page, the session can stay open for up to 10 seconds waiting for the next page.
- The app is in the middle of a large job. After 2 minutes of continuous use, the session lets the current operation finish, then closes, even if the app has more work queued. While the app keeps reading a long list, the session can stay open for up to 10 minutes.
- The Web Connector stopped during an update. If the Web Connector closes or crashes while an update is running, QuickBooks can keep the session open on its own for several minutes. In our tests on Windows 10 with QuickBooks Enterprise 24, it let go of the file 6 minutes after we ended a stuck Web Connector, and 11 minutes 36 seconds after the Web Connector crashed. Other computers can take longer.
- Exit was chosen in the Web Connector during an update. If someone exits the Web Connector while it is updating, QuickBooks can keep the company file in use until the Web Connector is restarted. Choosing File › Exit, or closing the Web Connector window, during an update can also leave the Web Connector stuck partway through closing, still visible in Task Manager. In a hosted Enterprise 24 test with two workstations, normal Exit later closed the Web Connector without ending any process. QuickBooks still refused Close Company through 7 minutes 29 seconds and first allowed it at 8 minutes 31 seconds. These checks bound the observed release time; other environments can differ.
How to fix it
Section titled “How to fix it”Work through these steps in order. Stop as soon as File › Close Company works.
- Wait 15 seconds, then try again. Most of the time the session has closed by then.
- If the app is in the middle of a large job, wait up to 2 minutes and 15 seconds, then try again. The current operation can take longer than the 2-minute session cap. If the app is reading a long list, wait up to 10 minutes and 15 seconds. While an update is running, the app’s row in the Web Connector shows its progress.
- Pause the app, then close the Web Connector. In the Web Connector, uncheck Auto-Run for the app. Wait until the app’s row shows no update running, then wait 15 more seconds. Choose File › Exit in the Web Connector, then try Close Company again. Do not choose Exit while an update is still running.
- If the Web Connector does not close within a minute after Exit, it is stuck. Open Task Manager (Ctrl+Shift+Esc), select QuickBooks Web Connector (
QBWebConnector.exe), and choose End task. End only the Web Connector, never QuickBooks. - Wait up to 15 minutes, trying Close Company every few minutes. After the Web Connector stops partway through an update, QuickBooks lets go of the file by itself. Keep QuickBooks open and save any work you have open in it.
- Once Close Company works, close QuickBooks normally and open it again. Choose File › Exit, wait until QuickBooks has closed, then open it and the company file as usual. If QuickBooks still says the app is using the file, it is not ready yet: keep waiting as in step 5.
- If QuickBooks still refuses after 15 minutes, save your work, then restart the computer. Restarting ends every program that still has a session open.
- Start the Web Connector again from the Start menu once you are finished, and check Auto-Run for the app again. The app cannot reach QuickBooks until you do.
Never end QuickBooks (QBW.EXE or QBW32.EXE) in Task Manager, and never end any program as your first step. QuickBooks may be writing to the company file, and ending it can damage the file.
How to avoid it
Section titled “How to avoid it”- Before you close the company file, exit QuickBooks or restore a backup, uncheck Auto-Run for the app in the Web Connector and wait 15 seconds. Check it again when you are done.
- Wait a few seconds after the app’s activity before exiting the Web Connector, and close it only while no update is running.
- Do not end the Web Connector in Task Manager while it shows an update in progress, unless it is stuck as described in step 4.
How to check it worked
Section titled “How to check it worked”File › Close Company closes the file without the message. After you start the Web Connector again and check Auto-Run, the app’s row updates within about 10 seconds and shows no error in the Status column.
When to contact the app’s support
Section titled “When to contact the app’s support”Contact them if QuickBooks still refuses after a restart, or if the message comes back often while nobody has closed the Web Connector. Send the time you saw the message, the exact text, whether you chose Exit in the Web Connector, and the Web Connector log file, C:\ProgramData\Intuit\QBWebConnector\log\QWCLog.txt.
Related pages
Section titled “Related pages”- Another service is updating
- Single-user or multi-user mode conflict
- Fix a moved, renamed or restored company file
- Start QuickBooks and the Web Connector at sign-in
For developers, see Request lifecycle.