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 : QODBC and SSIS (Cannot Connect)Search Forum

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

 New Topic 
 
 Post Reply 
[1]  
 QODBC and SSIS (Cannot Connect) 
 Author   Message 
  Mark 
  
 Group: Members 
 Posts: 1 
 Joined: 2007-10-23 
 Profile
 Posted : 2007-10-23 06:54:57

I am trying to QODBC inside an SQL Server Integration Services (SSIS) package to import data into SQL Server for Advanced Reporting.

When I use Visual Studio to create the Package and test the script it works great.  When I put the package into the SQL Server Agent (SQL 2005) for automatic scheduling it fails with an error:

OnError,MARK-W2K,NT AUTHORITY\SYSTEM,ImportCustomersFromQuickBooks,{27833265-20F8-4C5C-98AF-2E89A57531D4},{CC298BB4-EFF0-4A77-89BF-E1CF7D30FF06},10/22/2007 1:49:21 PM,10/22/2007 1:49:21 PM,-1073450910,0x,System.Data.Odbc.OdbcException: ERROR [00000] [QODBC] QB Begin Session Failed. Error = 8004041c, An internal QuickBooks error occurred while trying to access the QuickBooks company data file.

ERROR [00000] [QODBC] QB Begin Session Failed. Error = 8004041c, An internal QuickBooks error occurred while trying to access the QuickBooks company data file.

   at System.Data.Odbc.OdbcConnection.HandleError(OdbcHandle hrHandle, RetCode retcode)
   at System.Data.Odbc.OdbcConnectionHandle..ctor(OdbcConnection connection, OdbcConnectionString constr, OdbcEnvironmentHandle environmentHandle)
   at System.Data.Odbc.OdbcConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup)
   at System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection)
   at System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
   at System.Data.Odbc.OdbcConnection.Open()
   at Microsoft.SqlServer.Dts.Runtime.ManagedHelper.GetManagedConnection(String assemblyQualifiedName, String connStr, Object transaction)
   at Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnectionManager90.AcquireConnection(Object pTransaction)
   at Microsoft.SqlServer.Dts.Pipeline.DataReaderSourceAdapter.AcquireConnections(Object transaction)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostAcquireConnections(IDTSManagedComponentWrapper90 wrapper, Object transaction)
OnError,MARK-W2K,NT AUTHORITY\SYSTEM,ImportCustomersFromQuickBooks,{27833265-20F8-4C5C-98AF-2E89A57531D4},{CC298BB4-EFF0-4A77-89BF-E1CF7D30FF06},10/22/2007 1:49:21 PM,10/22/2007 1:49:21 PM,-1073450985,0x,component "Source - Query" (1) failed validation and returned error code 0x80131937.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-23 09:02:00
QuickBooks must not be running at the time and unattended mode (auto-login) needs to be setup. See: How do I setup QODBC to auto-login into QuickBooks and start it if it's not running?  

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to