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 : QB Begin Session Failed. Error = 800040418Search Forum

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

 New Topic 
 
 Post Reply 
[1]  
 QB Begin Session Failed. Error = 800040418 
 Author   Message 
  Greg Becker 
  
 Group: Members 
 Posts: 1 
 Joined: 2006-12-12 
 Profile
 Posted : 2006-12-12 03:29:06

Using version QuickBooks PRO 2005, I have developed a .Net application that is making use of 5 company QBW files at one time. I have tried using both DSN's (5 different ones) and DSN-less connections  with the same results. I have given the Flexquarters QODBC application access in QuickBooks administrator screen for each QuickBook company file. When the .Net application trieds to connect to any company file I get the following message:

QB Begin Session Failed. Error = 800040418, This application has not accessed this QuickBooks company data file before. The QuickBooks administrator must grant an application permission to access a QuickBooks company data file for the first time.

The DSN's work with Excel fine without having to add it as an authorized application in any QuickBook company file.  Thanks in advance for your help.

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-12-12 10:08:22

Firstly, QuickBooks only supports one company file being open at the one point of time. You will need to open and close connections with a delay between company files.

Applications must also be authorized to use QuickBooks. For example MS Access users must be authorized in QuickBooks, not just QODBC. I suggest you open QuickBooks and open the company file as the QuickBooks Admin user, then open a DSN connection for that company file in your .NET application and grant your application permission to access the QuickBooks company data file.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to