Script Command PUBLISH fails with empty arrays
Article ID: 87501
CA Automic Workload Automation - Automation Engine
AUTOMIC WORKLOAD AUTOMATION
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.
Root Cause: This is due to performance reasons.
OS Version: N/A
Fill the array with a value.
Fix Status: No Fix
Do not publish empty arrays.