Hi Everyone, I am trying to insert a line item at...
# general
e
Hi Everyone, I am trying to insert a line item at the customer record where the sublist is named 'Content' below is the screenshot: The sublist is created by the script User event' BeforeLoad event which is locked by the bundle, so when I am creating the custom record by using suitelet script I am unable to insert the item line in the sublist I am getting error as below:
Copy code
{
   type: "error.SuiteScriptError",
   name: "USER_ERROR",
   message: "Items you have requested in the record have been deleted since you retrieved the form",
   stack: [
      "Error\n    at RecordInvoker.save (suitescript/resources/javascript/record/serverRecordService.js:371:13)\n    at NetSuiteObject.thenableFunction() (suitescript/resources/javascript/record/proxy.js:115:24)\n    at Object.afterSubmit (/SuiteScripts/GBS_UE_ValidateSkidRecord.js:158:32)"
   ],
   cause: {
      type: "internal error",
      code: "USER_ERROR",
      details: "Items you have requested in the record have been deleted since you retrieved the form",
      userEvent: null,
      stackTrace: [
         "Error\n    at RecordInvoker.save (suitescript/resources/javascript/record/serverRecordService.js:371:13)\n    at NetSuiteObject.thenableFunction() (suitescript/resources/javascript/record/proxy.js:115:24)\n    at Object.afterSubmit (/SuiteScripts/GBS_UE_ValidateSkidRecord.js:158:32)"
      ],
      notifyOff: false
   },
   id: "",
   notifyOff: false,
   userFacing: true
}
All I want to insert is the item line into the script does anybody has any idea how this error can be solved??