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!



logancornelius Rookie Asked on March 10, 2021 in Items.

Share the code, preferably with hardcoded variables

on March 10, 2021.
Add Comment
4 Answers

Here is the Body data:

“displayname”:”Test SKU”,
“cost”: 0.00,
“unitstype”: 1,
“stockunit”: 1,
“purchaseunit”: 1,
“saleunit”: 1,
“description”: “Test Description”

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
Ticket: kmc4yzrtcpejd2cxejrb
Stack Trace: createRecord(fmSuiteLet.js$61761:149)

Rookie Answered on March 16, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.