This article provides troubleshooting steps for the screenshot error message:
VM screenshot failed with error: Failed to create VM template createVM() returned: internal error: Could not define domain: AlreadyExists - The specified key, name, or identifier already exists.
This article is only applicable to devices using ESXi Virtualization to perform screenshot verification.
This error is caused by a domain created by a previous screenshot that was left in an unusable state. Because the domain is in an unusable state, the Datto appliance is prevented from automatically removing the leftover domain as it normally would. To fix the issue, you will need to manually remove the leftover domain from your hypervisor.
1. Log in to vSphere.
2. Look for a VM called "Unknown" on the hypervisor that the device uses for screenshots, as shown in Figure 1.
Figure 1: Unusable screenshot domain on a hypervisor
3. Right-click the domain, and select Remove from Inventory. This will de-register the VM, so that it will no longer conflict with future screenshots.
Figure 3: Remove from Inventory
Note: using the Delete from Disk option is preferable, because it removes all the data from the leftover VM. But if the storage location of some or all of the VM's data is inaccessible (such as an NFS share that no longer exists), this option may be unavailable, or selecting it might result in an error message. If this happens, use Remove from Inventory instead.
4. Re-run the screenshot to verify that the issue is resolved.