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 : Inserting salesreceiptline problem: Expected lexical element not found: sp_reportSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Support Forum

 New Topic 
 
 Post Reply 
[1]  
 Inserting salesreceiptline problem: Expected lexical element not found: sp_report 
 Author   Message 
  Joe 
  
 Group: Members 
 Posts: 12 
 Joined: 2006-05-13 
 Profile
 Posted : 2006-05-26 03:12:45

I'm trying to insert a salesreceiptline and I'm getting the following error.

Expected lexical element not found: sp_report.

Here is the query I'm using.

insert into salesreceiptline (CustomerRefListID, TemplateRefListID, TxnDate, IsPending, DueDate, IsToBePrinted, DepositToAccountRefListID,
        BillAddressAddr1, BillAddressAddr2, BillAddressAddr3, BillAddressCity, BillAddressState, BillAddressPostalCode,
        SalesReceiptLineItemRefFullName, SalesReceiptLineDesc, SalesReceiptLineRate, SalesReceiptLineAmount,
        SalesReceiptLineSalesTaxCodeRefListID)
     value ('4CFC0000-1148429307', '60000-1019762012', {d'2006-05-25'}, 0, {d'2006-05-25'}, 0, '650000-1019162593',
       'Joe Mama Inc 3', '123 Main St.', 'Suite 450', 'Chicago', 'IL', '60602',
       'Monthly Subscription', 'BidClerk Sales Lead Subscription', 39.95, 39.95, '20000-1018058558')

I also tried it with FQSaveToCache = 0

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-05-26 10:13:40

Would you believe that just one character has caused you this?

value should be values

insert into salesreceiptline (CustomerRefListID, TemplateRefListID, TxnDate, IsPending, DueDate, IsToBePrinted, DepositToAccountRefListID,
        BillAddressAddr1, BillAddressAddr2, BillAddressAddr3, BillAddressCity, BillAddressState, BillAddressPostalCode,
        SalesReceiptLineItemRefFullName, SalesReceiptLineDesc, SalesReceiptLineRate, SalesReceiptLineAmount,
        SalesReceiptLineSalesTaxCodeRefListID)
     values ('4CFC0000-1148429307', '60000-1019762012', {d'2006-05-25'}, 0, {d'2006-05-25'}, 0, '650000-1019162593',
       'Joe Mama Inc 3', '123 Main St.', 'Suite 450', 'Chicago', 'IL', '60602',
       'Monthly Subscription', 'BidClerk Sales Lead Subscription', 39.95, 39.95, '20000-1018058558')

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to