Blueprint dynamic enum input cannot be validated if the action return type is Array/Properties
search cancel

Blueprint dynamic enum input cannot be validated if the action return type is Array/Properties

book

Article ID: 314787

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
  • Blueprint dynamic enum input cannot be validated if the action return type is Array/Properties
  • The blueprint contains an input with an action return type of Array/Properties:

  test:
    type: string
    title: Test Action
    $dynamicEnum: /data/vro-actions/com.vmware.repro/EnumRepro

  •  The vRealize Orchestrator action has a return type of Array properties:

image.png

 

  • The deployment fails with error similar to:

Value 'value 1' is not in list of valid values ["label", "value", "label", "value", "label", "value", "label", "value", "label", "value"]


Environment

VMware vRealize Automation 8.x

Cause

The issue occurs due to a defect in the code which fails to convert Properties element to a single DataElement.

Resolution

The issue is resolved in the upcoming Aria Automation 8.13.1 release.

Workaround:

To workaround the issue Add one property to each Properties object whose key is the value. For example:

new Properties({value: 'test', 'test': '', label: 'test'})
var result = [];
result.push(new Properties({value: '21806002', '21806002': '', label: 'master'}));
result.push(new Properties({value: '21770918', '21770918': '', label: '8.12.1'}));
result.push(new Properties({value: '21803318', '21803318': '', label: '8.12.0'}));
return result;