Job fails with error "The operation is not allowed in the current state."

KB ID: 1296
Product: Veeam Backup & Replication
Published: 2011-10-13
Last Modified: 2025-01-31
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Challenge

A task fails for a vSphere Virtual Machine that is being processed by Veeam Backup & Replication with the error:

Error: The operation is not allowed in the current state.
Veeam Backup & Replication gui error
A related error can be seen in the vSphere Client for the VM:
vmware erorr
This error may occur during any job in which Veeam Backup & Replication sends a VMware API call to the vSphere environment to create a snapshot for a Virtual Machine.

Cause

The error message "The operation is not allowed in the current state." is being reported to Veeam Backup & Replication by the vSphere Environment when Veeam Backup & Replication sends the request that a snapshot be created.

Solution

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:

  • VM is stuck in shutting down state.
  • VM is in the middle of being Storage vMotioned
  • VM has a A PCI device is attached.

 

Related VMware KB article: https://knowledge.broadcom.com/external/article?legacyId=1027707

    More Information

    If this error is occurring with a new replication job, please review: https://www.veeam.com/kb3000
    This issue will appear in the job's Email Report as:
    error as shown in email report

    This error can be found in the log file: %programdata%\Veeam\Backup\<jobname>\Task.<vmname>.<moref>.log

    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
    

    If this KB article did not resolve your issue or you need further assistance with Veeam software, please create a Veeam Support Case.

    To submit feedback regarding this article, please click this link: Send Article Feedback
    To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

    Spelling error in text

    Thank you!

    Thank you!

    Your feedback has been received and will be reviewed.

    Oops! Something went wrong.

    Please, try again later.

    You have selected too large block!

    Please try select less.

    KB Feedback/Suggestion

    This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

    By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
    Verify your email to continue your product download
    We've sent a verification code to:
    • Incorrect verification code. Please try again.
    An email with a verification code was just sent to
    Didn't receive the code? Click to resend in sec
    Didn't receive the code? Click to resend
    Thank you!

    Thank you!

    Your feedback has been received and will be reviewed.

    error icon

    Oops! Something went wrong.

    Please, try again later.