Server build catalog requests fail during provisioning.
The compute.allocation.pre extensibility task fails.
You see the following error message in the deployment logs or vRealize Orchestrator:
[An exception occured: TypeError: Cannot call method "indexOf" of undefined (Dynamic Script Module name : getMachinesByRegEx#30) Running workflow: Generate Custom Hostname]
VMware Aria Automation (formerly vRealize Automation)
VMware Aria Orchestrator (formerly vRealize Orchestrator)
This issue is caused by invalid or expired credentials in the Active Directory integration. The custom naming script (Generate Custom Hostname) attempts to query Active Directory to validate machine names. When authentication fails, the query returns an undefined value instead of a list of machines, causing the script to fail with a TypeError when it attempts to process the results.
To resolve this issue, you must update the Active Directory integration credentials.
1. Log in to the interface where your Active Directory integration is configured (e.g., VMware Aria Automation Integrations or the vRealize Orchestrator AD Plugin configuration).
2. Select the relevant Active Directory integration.
3. Update the password for the service account used for the integration.
4. Click Validate (or Test Connection) to ensure the credentials are correct and connectivity is restored.
5. Save the configuration.
6. Retry the deployment.