I know I am doing something silly but I cannot figure it out. I am initializing the vendorBill from a purchase order. I am not manipulating anything, just initializing and then doing an add.
The soap response is:
ERROR: INVALID_LIST_ID - You must specify a valid line ID. Please set orderLine
<?xml version="1.0" encoding="utf-8" ?> - <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> - <soap:Header> - <preferences xmlns="urn:messages_2_6.platform.webservices.netsuite.com"> <disableSystemNotesForCustomFields>false</disableSystemNotesForCustomFields> <ignoreReadOnlyFields>true</ignoreReadOnlyFields> </preferences> </soap:Header> - <soap:Body> - <add xmlns="urn:messages_2_6.platform.webservices.netsuite.com"> - <record xsi:type="q1:VendorBill" externalId="vb10020z647574" xmlns:q1="urn:purchases_2_6.transactions.webservices.netsuite.com"> <q1:createdDate>2007-09-26T18:31:00-05:00</q1:createdDate> <q1:lastModifiedDate>2007-10-12T12:20:00-05:00</q1:lastModifiedDate> - <q1:customForm internalId="106"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">CT-Vendor Bill</name> </q1:customForm> - <q1:account internalId="117"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">2000 Accounts Payable</name> </q1:account> - <q1:entity internalId="21"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">10020 Vickerman</name> </q1:entity> - <q1:postingPeriod internalId="15"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">Oct 2007</name> </q1:postingPeriod> <q1:tranDate>2007-09-26T00:00:00</q1:tranDate> - <q1:terms internalId="2"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">Net 30</name> </q1:terms> <q1:dueDate>2007-11-11T02:00:00-06:00</q1:dueDate> <q1:tranId>647574</q1:tranId> <q1:userTotal>719.46</q1:userTotal> <q1:discountAmount>0</q1:discountAmount> <q1:memo>Bill's Test</q1:memo> - <q1:itemList> - <q1:item> - <q1:item internalId="1213"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">17659 Box of 2: 9' x 20" Crystal White Garland, Pre Lit, Clear</name> </q1:item> <q1:line>1</q1:line> <q1:orderLine>1</q1:orderLine> <q1:quantity>4</q1:quantity> - <q1:units internalId="1"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">Box of 1</name> </q1:units> <q1:rate>41.27</q1:rate> <q1:amount>165.08</q1:amount> - <q1:customer internalId="2901"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">Quinn, Bill Customer</name> </q1:customer> <q1:isBillable>false</q1:isBillable> - <q1:customFieldList> - <customField xsi:type="StringCustomFieldRef" internalId="custcol_vendor_name_code" xmlns="urn:core_2_6.platform.webservices.netsuite.com"> <value>A805819:9' X 20" Prelit Crystal White Spruce Garland, 290 T</value> </customField> </q1:customFieldList> </q1:item> - <q1:item> - <q1:item internalId="127"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">17318 7.5' Alaskan Christmas Tree, Flock Full, Pre Lit, Clear</name> </q1:item> <q1:line>3</q1:line> <q1:orderLine>3</q1:orderLine> <q1:quantity>1</q1:quantity> - <q1:units internalId="1"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">Box of 1</name> </q1:units> <q1:rate>284.23</q1:rate> <q1:amount>284.23</q1:amount> - <q1:customer internalId="2901"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">Quinn, Bill Customer</name> </q1:customer> <q1:isBillable>false</q1:isBillable> - <q1:customFieldList> - <customField xsi:type="StringCustomFieldRef" internalId="custcol_vendor_name_code" xmlns="urn:core_2_6.platform.webservices.netsuite.com"> <value>A806376:7.5' X 68" Prelit Flkd Alaskan 800 Clear, 1495 Tips</value> </customField> </q1:customFieldList> </q1:item> - <q1:item> - <q1:item internalId="973"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">17430 7.5' Black Shimmering Christmas Tree, Full, Pre Lit, Clear</name> </q1:item> <q1:line>4</q1:line> <q1:orderLine>4</q1:orderLine> <q1:quantity>1</q1:quantity> - <q1:units internalId="1"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">Box of 1</name> </q1:units> <q1:rate>270.15</q1:rate> <q1:amount>270.15</q1:amount> - <q1:customer internalId="2901"> <name xmlns="urn:core_2_6.platform.webservices.netsuite.com">Quinn, Bill Customer</name> </q1:customer> <q1:isBillable>false</q1:isBillable> - <q1:customFieldList> - <customField xsi:type="StringCustomFieldRef" internalId="custcol_vendor_name_code" xmlns="urn:core_2_6.platform.webservices.netsuite.com"> <value>K863176:7.5' x 69" Black Spruce Tree 1982 Tips Metal Base 8</value> </customField> </q1:customFieldList> </q1:item> </q1:itemList> - <q1:customFieldList> - <customField xsi:type="SelectCustomFieldRef" internalId="custbody_integration_status" xmlns="urn:core_2_6.platform.webservices.netsuite.com"> <value internalId="4" typeId="4" /> </customField> </q1:customFieldList> </record> </add> </soap:Body> </soap:Envelope>