Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Uncover the power of data with the Analytics Hub —your ultimate guide to mastering NetSuite Saved Searches and Reports. Simplify the complex and unlock your organization's true potential. Dive into the Analytics Hub now and soar to new heights!
To help you get the most out of your 2025.2 Release Preview account, review the topics outlined in the 2025.2 Release Preview Guide.
SuiteWorld October 6 - 9, 2025: Agenda Builder is live!
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Going to SuiteWorld? Connect with SuiteGurus—Your NetSuite Product Experts!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Invalid location ref key when upserting SO in java
I am getting error:
get operation on customer record was not successful
error
type: ERROR
code: INVALID_KEY_OR_REF
message: Invalid location reference key undefined.
When performing an upsert on a Sales Order record. Checking the integration log shows that the customer is being retrieved correctly which makes the error misleading.
My SOAP request looks correct and is as follows:
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:SalesOrder" externalId="extID134817410243" xmlns:ns1="urn:sales_2012_2.transactions.webservices.netsuite.com"> <ns1:customForm xsi:type="ns2:RecordRef" internalId="222" xmlns:ns2="urn:core_2012_2.platform.webservices.netsuite.com"/> <ns1:entity xsi:type="ns3:RecordRef" type="customer" internalId="1221212123" xmlns:ns3="urn:core_2012_2.platform.webservices.netsuite.com"/> <ns1:tranDate xsi:type="xsd:dateTime">2012-11-10T05:00:00.000Z</ns1:tranDate> <ns1:orderStatus xsi:type="ns4:SalesOrderOrderStatus" xmlns:ns4="urn:types.sales_2012_2.transactions.webservices.netsuite.com">_pendingFulfillment</ns1:orderStatus> <ns1:otherRefNum xsi:type="xsd:string">ourPOnum</ns1:otherRefNum> <ns1:memo xsi:type="xsd:string">Order</ns1:memo> <ns1:shippingTaxCode xsi:type="ns5:RecordRef" type="taxGroup" internalId="16" xmlns:ns5="urn:core_2012_2.platform.webservices.netsuite.com"/> <ns1:class xsi:type="ns6:RecordRef" internalId="2" xmlns:ns6="urn:core_2012_2.platform.webservices.netsuite.com"/> <ns1:itemList xsi:type="ns1:SalesOrderItemList" replaceAll="false"> <ns1:item xsi:type="ns1:SalesOrderItem"> <ns1:item xsi:type="ns7:RecordRef" internalId="1111" xmlns:ns7="urn:core_2012_2.platform.webservices.netsuite.com"/> <ns1:quantity xsi:type="xsd:double">1.0</ns1:quantity> <ns1:price xsi:type="ns8:RecordRef" type="priceLevel" internalId="-1" xmlns:ns8="urn:core_2012_2.platform.webservices.netsuite.com"/> <ns1:amount xsi:type="xsd:double">44.97</ns1:amount> <ns1:location xsi:type="ns9:RecordRef" type="location" internalId="7" xmlns:ns9="urn:core_2012_2.platform.webservices.netsuite.com"/> <ns1:customFieldList xsi:type="ns10:CustomFieldList" xmlns:ns10="urn:core_2012_2.platform.webservices.netsuite.com"> <ns10:customField xsi:type="ns10:StringCustomFieldRef" internalId="custcol_amazon_line_id"> <ns10:value xsi:type="xsd:string">ourCustField</ns10:value> </ns10:customField> <ns10:customField xsi:type="ns10:StringCustomFieldRef" internalId="custcol_onlinedisplayname"> <ns10:value xsi:type="xsd:string">skuName</ns10:value> </ns10:customField> </ns1:customFieldList> </ns1:item> </ns1:itemList> </record> </upsert> </soapenv:Body> </soapenv:Envelope>
0