Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
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...)