Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Connection Failed Error # 80040403Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC Frequently Asked Questions

 New Topic 
 
 Post Reply 
[1]  
 Connection Failed Error # 80040403 
 Author   Message 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-02-23 08:57:10

The connection to our Quickbooks data has been working fine (we created a data source using Microsoft Query and and using the data source to perform a mail merge in Word). When opening the data source via Word today, I received the above error number. We have not changed our Quickbooks software or our Quickbooks data since we installed QODBC.

I tried to create a new ODBC data source to connect to Quickbooks, but I get the same error message, whether I connect by using the currently open Quickbooks file or if I browse to the file.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-02-23 08:59:57

The error is saying that it could not open the specified QuickBooks company data file. Most of the time this indicates that you already have another company file open in QuickBooks.

Check what company file the data source name (DSN) is actually using and open that company file as a QuickBooks Admin user to reslove any connection issues.

 

  Top 
  mikea 
  
 Group: Members 
 Posts: 7 
 Joined: 2006-10-25 
 Profile
 Posted : 2009-02-10 18:07:25

Hi there

I am getting a really puzzling variant of this:

From the sdklog.txt:

20090209.211709 I 2392 RequestProcessor ========= Started Connection =========
20090209.211709 I 2392 RequestProcessor Request Processor, QBXMLRP2 v6.1
20090209.211709 I 2392 RequestProcessor Connection opened by app named 'FLEXquarters QODBC'
20090209.211709 I 2392 CertVerifier The Authenticode signature validated OK.
20090209.211709 E 2392 RequestProcessor Unknown QBInstanceFinder error. File Name: "D³ÙDÔ²ÙDÿ`E\ÂFYMƒ|¨éÉF8ê" hr = 80070057
20090209.211709 E 2392 RequestProcessor Could not create instance of QuickBooks. hr = 80040403

QODBC returns the following message:

[QODBC] Error parsing complete XML return string

 

Notes:

1.) The DSN is configured to use the company file that is open.

2) The error is intermittent. If I try a number of INSERT statements then the first few into a given table will work then one will fail with this error then the next INSERT will work

3) Two DSNs exist, both are configured to use the company file that is open.

4.) access is through a MS SQL 2005 linked server with the optimizer turned off. Unfortunately the QODBC driver does not seem to update the QODBCLOG.txt or QODBCTRA.txt files when called through the linked server.

5. latest QODBC, Quickbooks Premier AU 2008/09, both the server and the client are running on windows XP SP3

any insight appreciated!!!!!

cheers

mike

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2009-02-11 10:41:24
Yes this happens when a query or insert is started before the previous one has completed. Applications need to use a STA (single-threaded-apartment) threading model. Multi-threading actually slows QODBC down as we need to re-establish a connection to QuickBooks every time the Thread ID changes. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to