Script Command PUBLISH fails with empty arrays
search cancel

Script Command PUBLISH fails with empty arrays


Article ID: 87501


Updated On:


CA Automic Workload Automation - Automation Engine


Error Message :
Error U01001340 The array 'TESTArray#' has not yet been defined.'

Script command PUBLISH

Arrays are published with their filled size.

For example, if an array is defined with 5 entries and the last entry with content other than a null-string is entry # 3 then only the entries 1 to 3 are published to the subsequent tasks. 

In conclusion, the size of the array in the subsequent task is limited to 3. If the array is completely empty (all entries have null-string assigned) than nothing is published.

This is designed this way so that performance is not impacted.


OS Version: N/A


Cause type:
By design
Root Cause: This is due to performance reasons.


Fill the array with a value.

Fix Status: No Fix

Fix Version(s):

Additional Information

Workaround :
Do not publish empty arrays.