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!
SuiteScript - Error accessing a field on a non-existent line or add lines from a static sublist.
Hi all,
I created a custom record with a custom sublist and am having some trouble scripting with it. Wondering if anyone might be able to help me as I try to debug this.
The error is as follows:
{"type":"error.SuiteScriptError","name":"MAD_RECORD_ERROR","message":"An error occurred while updating or creating the MAD record: You have attempted an invalid sublist or line item operation. You are either trying to access a field on a non-existent line or you are trying to add or remove lines from a static sublist.","id":null,"stack":["createError(N/error)","updateOrCreateMADRecord(/SuiteScripts/AssetDisposal.js:224)"
0