I am trying to update an existing sales order that has 2 lines. I'm basically sending the exact same XML I used to generate the order, but this time it includes the SOPNUMBE, LNITEMSEQs and the UpdateExisting / UpdateIfExists nodes.
I get this exact error message when I call UpdateTransactionEntity: If UpdateExisting is set to 1 than a transaction document number must
be provided.
What am I doing wrong?
<?xml version="1.0" encoding="utf-8"?>
<eConnect xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOPTransactionType>
<eConnectProcessInfo xsi:nil="true"/>
<taRequesterTrxDisabler_Items xsi:nil="true"/>
<taUpdateCreateItemRcd xsi:nil="true"/>
<taUpdateCreateCustomerRcd xsi:nil="true"/>
<taCreateCustomerAddress_Items xsi:nil="true"/>
<taSopSerial_Items xsi:nil="true"/>
<taSopLotAuto_Items xsi:nil="true"/>
<taSopLineIvcInsert_Items>
<taSopLineIvcInsert>
<SOPTYPE>2</SOPTYPE>
<SOPNUMBE>ORD007535</SOPNUMBE>
<CUSTNMBR>SKYBZ_0001979</CUSTNMBR>
<DOCDATE>11/9/2015</DOCDATE>
<ITEMNMBR>GXT3000</ITEMNMBR>
<UNITPRCE>240.00</UNITPRCE>
<QUANTITY>5.00</QUANTITY>
<DOCID>ORDER</DOCID>
<ReqShipDate>11/4/2015</ReqShipDate>
<ShipToName>Bill Wade</ShipToName>
<PRSTADCD>SKYBZ_0001979_PRIMARY</PRSTADCD>
<SHIPMTHD>UPS GND PPA</SHIPMTHD>
<DEFEXTPRICE>1</DEFEXTPRICE>
<UpdateIfExists>1</UpdateIfExists>
</taSopLineIvcInsert>
</taSopLineIvcInsert_Items>
<taSopLineIvcInsertComponent_Items xsi:nil="true"/>
<taSopTrackingNum_Items xsi:nil="true"/>
<taSopCommissions_Items xsi:nil="true"/>
<taSopLineIvcTaxInsert_Items xsi:nil="true"/>
<taCreateSopPaymentInsertRecord_Items xsi:nil="true"/>
<taSopUserDefined>
<SOPTYPE>2</SOPTYPE>
</taSopUserDefined>
<taSopDistribution_Items xsi:nil="true"/>
<taAnalyticsDistribution_Items xsi:nil="true"/>
<taSopMultiBin_Items xsi:nil="true"/>
<taSopHdrIvcInsert>
<BACHNUMB>SFDCORDINT</BACHNUMB>
<SOPTYPE>2</SOPTYPE>
<UpdateExisting>1</UpdateExisting>
<SOPNUMBE>ORD007535</SOPNUMBE>
<DOCID>ORDER</DOCID>
<SHIPMTHD>UPS GND PPA</SHIPMTHD>
<DOCDATE>11/9/2015</DOCDATE>
<CUSTNMBR>SKYBZ_0001979</CUSTNMBR>
<CSTPONBR></CSTPONBR>
<ShipToName>Bill Wade</ShipToName>
<PRBTADCD>SKYBZ_0001979_PRIMARY</PRBTADCD>
<PRSTADCD>SKYBZ_0001979_PRIMARY</PRSTADCD>
<CMMTTEXT></CMMTTEXT>
<CREATECOMM>1</CREATECOMM>
<CREATETAXES>1</CREATETAXES>
<DEFTAXSCHDS>1</DEFTAXSCHDS>
<DEFPRICING>1</DEFPRICING>
<CREATEDIST>1</CREATEDIST>
</taSopHdrIvcInsert>
<taSopToPopLink xsi:nil="true"/>
<taSopUpdateCreateProcessHold xsi:nil="true"/>
<taCreateSOPTrackingInfo xsi:nil="true"/>
<taMdaUpdate_Items xsi:nil="true"/>
</SOPTransactionType>
</eConnect>