Error "TypeError: Cannot call method 'toLowerCase' of undefined" in Aria Automation Custom Form
search cancel

Error "TypeError: Cannot call method 'toLowerCase' of undefined" in Aria Automation Custom Form

book

Article ID: 393857

calendar_today

Updated On: 04-24-2025

Products

VMware Aria Suite

Issue/Introduction

  • When deploying VMs using a custom form in Aria Automation, selecting an OS Type triggers the error "TypeError: Cannot call method 'toLowerCase' of undefined" related to the "getImages" vRO action.

  • The following error occurs after selecting an OS Type in the Custom Form during VM deployment:

    • Action 'getImages' in module '###.########.###.#####.#######.####.vro.actions.presentation' failed: TypeError: Cannot call method "toLowerCase" of undefined (Dynamic Script Module name: IaaSService#43); [35][osVersion.valueList [###.########.###.#####.#######.####.vro.actions.presentation/getImages] undefined;

  • The same error will be seen while running the 'getImages' action as shown below:

Environment

  • VMware Aria Automation 8.x

Cause

  • The "getImages" vRO action encounters an undefined value when processing Image Mappings that use template names directly, leading to a "TypeError: Cannot call method 'toLowerCase' of undefined" error. 

  • This indicates an inconsistency or corruption in the Image Mapping data for the vCenter using template names.

Resolution

The Workaround is a follows:

  • Update the Image Mapping for the affected vCenter to use the Content Library path.

  • Save the changes and sync images for the vCenter Cloud Account.

  • Revert the Image Mapping back to using the template name directly and sync images.

Additional Information

  • The error occurs when using a custom form and selecting an OS type.

  • The "getImages" vRO action fails specifically when processing Image Mappings referencing templates by name.

  • Using Content Library paths in Image Mappings does not trigger the error.

  • The solution effectively refreshes or corrects the inconsistent Image Mapping data, allowing the vRO action to function correctly.