Hopefully somsone can help me on this. I have a sales order that i want to fulfill, and wanted to use the initialize feature. The problem is, it throws an error about one of my custom fields. Here is the code with SOAP response.
Firstly code in C#:
InitializeRecord initRec = new InitializeRecord(); initRec.type = InitializeType.itemFulfillment; InitializeRef initRef = new InitializeRef(); initRef.type = InitializeRefType.salesOrder; initRef.internalId = "123456"; initRef.typeSpecified = true; initRec.reference = initRef; ReadResponse initResponse = Service.initialize(initRec); if (initResponse.status.isSuccess) { ItemFulfillment cs = (ItemFulfillment)initResponse.record; WriteResponse wres = Service.add(cs); } Here is the SOAP response: <soapenv:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2010_1.platform.webservices.netsuite.com"> <platformMsgs:nsId>WEBSERVICES_XXXXXX_651fd61f651fs6d51afsf1</platformMsgs:nsId> </platformMsgs:documentInfo> </soapenv:Header> <soapenv:Body> <addResponse xmlns="urn:messages_2010_1.platform.webservices.netsuite.com"> <writeResponse> <platformCore:status isSuccess="false" xmlns:platformCore="urn:core_2010_1.platform.webservices.netsuite.com"> <platformCore:statusDetail type="ERROR"> <platformCore:code>INVALID_CSTM_FIELD_DATA_TYP</platformCore:code> <platformCore:message>The customfield [CUSTCOL_COMP_BELTS] reference object does not match its data type.</platformCore:message> </platformCore:statusDetail> </platformCore:status> </writeResponse> </addResponse> </soapenv:Body> </soapenv:Envelope>