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!
Suitescript: Assembly Build Error: "SSS_INVALID_SUBLIST_OPERATION" / Work order
Hi guys,
I am trying to create an Assembly Build by Suitescript, and I have a problem assigning data to the first line of the component.
I have tried:
"try {
var lineNum = rec.selectLine({ sublistId: 'component', line: 0 });
} catch (e) {
log.debug('ERROR select line', 'Component1 failed with error.' + e)
};"
or
"try {
rec.setCurrentSublistValue({
sublistId: 'component',
fieldId: 'quantity',
linenumber: 0,
value: data.component1Quantity,
ignoreFieldChange: true
});
} catch (e) {
log.debug('ERROR select line', 'Component1 failed with error.' + e)
};
I have same error message:
""type":"error.SuiteScriptError","name":"SSS_INVALID_SUBLIST_OPERATION","message":"You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-exist (more...)