How to resolve ‘system:UNEXPECTED_ERROR ‘ while creating vendor record using suitescript2.0?
Error i am getting while creating vendor record using restlet suitescript2.0 is :
system:UNEXPECTED_ERROR
{“type”:”error.SuiteScriptError”,
“name”:”UNEXPECTED_ERROR”,”message”:null,
“stack”:[“<anonymous>(N/record/recordService.js)”,”<anonymous>(adhoc$-1$debugger.user:59)”,”<anonymous>(adhoc$-1$debugger.user:1)”],
“cause”:{“type”:”internal error”,”code”:”UNEXPECTED_ERROR”,”details”:null,”userEvent”:null,
“stackTrace”:[“<anonymous>(N/record/recordService.js)”,”<anonymous>(adhoc$-1$debugger.user:59)”,”<anonymous>(adhoc$-1$debugger.user:1)”],”notifyOff”:false},
“id”:”bc91b425-23e0-44a7-8a65-98c616844073-2d323032302e30342e3033″,”notifyOff”:false,”userFacing”:false}
I would test your form and the user’s role to manually create a vendor first, you may find an error that is causing the problem prior to your script’s execution.