question

sajithgh avatar image
0 Votes"
sajithgh asked sajithgh commented

Database is up to date, but some sites are not completely upgraded

My Site is customized a lot and the my site database shows the below error.

Database is up to date, but some sites are not completely upgraded

70272-69591-mysite.png


office-sharepoint-server-administration
69591-mysite.png (169.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LiZhang-MSFT avatar image
0 Votes"
LiZhang-MSFT answered sajithgh commented

Hi @sajithgh,

Please try following script to fix database upgrade status:

Run SharePoint Management Shell as administrator, type following PowerShell:

 Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
    
 #Set this variable value accordingly
 $DatabaseName = "content_database_name_here"
    
 #Get the Database ID
 $DatabaseID = (Get-SPContentDatabase -identity $DatabaseName).ID
    
 #Update Content Database
 Upgrade-SPContentDatabase -id $DatabaseID -Confirm:$false

Reference:

https://www.sharepointdiary.com/2014/05/database-is-up-to-date-but-some-sites-are-not-completely-upgraded.html

Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.


If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Before performing the step, we have to take the backup of the database right and also is there anything else also ?
Is there any impact after running the power shell command ?

0 Votes 0 ·

Hi @sajithgh,

We should backup the database and then use PowerShell.

Upgrade-SPContentDatabase resumes a failed database upgrade or begins a build-to-build database upgrade. There is no impact after running the PowerShell command.

We could also type stsadm.exe -o localupgradestatus > upgradestatus.txt to identify what site collection was not upgraded.

Reference:

https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/Upgrade-SPContentDatabase?view=sharepoint-ps

https://social.technet.microsoft.com/wiki/contents/articles/25750.sharepoint-troubleshooting-database-is-up-to-date-but-some-sites-are-not-completely-upgraded.aspx

0 Votes 0 ·

When I tried to run the Update Content Database, it says does not need to be upgraded.

72039-1.png


72088-2.png




Also in the log says

Looking for site definitions referenced in content database WSS_Content_MySite that are not currently installed


0 Votes 0 ·
1.png (49.9 KiB)
2.png (57.6 KiB)

Hi @sajithgh,

You could try to run Config Wizard.

For more information, please refer to:

https://sharepoint.stackexchange.com/questions/246869/unable-to-upgrade-sharepoint-admin-content-database

Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.

0 Votes 0 ·
Show more comments