The upgraded database schema doesn’t match the TargetSchema – SharePoint Products Configuration Wizard

Błąd

Failed to upgrade SharePoint Products.
This is a critical task. You have to fix the failures before you can continue. Follow this link for more information about how to troubleshoot upgrade failures:


An exception of type Microsoft.SharePoint.PostSetupConfiguration.PostSetupConfigurationTaskException was thrown.  Additional exception information: 
Upgrade [SPContentDatabase Name=WSS_Content] failed.	(EventID:an59t)

Exception: The upgraded database schema doesn't match the TargetSchema	(EventID:an59t)

	(EventID:an59t)

Upgrade Timer job is exiting due to exception: Microsoft.SharePoint.Upgrade.SPUpgradeException: The upgraded database schema doesn't match the TargetSchema

Rozwiązanie

Aktualizacja wszystkich baz zawartości przed uruchomieniem wizarda:

Get-SPContentDatabase | ?{$_.NeedsUpgrade -eq $true} | Upgrade-SPContentDatabase -Confirm:$false