Member Login

Username
Password
Forget Password
New Sign Up
  Search Forums

  FREE Support
  Forums

  QODBC v10
  QODBC v9
  QODBC v8
  QODBC v7
  QODBC v6

  QODBC FAQs

The QDeveloper Forum is the property of Data Access Worldwide, Australia. The contents of this forum have been taken by FLEXquarters.com Limited, Hong Kong at: http://support.flexquarters
.com/esupport/
without our permission.

 


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

Forum : Windows Scheduler URGENT Help NeededSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v9 Independent Self Help Forum

 New Topic 
 
 Post Reply 
[1]  
 Windows Scheduler URGENT Help Needed 
 Author   Message 
  Harry 
  
 Group: Members 
 Posts: 4 
 Joined: 2010-01-15 
 Profile
 Posted : 2010-01-15 14:37:19

Hi Everyone,

We're have this weird situation here. We've developed a windows console application using VB.net, which is installed on the same server as QuickBooks installed. This problem will Sync some information between the QuickBooks database and a remote MS SQL database. The application also create log records in the SQL server to tell me it that Sync process went successfully. It's kind of a small application (.exe file), if I login to the server through Remote Desktop, find the .exe file, and double click on it, this application works perfectly. Then I tried to schedule this .exe using windows scheduler and make it run every night. It never works, and from the log records, the errors are all the same, which is "QODBC ERROR: [QODBC] QB Open Connection Failed. Create DCOM Instance Error = 80070005, Unknown error.. Created qbXMLRP2 OK.".

I did some research on the forum, and I've done everything that I could try, but nothing works. I just don't understand why that an application can be run manually, but won't work with windows scheduler? Has anyone got any suggestions? or had the same issues with windows scheduler? By the way, with Remote Desktop, I logged in as "administrator", and the windows scheduler uses the same role to run the application.

Thanks for any advises. Regards Harry

 

  Top 
  Tom Aczel 
  dd4bf_dawworld.jpg
 Group: Administrator 
 Posts: 6281 
 Joined: 2006-02-17 
 Profile
 Posted : 2010-01-16 00:16:46

When you scheduled your .exe using the windows scheduler, it then became called through a Windows Service and doesn't run as a console application anymore. This means you will need a QODBC Server Edition type license and the QODBC DCOMs need to setup and confirgured correctly as in:

How do I manually setup the QODBC DCOM Servers on Windows XP Pro and Windows 2003 Server? 

 

  Top 
  Harry 
  
 Group: Members 
 Posts: 4 
 Joined: 2010-01-15 
 Profile
 Posted : 2010-01-16 08:48:37
Hi Tom, Thanks for the reply, but I did try the procedures in the thread you provided before I posted my issue here. That didn't solve the problems. Regards Harry 

  Top 
  Tom Aczel 
  dd4bf_dawworld.jpg
 Group: Administrator 
 Posts: 6281 
 Joined: 2006-02-17 
 Profile
 Posted : 2010-01-16 13:27:04

You also need to: How do I setup QODBC to auto-login into QuickBooks and start it if it's not running? 

Try also:My windows service fails to connect to the datasource? 

 

  Top 
  Harry 
  
 Group: Members 
 Posts: 4 
 Joined: 2010-01-15 
 Profile
 Posted : 2010-01-16 22:50:20
Hi Tom, We've tried everything we can as suggested, but still have the same problem. I'm sure the DCOM has been set up as the threads you provided. There's one big improvement so far. I changed the permission on folder "C:\Users\Administrator\Program Files\QODBC Driver for QuickBooks\" (I don't know why it's not C:\Program Files\QODBC Driver for QuickBooks\, and looks like is the only folder that I have in "C:\Users\Administrator\Program Files\") for Interactive User, I can now run the script successfully in Schedule Task (run task now). Before, that didn't even work. But it's only working when I still logged in as "administrator", once I logged out, and let the schedule to run automatically, it failed again. Any more thought about the solutions? Looks like it's definitely some permission errors, and we getting very close. Thanks Harry 

  Top 
  Tom Aczel 
  dd4bf_dawworld.jpg
 Group: Administrator 
 Posts: 6281 
 Joined: 2006-02-17 
 Profile
 Posted : 2010-01-18 13:04:07
QuickBooks is not a Windows Service, it needs to run as a local console application, so you must be logged on as the "Administrator" on the server so QuickBooks can run when called by your script (via QODBC). 

  Top 
  Harry 
  
 Group: Members 
 Posts: 4 
 Joined: 2010-01-15 
 Profile
 Posted : 2010-01-18 13:45:29
Hi Tom, Thanks, so is there any ways that I can schedule the script to run as the way I want? Anything settings in the windows scheduler would help this? Thanks Harry  

  Top 
  Tom Aczel 
  dd4bf_dawworld.jpg
 Group: Administrator 
 Posts: 6281 
 Joined: 2006-02-17 
 Profile
 Posted : 2010-01-18 16:34:32
No, QuickBooks can only run as a local console application. The only workaround is the have the QuickBooks Data Manager Server Service and use RDS instead as per: Accessing QuickBooks data remotely via QODBC using RDS  

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to    

Copyright (c) 2006-2009
Data Access Worldwide, Australia. This FREE self help forum website was copied by FLEXquarters.com Limited, Hong Kong to: http://archive.qodbc.com
/forum50f5.html
without our permission.

The QDeveloper Forum is dedicated to the FREE professional exchange of information. QODBC and FlexODBC users can post support queries, report product bugs, or simply search topics for help. Data Access Worldwide - Asia Pacific normal office business hours are 9am to 5pm week days Australian EST with the exception of Public Holidays.
       
ABN: 86 544 223 459
PO Box 873, Boronia VIC 3155 Australia  Tel: 03 9761 3644  Intl: +613 9761 3644