“Create as Array” checkbox in Output Type does not always create an array variable.

book

Article ID: 87544

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine AUTOMIC WORKLOAD AUTOMATION

Issue/Introduction

Error Message :
U00021719 Syntax error object 'WS.OBJECT.TASK', line '00004'. 'U01001345 Variable 'myArray#' has not been defined as an array.'

If the 'Create as Array' checkbox is checked and the result of parsing a JSON Response only returns 1 value, the variable created is not created as an Array and the above error is displayed.

Expected 
Checking the box should force the creation of an Array even with only 1 value.


Reference

Automic Documentation:
 
 

Cause

Cause type:
Defect
Root Cause: Check is done for an array with length of 1 and treats it as a String rather than a String [1] whether the array checkbox is set or not

Environment

Release: AOMBOA99000-3.0-Automic-Operations Manager-Business Objects Agent
Component:

Resolution

This field was added on 30/03/2017. This article has not been updated yet. Refer to the "Description" or "Workaround" sections for solution information.

Fix Status: Released

Fix Version(s):
RA Web Service 4.0.0 - Available
RA Web Service 3.2.1 - Available

Additional Information

Workaround :
N/A