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;
getImages
' action as shown below: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.
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.
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.