[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 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 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."
Please note if you have disabled pop-up, you will not any error message.