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!
What is the SuiteScript UNEXPECTED_ERROR when transforming POs to Receipts?
NS throws "An unexpected SuiteScript error has occurred" on the following logic.
I found that "newRecord.setSublistValue" part fails but the log is completely useless for finding what is wrong with it.
Are there any points of the specification's limitation?
FYI, I confirmed "locationId" and other id are currently gotten.
const newRecord = record.transform({
fromType: fromRecord,
fromId: fromRecordId,
toType: toRecord,
});
newRecord.setSublistValue({
sublistId: "item",
fieldId: "location",
line: 1,
value: locationId,
});
newRecord.save({
enableSourcing: true,
});