Price estimate phase fails during custom form validation in VCF Automation 9.1.0
search cancel

Price estimate phase fails during custom form validation in VCF Automation 9.1.0

book

Article ID: 448634

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

In VCF Automation 9.1.0, the validation fails during the custom form "Price Estimate" phase. The action bound to input in custom form returns an empty array, even when valid data is present in the field.

Environment

VCF Automation 9.1.0

Cause

This is a known issue when project id is used in the action. The project ID is not passed to the action the second time it runs, specifically, when the backend re-executes it to validate the inputs at submission time.

Resolution

Broadcom Engineering is aware of this issue. A fix for the issue will be released in the future version. A workaround to the issue is to have the action fall back to reading the project ID directly from the execution context if it doesn't receive it as a parameter.

Workaround :

Add the below code to the beginning of the action script :

if (strProjectName == null) {
    strProjectName = System.getContext().getParameter("__projectId");
}
if (strProjectName == null) {
    strProjectName = System.getContext().getParameter("_projectId");
}