Known Issues
A collection of known issues for script tasks and their workarounds.
Dynamic property access error for valid array indexing code
You can't access the property dynamically on $.context, for example, var propName = 'name'; renders an error:
var name = $.context.custom.product[propName]; //error
This rule is exempted for accessing an array of properties. But in few cases, this error occurs but can be resolved using the workaround.
Code
Workaround
Managing data type changes in process variables
When you modify the data type of a Process Variable, you may encounter the following issues:
-
A script task that references the updated variable might fail due to a data type mismatch. If the data type of ‘approve’ variable is changed from Boolean to Number, the script task using the variable displays the following error message:
Type ‘boolean’ is not assignable to type ‘number’.


The Process Design Console doesn't flag this change as an error. This allows projects to deploy successfully, even if script tasks contain issues.

To resolve this, you must manually verify and resolve any script errors to prevent runtime failures or unexpected results.
-
If there's a data type mismatch or a missing variable in the Process Variables Panel, the process and the script tasks are marked as invalid, as shown below.


Even if you update the data types or add the required variables in the Process Variables Panel, the error might still appear in the Process Design Console.

To resolve this, you must navigate to the affected script task and choose Apply again to ensure the changes synchronize properly.
