QuickBooks Web Connector error 0x8004040A
The Web Connector reports this when it can't get an answer from QuickBooks at all: QuickBooks never ran the request, so there is no statusCode.
What QuickBooks says
A QuickBooks company data file is already open and it is different from the one requested.
Your SOAP service receives it in connectionError, or in
receiveResponseXML
in place of the response, as hresult
0x8004040A with this text in message. The Web Connector's log shows the same pair.
Things to know
- Two Web Connector entries on different company files both run when QuickBooks has no company open or is closed altogether, each file opened in turn; with one file open in QuickBooks, the other entry gets connectionError 0x8004040A and its request stays retryable
With QuBe Sync's API
QuBe Sync runs the SOAP service for you and puts this error on the request as JSON:
{
"debug_message": null,
"error_code": null,
"error_type": "quickbooks_connection_error",
"hresult": "0x8004040A",
"message": "A QuickBooks company data file is already open and it is different from the one requested.",
"user_message": "The Web Connector was run with a different company file than the one originally configured. To prevent conflating data between different company files, syncing has been paused. Please make sure the correct company file is open and try again."
}
Wording read from QuickBooks Enterprise Solutions 24.0 (R21_80).