When attempting to migrate a virtual machine in the vSphere Client, the migration wizard fails during the datastore selection or storage policy phase. The UI throws the following raw JavaScript error message:
TypeError: Cannot read properties of null (reading 'noPermission')
VMware vCenter Server 8.0
VMware ESXi 8.0
This issue is triggered when the user account executing the migration lacks the required vCenter privileges to perform a vMotion or evaluate the target datastore/storage policy. Rather than gracefully warning the user that they lack permissions, a bug in the vSphere Client UI fails to parse the permission check, resulting in an unhandled JavaScript TypeError.
To permanently resolve this issue, you must grant the appropriate migration and datastore privileges to the user's vCenter role.
Workaround:
If the migration is urgent, it can be completed immediately by logging into the vSphere Client with a Global Administrator account (e.g., [email protected]). Note that this should only be used temporarily while the user's role-based access control (RBAC) permissions are corrected.