[QODBC-Desktop] ERROR  [QODBC] QB Begin Session Failed. Error = 80040414
Posted by brad waddell on 12 March 2009 05:21 PM
Troubleshooting: ERROR  [QODBC] QB Begin Session Failed. Error = 80040414
The QODBC program used to work well so far, but now I get the following error:
But I don't see any dialog box (alert) open for the QB interface.
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.
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."
Please note if you have a disable pop-up, you will not get any error message.