raghav
05/30/2024, 1:39 PM{
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.
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.Edgar Valdes
05/30/2024, 1:54 PMraghav
05/30/2024, 2:00 PM