Knowledgebase: Setup
[QODBC-Desktop] ERROR [00000] [QODBC] QB Begin Session Failed. Error = 80040414
Posted by brad waddell on 12 March 2009 05:21 PM

Troubleshooting: ERROR [00000] [QODBC] QB Begin Session Failed. Error = 80040414

Problem Description

     The QODBC program used to work well so far, but now I get the following error:
     ERROR [00000] [QODBC] QB Begin Session Failed. Error = 80040414, A modal dialog box is showing in the QuickBooks user interface. Your application cannot access QuickBooks until the user dismisses the dialog box.

     But I don't see any dialog box (alert) open for the QB interface.
     The QODBC message has the following entry:

Begin Session Failed. S0000 00000 [QODBC] QB Begin Session Failed. Error = 80040414, A modal dialog box is showing in the QuickBooks user interface. Your application cannot access QuickBooks until the user dismisses the dialog box.
Begin Session errors can be caused when running ASP or other system services and not setting the "Advanced" button option of either "Use DCOM Servers" or "Remote Connector."

Solutions

     The problem here is that the QuickBooks company file is being opened in both modal and non-modal modes at the same time, so if, for example, someone opens an invoice and your script then tries to create invoices, then you will get an "Error = 80040414, A modal dialog box is showing in the QuickBooks user interface...." which has nothing to do with alerts or pop-up messages. QuickBooks says that a modal connection is active for this part of QuickBooks, and you need to wait.

     Usually, the other user would eventually close the Invoice modal screen allowing your script retries to be successful.

BTW: I believe that Intuit has made some errors in making several user interface (UI) operations in QuickBooks "modal" to Integrated Applications such as QODBC.

 

QODBC does not have control over a Modal Pop-up window in QuickBooks. QODBC cannot suppress or bypass this type of dialogue. It would help if you disabled all modal pop-ups from QuickBooks.

 

Under QuickBooks -- Edit -- Preferences -- General -- My Preference -- enable "Turn off pop-up messages for product and services."

 http://support.flexquarters.com/esupport/newimages/80040414/step1.PNG

 

Please note if you have a disable pop-up, you will not get any error message.

 

(172 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please complete the captcha below (we use this to prevent automated submissions).