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 : ERROR [42000] [QODBC] Unexpected extra token: INSERTSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 ERROR [42000] [QODBC] Unexpected extra token: INSERT 
 Author   Message 
  firewall2302 
  
 Group: Members 
 Posts: 1 
 Joined: 2008-11-12 
 Profile
 Posted : 2008-11-12 02:22:12

When attempting to insert a multiline invoice I am getting a "ERROR [42000] [QODBC] Unexpected extra token: INSERT" message. I'm not quite sure why I'm getting this message and any help would be greatly appreciated.

Following is the INSERT statement that I'm sending to QODBC:

INSERT INTO "InvoiceLine" ("CustomerRefListID", "CustomerRefFullName", "RefNumber", "BillAddressAddr1", "BillAddressAddr2", "BillAddressCity", "BillAddressState", "BillAddressPostalCode", "ShipAddressAddr1", "ShipAddressAddr2", "ShipAddressCity", "ShipAddressState", "ShipAddressPostalCode", "PONumber", "ShipDate", "FOB", "InvoiceLineItemRefListID", "InvoiceLineDesc", "InvoiceLineRate", "InvoiceLineQuantity", "FQSaveToCache") VALUES ('80003E4A-1226088509', 'RPS_Test16168', '133', 'RPS_Test', '123 Test Ct.', 'Zionsville', 'IN', '46077', 'Kenny James', '134 W Raiders St', 'Gardena', 'CA', '90247', 'Test', {d'2008-10-13'}, '', '320000-1060714621', 'Transportation Charge
2095 Miles
2009 Acura RDX; 2006 Mazda MAZDA6
Salt Lake City IN to Gardena CA', 0.00, 1, 1)

INSERT INTO "InvoiceLine" ("CustomerRefListID", "CustomerRefFullName", "RefNumber", "BillAddressAddr1", "BillAddressAddr2", "BillAddressCity", "BillAddressState", "BillAddressPostalCode", "ShipAddressAddr1", "ShipAddressAddr2", "ShipAddressCity", "ShipAddressState", "ShipAddressPostalCode", "PONumber", "ShipDate", "FOB", "InvoiceLineItemRefListID", "InvoiceLineDesc", "InvoiceLineRate", "InvoiceLineQuantity", "FQSaveToCache") VALUES ('80003E4A-1226088509', 'RPS_Test16168', '133', 'RPS_Test', '123 Test Ct.', 'Zionsville', 'IN', '46077', 'Kenny James', '134 W Raiders St', 'Gardena', 'CA', '90247', 'Test', {d'2008-10-13'}, '', '3A0000-1088464610', 'Oversize Charge', 0.00, 1, 0)

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-11-12 07:55:47

Each INSERT INTO is a seperate SQL statement. Try sending/excuting the first one and then the second one seperately.

See: How do I create Invoices? 

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to