Problem

We recently encountered the following error in our SharePoint 2010 environment while trying to remove an existing Web Application.

An object of the type Microsoft.SharePoint.Administration.SPIisWebsiteUnprovisioningJobDefinition named “Unprovisioning XXXXX” already exists under the parent Microsoft.SharePoint.Administration.SPWebService named “”. Rename your object or delete the existing object.

 

SharePoint error screenshot

 

Solution

When you remove an existing Web Application a job is created. In this case, a duplicate failed job already exists so we need to remove it first.

  1. Open Central Administration
  2. Navigate to MONITORING > REVIEW JOB DEFINITIONS
  3. Find the duplicate job and remove it. The name of the job is mentioned in the error message.
Shane Bartholomeusz