Task fails with the error message, “Task failed Error: Object with reference '<moref>' was not found in hierarchy cache”
This issue can be confirmed by editing the job, navigating to "Virtual Machines" and clicking the [Recalculate] button. VM's whose RefID have changed will report as having a "0 B" size.
Note: Older version of Veeam Backup & Replication may report the error as "Task failed Error: Object <vmname> not found"
This error is caused by the VM’s unique inventory reference identification number (MOREF, or Managed Object Reference) changing within the virtual infrastructure, or the VM having been deleted. Veeam is still attempting to find the VM by its old reference ID number based on a “find vm by NAME where REFID = X” query.
Note: The most common events that cause a VM MOREF ID to change are:
- Reinstallation or creation of a new vCenter server where the old VC database is not reused.
- A VM is removed from inventory and then added back to inventory.
- In rare cases a host crash, which prompts the host to be removed and added back to the VC may cause the VMs on that host get new MOREF IDs.
- Rescan the vCenter Servers
- Navigate to [Backup Infrastructure]
- Expand [Managed Servers]>[VMware vSphere]
- Right-Click on [vCenter Servers] and select [Rescan]
- Re-add the VM to the Job
- Edit the Job
- Navigate to the Virtual Machines tab.
- Select the VM whose MoRef has changed.
- Click Remove
- Click Add...
- Click Refresh*
- Add the VM removed in step 4.
- Click [Finish] to save the Job settings.
*Veeam Backup & Replication caches infrastructure information to improve performance, the refresh function purges the cached data. The refresh function must be used when resolving this issue.
Resolution can be confirmed without running the job. Edit the job, navigating to "Virtual Machines" and click the [Recalculate] button. Note that the VM's whose MoRefs changed now report as having the correct size.
Please be aware that VM's are tracked by their unique MoRef ID. When the MoRef changes the VM is considered an entirely different VM. As such Veeam Backup & Replication will treat them accordingly and create a Full restore point for the "new" VM.