I am getting an invalid transaction type when I am adding an item fulfillment created from a sales order.
The Response:
<soapenv:Body> <upsertResponse xmlns="urn:messages_2012_2.platform.webservices.netsuite.com"> <writeResponse> <platformCore:status isSuccess="false" xmlns:platformCore="urn:core_2012_2.platform.webservices.netsuite.com"> <platformCore:statusDetail type="ERROR"> <platformCore:code>INVALID_TRANS_TYP</platformCore:code> <platformCore:message>Transaction type specified is incorrect.</platformCore:message> </platformCore:statusDetail> </platformCore:status> <baseRef xsi:type="platformCore:RecordRef" type="itemFulfillment" externalId="ourextID" internalId="3xx6xx4" xmlns:platformCore="urn:core_2012_2.platform.webservices.netsuite.com"/> </writeResponse> </upsertResponse> </soapenv:Body>
The Request: <soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <upsert xmlns="urn:messages_2012_2.platform.webservices.netsuite.com"> <record xsi:type="ns1:ItemFulfillment" externalId="ourExtId" xmlns:ns1="urn:sales_2012_2.transactions.webservices.netsuite.com"> <ns1:createdFrom xsi:type="ns2:RecordRef" internalId="3xx6xx4" xmlns:ns2="urn:core_2012_2.platform.webservices.netsuite.com"> <ns2:name xsi:type="xsd:string">Sales Order #111211121</ns2:name> </ns1:createdFrom> <ns1:tranDate xsi:type="xsd:dateTime">2012-11-21T05:00:00.000Z</ns1:tranDate> <ns1:packageList xsi:type="ns1:ItemFulfillmentPackageList" replaceAll="false"> <ns1:package xsi:type="ns1:ItemFulfillmentPackage"> <ns1:packageWeight xsi:type="xsd:double">1.4</ns1:packageWeight> <ns1:packageDescr xsi:type="xsd:string"/> <ns1:packageTrackingNumber xsi:type="xsd:string">9trackingnumber4</ns1:packageTrackingNumber> </ns1:package> </ns1:packageList> <ns1:itemList xsi:type="ns1:ItemFulfillmentItemList" replaceAll="false"> <ns1:item xsi:type="ns1:ItemFulfillmentItem"> <ns1:item xsi:type="ns3:RecordRef" internalId="00000" xmlns:ns3="urn:core_2012_2.platform.webservices.netsuite.com"> <ns3:name xsi:type="xsd:string">sku name</ns3:name> </ns1:item> <ns1:orderLine xsi:type="xsd:long">1</ns1:orderLine> </ns1:item> </ns1:itemList> </record> </upsert> </soapenv:Body> </soapenv:Envelope>
For what its worth, I am using Java to make the request. I can't see an error here, any ideas?