Data serialization error when using custom forms with string arrays
search cancel

Data serialization error when using custom forms with string arrays

book

Article ID: 325962

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

When a blueprint element of type 'array of string/number' is used as part of a Custom form, 'serialization error' can occur when the user is trying to submit the form.

Environment

VMware vRealize Automation 7.4.x

Resolution

VMware is aware of this issue.

A resolution for this issue is being evaluated for inclusion in a future release.

To work around this issue, perform the following steps:
  1. Use the string field instead of an array of string in the custom form and make it hidden.
  2. Add a generic multi-select field in the custom form and fill it with values as you would fill the array field.
  3. Bind the value of the text field with the value of the generic multi-select.
After submitting the values will be sent to the back end as a comma separated string in the text field and they can be parsed and treated as an array in the workflow.