Error 8004040A - QuickBooks Already Open

Modified on Sun, 26 Jul at 2:49 AM

Overview

The QQube synchronization log contains an Intuit Software Development Kit (SDK) error similar to the following:

Synchronization log message

<<<<<<<<<<<<<<<<<<<<<< 10/15/2027 06:44:57 PM >>>>>>>>>>>>>>>>>>>>>> QBXMLSession_OpenConnection File named Q:\Onion Construction Group LLC.QBW is not opened. BeginSession Error Code: 8004040A A QuickBooks company data file is already open and it is different from the one requested. <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

What the Error Means

Error 8004040A comes directly from the Intuit SDK. QuickBooks currently has one company file open, but QQube is requesting a different company file.

Possible Causes

Possible CauseWhat Happened
Two QuickBooks instances are openTwo copies of QuickBooks are running under the same Windows user.
Different company file is openQuickBooks is open to a company file other than the one QQube is attempting to synchronize.
Company filename changedThe QuickBooks company filename no longer matches the file originally added to the QQube Configuration Tool.
Company file path changedThe company file was moved and its current path no longer matches the QQube configuration.
Multiple company files are configuredQuickBooks was manually opened to one company file before QQube attempted to synchronize several company files.
Incorrect Multi-User implementationThe Synchronizer is running under a regular user instead of the dedicated Windows synchronization user where QQube was installed.

Resolution

1. Close Other QuickBooks Instances

Under the Windows user that runs the QQube synchronization, close every open QuickBooks window. Start only one copy of QuickBooks.

2. Confirm the Correct Company File

Make sure QuickBooks is either open to the company file QQube is requesting or open to the No Company Open window.

QuickBooks No Company Open window

3. Correct a Changed Filename or Path

Perform this work while logged in to the Windows user where QQube was installed.

If the company filename changed, add the company file again using its current name and then remove the obsolete company entry. The filename cannot be edited directly in the QQube Configuration Tool.

If the company file was moved, update QQube to use the current company file path.

QQube Configuration Tool company file setup

QQube Configuration Tool company file path setting

4. Prepare QuickBooks for Multiple Company Files

Before QQube synchronizes multiple company files, leave QuickBooks open to the No Company Open window. The Intuit SDK does not allow QQube to close a company file that was opened manually.

5. Correct the Multi-User Synchronization Setup

In a Multi-User implementation, run the Synchronizer only under the dedicated Windows synchronization user where QQube was installed. A regular server or Remote Desktop user is not a synchronization user.

Review the Multi-User Remote Desktop Environment guide and the installation and requirements guides.

Expected Result

QuickBooks is open to the correct company file or the No Company Open window, the QQube company filename and path are current, and the synchronization completes without Error 8004040A.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article