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 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 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 service 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 is simply saying that a modal connection is active for this part of QuickBooks and you need to wait.

     Normally 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 a number of user interface (UI) operations in QuickBooks "modal" to Integrated Applications such as QODBC.

 

QODBC does not have control over a Modal Popup window in QuickBooks. QODBC cannot suppress or bypass this type of dialogues. You need to disable all modal popup 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 disabled pop-up, you will not any error message.

 

(169 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).