Error message from an IF activity of the workflow: "Wrapped TypeError: Cannot read property "number" from undefined"Issue <!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --> Symptoms Error message from an IF activity of the workflow: "Wrapped TypeError: Cannot read property "number" from undefined" Release Any supported release Cause Wrong query passed in the Advanced script of the workflow activity Resolution 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:rec.addQuery('sys_id', rec.current.number); 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:rec.addQuery('sys_id', current.task.sys_id.toString());ORwe 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:rec.addQuery('sys_id', inc);