Hi All, getting this error while doing submitfield...
# suitescript
s
Hi All, getting this error while doing submitfields o_sub_record_view is the internalid's to timbills var recId = record.submitFields({ type: record.Type.TIME_BILL, id: o_sub_record_view, values: { approvalstatus: '3' } }); Error is
Copy code
{
   type: "error.SuiteScriptError",
   name: "UNEXPECTED_ERROR",
   message: "An unexpected SuiteScript error has occurred",
   stack: [
      "Error\n    at suitescript/resources/javascript/record/recordImpl.js:156:24\n    at Object.submitFields (suitescript/resources/javascript/record/recordImpl.js:154:30)\n    at Object.onRequest (/SuiteScripts/SUT_TimesheetApproval.js:39:64)"
   ],
   cause: {
      type: "internal error",
      code: "UNEXPECTED_ERROR",
      details: "An unexpected SuiteScript error has occurred",
      userEvent: null,
      stackTrace: [
         "Error\n    at suitescript/resources/javascript/record/recordImpl.js:156:24\n    at Object.submitFields (suitescript/resources/javascript/record/recordImpl.js:154:30)\n    at Object.onRequest (/SuiteScripts/SUT_TimesheetApproval.js:39:64)"
      ],
      notifyOff: false
   },
   id: "09159f79-cc49-40ab-9ab1-186e2a0c1f3a-2d323032332e30332e3137",
   notifyOff: false,
   userFacing: true
}