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 : A QuickBooks company data file is already openSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v6 Forum

 New Topic 
 
 Post Reply 
[1]  
 A QuickBooks company data file is already open 
 Author   Message 
  CS 
  
 Group: Members 
 Posts: 12 
 Joined: 2006-05-17 
 Profile
 Posted : 2006-10-11 04:57:19
I followed the instructions at:

http://www.qodbc.com/QODBCweb.htm

to download and install the demo for the QODBC server edition.

I can run TestDCOM.asp - which shows me that DCOM is configured properly.

When I go to the QODBC Setup Screen and click the

Test Connect button on General tab - I now get a successful connection.

I can also get a successful connection from the ODBC admin.

However, when I run my ASP code and it hits the line:

c.Open "dsn=QuickBooks Data"

It bombs and gives me the following message:

QB Begin Session Failed. Error = 8004040a, A QuickBooks company data file is already open and it is different from the one requested.


This is the problem I was having before when I was using the read only version and was advised to upgrade to the Server ($499) version. 

How should I proceed to diagnose this error?


Thanks,

CS 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-10-11 14:34:36

The message is saying the company file currently open in QuickBooks is different to the path of the company file setup in your QODBC Setup for the DSN:

Try closing the company file and let QODBC open the company file.

See: How do I setup QODBC to auto-login into QuickBooks and start it if it's not running? for more.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to