OK, can someone help me out here, cause i can't see what is wrong.
We have a custom record (Suscriptions) which has a "Customer" field reference on it ("custentity6").
It doesn't break all of the time, just sometime so I can't find what is breaking it...The customer record exists and the ID is valid...
Here is the XML "Add" request:
<?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_1_3.platform.webservices.netsuite.com">
<warningAsError>false</warningAsError>
</preferences>
</soap:Header>
- <soap:Body>
- <add xmlns="urn:messages_1_3.platform.webservices.netsuite.com">
- <record xmlns:q1="urn:customization_1_3.setup.webservices.netsuite.com" xsi:type="q1:CustomRecord">
<q1:recType internalId="60" />
- <q1:customFieldList>
- <customField xsi:type="SelectCustomFieldRef" internalId="custrecord6" xmlns="urn:core_1_3.platform.webservices.netsuite.com">
<value internalId="343732" />
</customField>
- <customField xsi:type="SelectCustomFieldRef" internalId="custrecord5" xmlns="urn:core_1_3.platform.webservices.netsuite.com">
<value internalId="6" />
</customField>
- <customField xsi:type="DateCustomFieldRef" internalId="custrecord16" xmlns="urn:core_1_3.platform.webservices.netsuite.com">
<value>2006-07-18T00:00:00</value>
</customField>
- <customField xsi:type="DateCustomFieldRef" internalId="custrecord7" xmlns="urn:core_1_3.platform.webservices.netsuite.com">
<value>2007-07-18T00:00:00</value>
</customField>
- <customField xsi:type="StringCustomFieldRef" internalId="custrecord4" xmlns="urn:core_1_3.platform.webservices.netsuite.com">
<value>OTHER</value>
</customField>
</q1:customFieldList>
</record>
</add>
</soap:Body>
</soap:Envelope>
Here is the ERROR:
<?xml version="1.0" encoding="utf-8" ?>
- <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Header>
- <documentInfo xmlns="urn:messages_1_3.platform.webservices.netsuite.com">
<nsId>WEBSERVICES_306630_0718200621113880761460591915_4ae2878d23f0</nsId>
</documentInfo>
</soapenv:Header>
- <soapenv:Body>
- <addResponse xmlns="urn:messages_1_3.platform.webservices.netsuite.com">
- <writeResponse xmlns="urn:messages_1_3.platform.webservices.netsuite.com">
- <ns1:status isSuccess="false" xmlns:ns1="urn:core_1_3.platform.webservices.netsuite.com">
- <ns1:statusDetail type="ERROR">
<ns1:code>INVALID_CSTM_FIELD_REF</ns1:code>
<ns1:message>The specified custom field reference custrecord6 is invalid.</ns1:message>
</ns1:statusDetail>
</ns1:status>
</writeResponse>
</addResponse>
</soapenv:Body>
</soapenv:Envelope>
Please let me know if you see anything,cause I can't.
THanks!
Gary