Script Command PUBLISH fails with empty arrays

Document ID : KB000087501
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
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.
Environment:
OS Version: N/A
Cause:
Cause type:
By design
Root Cause: This is due to performance reasons.
Resolution:
Fill the array with a value.

Fix Status: No Fix

Fix Version(s):
N/A
Additional Information:
Workaround :
Do not publish empty arrays.