Monday, May 21, 2012

The solution cannot be removed when a job is scheduled or running

We discuss about the error "The solution cannot be removed when a job is scheduled or running". Also you can check some forum topics here and also you can see some errors that has been solved.

Usually If you are trying to Remove a solution (which is nothing but a .wsp file) by using PowerShell command like Remove-SPSolution –Identity mywspfilename.wsp. But before this we need to execute the UnInstall command which is like below:

Uninstall-SPSolution –Identity mywspfilename.wsp –WebApplication https://WebApplication URL

The solution is very simple. If you run the Uninstall command then in the background its doing something. So the approach is give sometime between the UnInstall command and the Remove command.

Else sometimes also you will get the errors like: "Cannot uninstall the languagepack 0 because it is not deployed".

Also sometimes you will get the error: "The solution wspfilename.wsp has been deployed in the farm. Please retract the deployment before removing the solution. You can also use the -override parameter to forceible remove the solution, but you will not be able to  retract the solution deployment "

No comments:

Post a Comment