Search This Blog

Thursday, March 14, 2019

Solution- unable to Remove corrupted Web Application -SharePoint 2013/2016

An object in the SharePoint administrative framework, "SPWebApplication Name=SharePoint - 1234", could not be deleted because other objects depend on it.  Update all of these dependants to point to null or different objects and retry this operation.  The dependant objects are as follows: 

In SQL Management Studio:

step 1: select Config database
step 2: execute the  qry SELECT * FROM Objects (NoLock) where Name like '%%'
step 3: copy your sharepoint web application id :

Note the "Id" GUID.

SELECT * FROM SiteMap (nolock) where ApplicationId = '<id>'
eg :SELECT * FROM SiteMap (nolock) where ApplicationId = 'F1A049EE-D5BA-442C-A48E-0FE30D31CB40'

Note the 'DatabaseId' GUID.

step 4: Open cmd in admin mode
step 5: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\16\BIN

Next step is to be done on a SharePoint server in the farm:

STSADM -O DeleteConfigurationObject -id {DatabaseId GUID from step above}

Repeat this for each row returned in the first step and then you will be able to successfully delete the web application from the farm.
Now try to delete web application 

Goto powershell and excute :


Remove-SPWebApplication -Identity "http://sssf:1234" -Confirm

No comments:

Post a Comment