Search This Blog

Thursday, August 14, 2014

Error 2606 :- Unable to perform the job because one or more of the selected objects are locked by another job

 

Scenario :-

Encounter error message 2606:- Unable to perform the job because one or more of the selected objects are locked by another job

Product :-

System Center Virtual Machine Manager 2012 / 2012 SP1 / 2012 R2

Resolution:-

To find which job which is causing other job to failed, you need to use SQL query

SQL Query:-

Execute “SELECT * FROM [VirtualManagerDB].[dbo].[tbl_VMM_Lock] where TaskID='Task_GUID'” command.

Posted in KB http://support.microsoft.com/kb/2795040/en-gb

Powershell

1. Open Powershell console from VMM Administrator Console

image

Find running job:-

$Job = Get-SCJob | where { $_.Status -eq "Running" }

Kill Job





$Job | Stop-SCJob

Note:-

The Stop-SCJob cmdlet stops one or more System Center Virtual Machine Manager (VMM) jobs that are running, and returns the object for each job in a stopped state. If the VMM job is not currently running, this cmdlet has no effect.
You can find some other useful cmdlet from Technet Library:-
Cmdlet Reference for Virtual Machine Manager in System Center 2012 R2