Discussions
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!
"Invalid custcol_XXXXX reference key 2.0" started showing up overnight
I've got a SS2.0 User Event script that runs before Sales Orders are submitted.
The script loops over every line item on the order and sets a line value like below:
context.newRecord.setSublistValue('item', 'custcol_XXXXX', i, 2);
Where 'custcol_XXXXX' is a List/Record type, referencing a Custom List.
Nothing related to this has changed for months, and it worked fine through yesterday afternoon.
Today, the error "Invalid custcol_XXXXX reference key 2.0" began showing up when saving Sales Orders.
Adding quotes around the value (2) which references the internal id of the list item was enough to resolve my issue: