We have a number of integrations that create sales orders with scheduled scripts. Last week, one of them started failing with...
Error at RecordInvoker.save (suitescript/resources/javascript/record/serverRecordService.js
...most online messages say to check for aftersubmit UE scripts or workflows that may be conflicting. But it is odd that it is not happening across many different order sources. And it seems to come and go. 6:30pm Friday through 6:30pm Saturday and then started happening again 8:30pm yesterday. Very frustrating that we have no way to find out what exactly is breaking that RecordInvoker.save code.
b
battk
02/12/2024, 4:32 PM
where is the rest of the error,, that looks like part of a stacktrace
s
Scot Sunnergren
02/12/2024, 4:37 PM
Error on SO Create: Error at RecordInvoker.save (suitescript/resources/javascript/record/serverRecordService.js37113) at NetSuiteObject.thenableFunction() (suitescript/resources/javascript/record/proxy.js11524) at createSalesOrder (/SuiteScripts/CustX/CustX_OP_850SC.js30334) at /SuiteScripts/CustX/CustX_OP_850SC.js11232 at Array.forEach (native) at Object.post (/SuiteScripts/CustX/CustX_OP_850SC.js10624)
b
battk
02/12/2024, 4:44 PM
it looks like you caught the error and generated your own error message
battk
02/12/2024, 4:45 PM
you may want to actually just throw the error without modification so that netsuite can handle the error
battk
02/12/2024, 4:45 PM
that occasionally gives more useful error messages