Any ideas as to why when we upgraded our SuiteTalk code from 2009_1 to 2011_1 we suddenly started getting INSUFFICIENT_PERMISSION errors when setting the custom form on a Sales Order record add? I commented out the line of code that set the custom form value, and that error went away. I also went back and tried our original 2009_1 code, and that worked fine. The only thing we changed was 2009_1 to 2011_1 in any references to full class paths, namespace references, etc.
Here's a sample SOAP request (with name, address, other private data altered) and response.
Request:
<?xml version="1.0"?> -<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -<soapenv:Header> -<ns1:passport xmlns:ns1="urn:messages_2011_1.platform.webservices.netsuite.com" soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next" soapenv:mustUnderstand="0"> <ns2:email xmlns:ns2="urn:core_2011_1.platform.webservices.netsuite.com">**************</ns2:email> <ns3:password xmlns:ns3="urn:core_2011_1.platform.webservices.netsuite.com">**************</ns3:password> <ns4:account xmlns:ns4="urn:core_2011_1.platform.webservices.netsuite.com">******</ns4:account> </ns1:passport> </soapenv:Header> -<soapenv:Body> -<add xmlns="urn:messages_2011_1.platform.webservices.netsuite.com"> -<record xmlns:ns5="urn:sales_2011_1.transactions.webservices.netsuite.com" externalId="dmidSO251103" xsi:type="ns5:SalesOrder"> <ns5:customForm xsi:type="ns6:RecordRef" xmlns:ns6="urn:core_2011_1.platform.webservices.netsuite.com" internalId="103"/> <ns5:entity type="customer" xsi:type="ns7:RecordRef" internalId="53615" xmlns:ns7="urn:core_2011_1.platform.webservices.netsuite.com"/> <ns5:tranDate xsi:type="xsd:dateTime">2011-09-16T05:00:00.000Z</ns5:tranDate> <ns5:orderStatus xsi:type="ns8:SalesOrderOrderStatus" xmlns:ns8="urn:types.sales_2011_1.transactions.webservices.netsuite.com">_pendingFulfillment</ns5:orderStatus> <ns5:salesRep xsi:type="ns9:RecordRef" internalId="15070" xmlns:ns9="urn:core_2011_1.platform.webservices.netsuite.com"/> <ns5:memo xsi:type="xsd:string">2837889</ns5:memo> <ns5:billAddress xsi:type="xsd:string">John Smith 98577</ns5:billAddress> <ns5:shipAddress xsi:type="xsd:string">John Smith 34 Main St Anytown, MN 98577</ns5:shipAddress> <ns5:paymentMethod xsi:type="ns10:RecordRef" internalId="5" xmlns:ns10="urn:core_2011_1.platform.webservices.netsuite.com"/> <ns5:ccNumber xsi:type="xsd:string">****************</ns5:ccNumber> <ns5:ccExpireDate xsi:type="xsd:dateTime">2015-05-31T05:00:00.000Z</ns5:ccExpireDate> <ns5:ccName xsi:type="xsd:string">John Smith</ns5:ccName> <ns5:ccStreet xsi:type="xsd:string"/> <ns5:ccZipCode xsi:type="xsd:string">55555</ns5:ccZipCode> <ns5:creditCardProcessor xsi:type="ns11:RecordRef" internalId="1" xmlns:ns11="urn:core_2011_1.platform.webservices.netsuite.com"/> <ns5:ccAvsStreetMatch xsi:type="ns12:AvsMatchCode" xmlns:ns12="urn:types.common_2011_1.platform.webservices.netsuite.com">_n</ns5:ccAvsStreetMatch> <ns5:ccAvsZipMatch xsi:type="ns13:AvsMatchCode" xmlns:ns13="urn:types.common_2011_1.platform.webservices.netsuite.com">_y</ns5:ccAvsZipMatch> <ns5:ccSecurityCodeMatch xsi:type="ns14:AvsMatchCode" xmlns:ns14="urn:types.common_2011_1.platform.webservices.netsuite.com">_y</ns5:ccSecurityCodeMatch> <ns5:department type="department" xsi:type="ns15:RecordRef" internalId="21" xmlns:ns15="urn:core_2011_1.platform.webservices.netsuite.com"/> -<ns5:itemList xsi:type="ns5:SalesOrderItemList" replaceAll="false"> -<ns5:item xsi:type="ns5:SalesOrderItem"> <ns5:item xsi:type="ns16:RecordRef" internalId="84" xmlns:ns16="urn:core_2011_1.platform.webservices.netsuite.com"/> <ns5:quantity xsi:type="xsd:double">1.0</ns5:quantity> <ns5:description xsi:type="xsd:string">Sale total</ns5:description> <ns5:rate xsi:type="xsd:string">60.0000</ns5:rate> <ns5:amount xsi:type="xsd:double">60.0</ns5:amount> </ns5:item> </ns5:itemList> </record> </add> </soapenv:Body> </soapenv:Envelope>
Response: <?xml version="1.0"?> -<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> -<soapenv:Header> -<platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2011_1.platform.webservices.netsuite.com"> <platformMsgs:nsId>WEBSERVICES_602541_091620111929829086426356634_d23f5b8c5af82</platformMsgs:nsId> </platformMsgs:documentInfo> </soapenv:Header> -<soapenv:Body> -<addResponse xmlns="urn:messages_2011_1.platform.webservices.netsuite.com"> -<writeResponse> -<platformCore:status xmlns:platformCore="urn:core_2011_1.platform.webservices.netsuite.com" isSuccess="false"> -<platformCore:statusDetail type="ERROR"> <platformCore:code>INSUFFICIENT_PERMISSION</platformCore:code> <platformCore:message>You do not have permissions to set a value for element customform due to one of the following reasons: 1) The field is read-only; 2) An associated feature is disabled; 3) The field is available either when a record is created or updated, but not in both cases.</platformCore:message> </platformCore:statusDetail> </platformCore:status> </writeResponse> </addResponse> </soapenv:Body> </soapenv:Envelope>