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 : purchase order line update statementSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Sample Scripts Forum

 New Topic 
 
 Post Reply 
[1]  
 purchase order line update statement 
 Author   Message 
  jeff 
  
 Group: Members 
 Posts: 76 
 Joined: 2006-06-03 
 Profile
 Posted : 2006-10-17 07:54:34

I am attempting to update an existing purchase order line with the following sql syntax:

Update PurchaseOrderLine set VendorRefListID='260000-934380930', PurchaseOrderLineItemRefListID='60000-934380927',PurchaseOrderLineDesc='Garden walkway lights',PurchaseOrderLineQuantity=28,PurchaseOrderLineRate=14.75,PurchaseOrderLineCustomerRefListID='8C0000-1197736963' where TxnId='2B-934382526' and PurchaseOrderLineTxnLineID = '2D-934382526'

2006-10-16 14:49:30 QODBC Ver:  7.00.00.194 *********************************************************************************************************************
IsAService: False
SQL Statement: Update PurchaseOrderLine set VendorRefListID='260000-934380930', PurchaseOrderLineItemRefListID='60000-934380927',PurchaseOrderLineDesc='Garden walkway lights',PurchaseOrderLineQuantity=28,PurchaseOrderLineRate=14.75,PurchaseOrderLineCustomerRefListI
D='8C0000-1197736963' where TxnId='2B-934382526' and PurchaseOrderLineTxnLineID = '2D-934382526'
Error parsing complete XML return string (8)
Input XML:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?qbxml version="5.0"?>
<QBXML>
    <QBXMLMsgsRq onError = "continueOnError" responseData = "includeNone">
        <PurchaseOrderModRq requestID = "1">
            <PurchaseOrderMod>
                <TxnID>2B-934382526</TxnID>
                <EditSequence>1197755303</EditSequence>
                <PurchaseOrderLineMod>
                    <TxnLineID>2D-934382526</TxnLineID>
                    <ItemRef>
                        <ListID>60000-934380927</ListID>
                    </ItemRef>
                    <Desc>Garden walkway lights</Desc>
                    <Quantity>28.00000</Quantity>
                    <Rate>14.75000</Rate>
                    <CustomerRef>
                        <ListID>8C0000-1197736963</ListID>
                    </CustomerRef>
                </PurchaseOrderLineMod>
                <PurchaseOrderLineMod>
                    <TxnLineID>2E-934382526</TxnLineID>
                </PurchaseOrderLineMod>
                <PurchaseOrderLineMod>
                    <TxnLineID>2F-934382526</TxnLineID>
                </PurchaseOrderLineMod>
                <VendorRef>
                    <ListID>260000-934380930</ListID>
                </VendorRef>
            </PurchaseOrderMod>
        </PurchaseOrderModRq>
    </QBXMLMsgsRq>
</QBXML>

If I remove the VendorRefListID field the query works fine.

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-10-17 09:14:03
You can't change the Vendor for one PurchaseOrderLine line in a purchase order, try updating the PurchaseOrder table instead. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to