Getting this error ```{ type: "error.SuiteScrip...
# suitescript
r
Getting this error
Copy code
{
   type: "error.SuiteScriptError",
   name: "INVALID_ID",
   message: "You have provided an invalid script id or internal id: customscript_ig_monitor_mr",
   id: "",
   stack: [
      "Error\n    at Object.onRequest (/SuiteScripts/ItemGeneration/ig_monitor_sl.js:172:22)"
   ],
   cause: {
      type: "internal error",
      code: "INVALID_ID",
      details: "You have provided an invalid script id or internal id: customscript_ig_monitor_mr",
      userEvent: null,
      stackTrace: [
         "Error\n    at Object.onRequest (/SuiteScripts/x/ig_monitor_sl.js:172:22)"
      ],
      notifyOff: false
   },
   notifyOff: false,
   userFacing: true
}
For the below code in a suitelet.
Copy code
const scriptTaskId = task
    .create({
        taskType: task.TaskType.MAP_REDUCE,
        scriptId: 'customscript_ig_monitor_mr'
    })
    .submit()
A map reduce script record with the id 'customscript_ig_monitor_mr' is already created is active and the script is deployed with the status released.. I am not sure why I am getting this error.
e
You can also use the numeric id. Can we see the script record?
r
I figured it out just now, spend so much time on this for no reason, the script record was created as suitlet, maybe initially I added the wrong script file while creating the record. This was so stupid, argh.
1