Error message from an IF activity of the workflow: "Wrapped TypeError: Cannot read property "number" from undefined"
Any supported release
Wrong query passed in the Advanced script of the workflow activity
The workflow is defined on the 'task_sla' table.
IF activity in the workflow is trying to fetch the parent task and the query defined was:
The query against the 'sys_id' column must have a matching sys_id, instead a number was passed.
This query fails when trying to fetch data and throw the below error message:
"Wrapped TypeError: Cannot read property "number" from undefined"
The line from the script has to be replaced with:
we can define a variable and then use the same in the query as below:
var inc = current.task.sys_id.toString();
and then the script should look like: