The deployment form failed with the following error 'getAssginedComputeTag' in module 'com.example.lab' failed : TypeError: Cannot read property "tags" from undefined (com.example.lab/getAssginedComputeTag#10)
search cancel

The deployment form failed with the following error 'getAssginedComputeTag' in module 'com.example.lab' failed : TypeError: Cannot read property "tags" from undefined (com.example.lab/getAssginedComputeTag#10)

book

Article ID: 393665

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

The deployment form shows the following error: Action execution not allowed.; Some data cannot be retrieved. If the problem persists, contact your system administrator. Failed request: com.example.lab/getFilteredTemplates: [29][property.value] [com.example.labops/setDeploymentProperties) Cannot execute external actions due to validation errors [Requested parameter with name: 'OS' should have value:Requested parameter with name: 'imageType should have value.]; [30][image.valueList][com.example.Jabops/getFilteredTemplates] The request did not return a response

The deployment form fails to proceed due to an error in a custom action script. Specifically, the script attempts to load cloud resources associated with the selected project but encounters an error during this process.

Environment

Aria Automation 8.x

Cause

The selected project may not have any cloud resources assigned.

As a result, the API call to retrieve cloud resources returned a null response.

Due to insufficient exception handling and lack of data validation in the custom action script, the script attempted to access the tags property on an undefined object, leading to the observed error.

Resolution

  • Verify the compute resources configured in the affected project.
    • Ensure that the project in Aria Automation has the appropriate cloud resources assigned.

  • If compute resources are missing, add the required cloud resources to the project to enable successful deployment.

Additional Information

  • Update the custom action script (getAssginedComputeTag) to include proper validation checks for scenarios where cloud resources may not be returned:

    • For example, the script should confirm that the response object is defined and contains the expected data before attempting to access its properties.

  • Optionally, improve the user experience by implementing UI validation or meaningful error messages to notify users when a project lacks the necessary cloud resources.