A task fails for a vSphere Virtual Machine that is being processed by Veeam Backup & Replication. This task could be any interaction in which Veeam Backup & Replication sends a VMware API call to the vSphere environment to create a snapshot for a Virtual Machine.
In the GUI this will appear as:
Error: The operation is not allowed in the current state.</pre>
Processing <vmname> Error: The operation is not allowed in the current state.
This error will show up in the html\email report as such:
This presents in the Veeam Backup & Replication Task.<vmname>.<moref>.log as follows:
Error Failed to create VM snapshot (Veeam.Backup.Common.CRegeneratedTraceException) Error CreateSnapshot failed, vmRef vm-xxx, timeout 1800000, snName VEEAM BACKUP TEMPORARY SNAPSHOT, snDescription Please do not delete this snapshot. It is being used by Veeam Backup., memory False, quiesce False (System.Exception) Error The operation is not allowed in the current state. (Veeam.Backup.ViSoap.ViServiceFaultException) Error VimApi.InvalidState
This error also appears within the Tasks list for the specific VM:
As this issue has to do with the inability to create a snapshot on the virtual machine within the vSphere Environment, the resolution will be to determine what is preventing a snapshot from being created. Once a snapshot can be manually created on the VM (remember to remove it). The Veeam Backup & Replication job will work without issue.
Observed possible causes:
The following VMware KB articles have been found to be related to this error
If this error is occuring with a new replication job, please refreence: https://www.veeam.com/kb3000