After upgrading to a new Microsoft SharePoint Cumulative Update, database upgrades may fail if one or more features have been uninstalled. This may cause the PSCONFIG portion of the upgrade process to fail and report errors such as the following:
Found a missing feature Id = [87e50a98-6b4c-4754-9658-eede94433rg4] ec567873-489c-4215-b017-c75de0b875tc
The feature with Id 87e50a98-6b4c-4754-9658-eede94433rg4 is referenced in the database WSS_Content_PortalSites01, but is not installed on the current farm. The missing feature may cause upgrade to fail.
To resolve this error and complete the upgrade successfully:
- Detach all content databases from the SharePoint farm.
- Re-run psconfig to complete the upgrade process.
- Re-attach the content databases.
- Upgrade the content databases individually.
To detach a content database from a SharePoint farm, use the Dismount-SPContentDatabase PowerShell command in the SharePoint Command Shell. For example:
Dismount-SPContentDatabase -Identity WSS_Content_PortalSites01
To re-detach a content database from a SharePoint farm, use the Mount-SPContentDatabase PowerShell command in the SharePoint Command Shell. For example:
Mount-SPContentDatabase -Identity WSS_Content_PortalSites01
To upgrade all content databases in a SharePoint farm, use the following PowerShell command in the SharePoint Command Shell:
Get-SPContentDatabase | ?{$_.NeedsUpgrade –eq $true} | Upgrade-SPContentDatabase -Confirm:$false
(See: https://guruandi.wordpress.com/2012/05/04/upgrading-sharepoint-content-databases-using-powershell/)
Once you have resolved the immediate issue and completed the SharePoint Cumulative update, we recommend you remove all features that are no longer available. To remove features that are no longer installed, use the following PowerShell command in the SharePoint Command Shell:
Get-SPFeature | ? { !$_.Scope } | % { $_.Delete() }
(See: https://sharepoint.stackexchange.com/questions/16525/how-to-remove-orphaned-features)
NOTE: Detaching and reattaching the content databases as part of the SharePoint Cumulative upgrade process significantly reduces the time it takes to upgrade and significantly improves the likelihood of a successful upgrade experience. We strongly recommend making this approach part of your regular patching process. Please contact support@bamboosolutions.com if you would like to discuss improving your SharePoint reliability and reduce down-time.
Comments
0 comments
Please sign in to leave a comment.