Error 80040402 - Unexpected Error

Modified on Sat, 29 Jun at 3:40 AM

Overview

You have an error in the QQube Synch log:


<<<<<<<<<<<<<<<<<<<<< 10/15/2024 06:44:57 PM >>>>>>>>>>>>>>>>>>>>>
QBXMLSession_ProcessRequest
ProcessRequest
Error Code: 80040402
Unexpected error. Check the "qbsdklog.txt" file for possible additional information.

 

Cause

This error comes directly from the Intuit Software Development Kit (SDK) and indicates that QuickBooks has shut down abruptly - and unable to further communicate with QQube.


There are three possible causes: 

  1. User logs out of the server user where the synch is taking place rather than just disconnect - while the synch is in progress.
  2. You have another QuickBooks 3rd party application attempting to write to - or extract data from - QuickBooks while the QQube data synch is in progress.
  3. You have corruption in your QuickBooks file.


Resolution

Cause 1.   The synch takes place under a specific user where you install QQube (Administrator on a local network; [qqubesynch] on a remote desktop or hosted network.)  If you log out of that user where the synch takes place, then the QuickBooks client can't run, and therefore QQube cannot communicate with QuickBooks.  You can, however, disconnect. If you are unfamiliar with the proper implementation, please review our installation guides.

 

Cause 2.  The Intuit SDK (Software Development Kit) does not allow two applications to simultaneously communicate with QuickBooks - under the same machine user. Make sure that no other 3rd party QuickBooks application - including their backup program - runs at the same time QQube attempts to communicate with QuickBooks and extract data.


Cause 3.  Rebuild the QuickBooks file and reload from scratch in QQube as shown here:



This has a 50/50 chance of working.  If you get this same error again, then it is necessary to contact QuickBooks support and convince them to take the file into Intuit Data Services to repair the file.


CONVINCING INTUIT TO TAKE YOUR FILE

If you perform a rebuild, using the QuickBooks  - and it shows no errors - and you still get the same 80040402 error during the synch, then there is a corruption problem underneath the hood, that the rebuild, or verify logs may - and probably won't - not show.


If you attempt to contact QuickBooks about this issue, without taking the next steps, they will not take the file, and attempt to throw the problem back at you - and QQube.  However, we, like all QuickBooks 3rd party developers, are beholden to the Intuit SDK. 


If the SDK is unable to pull data, there is nothing that anybody can do to get around the problem.


So, we need to give Intuit Support proof that the SDK is unable to extract the information from QuickBooks.


THE INTUIT SDK CREATES A LOG

There is a file called qbsdklog.txt in which Intuit logs SDK the details of the interaction between QuickBooks and a 3rd party application like QQube.  It is located in c:\ProgramData\Intuit\QuickBooks


When you get the 80040402 error a second time, immediately grab the qbsdklog.txt and Create a Support Ticket, attaching that file, as well as the QQube synch log.


We can review the files and ensure that you have the correct "ammunition" you need to convince Intuit that you have corruption in your file, and that they need to accept the file to fix it.

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