RE: Unexpected Error on Inventory Item Creation in Restlet
I have a restlet written in Suitescript 1.0 (haven’t had the chance to convert it yet). I use this to create orders and customers and pull records in general. I’m using it for the first time to create items, but upon the execution of nlapiSubmitRecord it’s returning UNEXPECTED_ERROR. Has anyone dealt with this before or even have successful code with item creation. The most I can find is that possibly another onsubmit record may be interfering with this, but I’m not sure. Some guidance would be much appreciated!
Thanks
Here is the Body data:
Here is the error response:
Cause: An unexpected error has occurred
Account: 4201313
Environment: Production
Date & Time: 03/16/2021 10:11 am
Execution Time: 0.00s
Script Usage: 0
Script: FileMaker Restlet
Type: RESTlet
Function: createRecord
Error: UNEXPECTED_ERROR
Ticket: kmc4yzrtcpejd2cxejrb
Stack Trace: createRecord(fmSuiteLet.js$61761:149)
restletwrapper(null:4)
<anonymous>(fmSuiteLet.js$61761:158)
battk
Share the code, preferably with hardcoded variables