The pushToArray task now requires arrays to exist before use. Previously, the task created arrays automatically.
What changed: If you use pushToArray with a non-existent array, the task fails and the workflow follows the error path.
Who is affected: Platform 6 users with workflows from Platform 2023.2 or earlier that use pushToArray without creating the array first.
When pushToArray cannot find the array variable, you will see:
The task enters an error state and the workflow follows the error transition.
When you create the array first, the task completes successfully.
Identify workflows that use pushToArray without creating the array first. The most likely candidates are:
pushToArray in forEach loopsAdd a newVariable task before any pushToArray task. Add it at the start of your workflow, before the forEach loop if using pushToArray inside a loop, or anywhere before the first pushToArray task.
From the task palette, select WorkflowEngine > newVariable. Drag the task onto your canvas before pushToArray.
See Workflow best practices for more details on defining job variables.
If your workflows relied on the old behavior (success path even without an existing array), add error handling:
pushToArray in non-production.This change particularly affects:
pushToArray in loopsBoth Platform 2022.1 and Platform 6 show a red asterisk (*) next to the array field. However: