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 : Cannot perform this request unless an interactive QuickBooks user is logged in and Auto-LoginSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 Cannot perform this request unless an interactive QuickBooks user is logged in and Auto-Login 
 Author   Message 
  William 
  
 Group: Members 
 Posts: 3 
 Joined: 2008-02-18 
 Profile
 Posted : 2008-02-19 07:08:11

I keep getting this error when running a Stored Procedure and trying to save it directly to a DataSet (VB.Net).  I've also tried using a DataReader, still no luck:

[QODBC] Error: 3301 - Cannot perform this request unless an interactive QuickBooks user is logged in.

If I change my command to a simple SELECT statement, everything works fine.  It seems one cannot run a stored procedure (e.g. sp_profitandloss) without launching the QB UI.  Why, and is there a workaround?

I have a customer that has dozens of QB files that need to have a report run, and opening and closing each file one at a time is painfully slow.

 

 
Thanks,
William 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-02-19 08:35:14

Interesting, could you please try using VB Demo and advise the results? A sp_report will minic an interactive report if you use the: DisplayReport='Yes', option so please make sure you're not using it and delete the parameter if you are.

sp_report ProfitAndLossStandard show Text, Label, Amount_1 as Amount, Amount_1_Title as "As of"
parameters DateMacro = 'ThisMonthToDate', SummarizeColumnsBy = 'TotalOnly', DisplayReport='Yes'

 

  Top 
  William 
  
 Group: Members 
 Posts: 3 
 Joined: 2008-02-18 
 Profile
 Posted : 2008-02-19 13:05:41

Ah, yes, I was using that parameter (copied it from some sample code).  I removed it and that worked!

However, I have another related problem with a different company file.  Even though FLEXquarters QODBC is listed in the Company Preferences with access to the company file, I still get this error:

ERROR [00000] [QODBC] QB Begin Session Failed. Error = 8004041d, This application is not allowed to log into this QuickBooks company data file automatically. The QuickBooks administrator can grant permission for automatic login through the Integrated Application preferences.

I've removed FLEXquarters QODBC from the Company Preference, closed QB, reopened the file directly in QB, reran my program, was given the alert to set the company preference, allowed it (Yes, always, even if QB is not running).

I do not have any users in this company file, other than the built in Admin.  There used to be a password for the Admin and I've since removed it (blank).  I can open other files just fine (once the Company Preference is set).

My connection string:

Dim sConnStr As String = "Driver={QODBC Driver for QuickBooks};DFQ=" & CurrentFileName & ";OpenMode=F;OLE DB Services=-2;"

CurrentFileName is set to the full path of the QBW file (c:\Program Files\Intuit\Quickbooks 2006\company.qbw)

I've disabled hosting multi-user access and still no luck.

So, since I don't have any other user accounts to remove, what should I do?

 

 
Thanks,
William 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-02-19 14:08:40

Troubleshooting auto-login is covered in depth in: After upgrading to QuickBooks 2006 or 2007, QODBC "auto-login" unattended mode no longer works? 

You might need to go back to using a DSN instead of a DSNless connection string. See: How do I build a connection string with all the available QODBC parameters? for more.

 

  Top 
  William 
  
 Group: Members 
 Posts: 3 
 Joined: 2008-02-18 
 Profile
 Posted : 2008-02-19 16:18:35

The "17 steps" fixed it (although I only had to do steps 1 thru 11).  I would have tried it earlier, but I didn't think it would apply to me because:

1.  I've never had users setup
2.  I've been using QB 2006 for at least 2 years now, but just got QODBC about a month ago, so I didn't have QODBC before I upgraded to QB 2006 (which seems to be the core issue that this resolves).

My client is an Accountant and has anywhere from 50-200 QB files...creating a DSN for each is not feasible, so I will have to continue to use the DSN-less approach.

Everything seems to be working wonderfully now!

 

 
Thanks,
William 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-03-18 11:35:31
The staff at Intuit QBES (QuickBooks Enterprise Solutions) would like me to pass the following message to you:

Using the R5 release for Quickbooks Enterprise Solutions Version 8.0, developers can now use their QODBC applications with Quickbooks closed. 

Download the R5 update here:
http://support.quickbooks.intuit.com/Support/ProductUpdates.aspx

Remember that when using this feature, you have to use 'Locate a company file' or a QODBC connection string with "DFQ=C:\Program Files\QODBC Driver for QuickBooks\sample04.qbw" rather than 'Use the company file that's now open in Quickbooks'. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to