Have restlet script which works 99.5% of the time however have sometimes get an unexpected error
{"type":"error.SuiteScriptError","name":"UNEXPECTED_ERROR","message":null,"id":"51d178ad-7eaa-4275-946a-62461a21a698-2d323032332e31312e3138","stack":["anonymous(N/serverRecordService)","doPost(/SuiteScripts/CreateIR.js:138)"],"cause":{"type":"internal error","code":"UNEXPECTED_ERROR","details":null,"userEvent":null,"stackTrace":["anonymous(N/serverRecordService)","doPost(/SuiteScripts/CreateIR.js:138)"],"notifyOff":false},"notifyOff":false,"userFacing":false}
Question - what are the causes for this? for context it's a create item receipt from a PO and postrequest payload coming in has a few values that need to be populated on the PO once all the item receipts have been successfully created..