Compatibility range mismatch

When I tried to run the following PowerShell:

Add-PSSnapin “Microsoft.SharePoint.PowerShell”

$site = Get-SPSite $spsiteUrl

$site.AllWebs

I got the following error:

There is a compatibility range mismatch between the Web server and database “WSS_Content”, and connections to the data have been blocked to due to this incompatibility. This can happen when a content database has not been upgraded to be within the compatibility range of the Web server, or if the database has been upgraded to a higher level than the web server. The Web server and the database must be upgraded to the same version and build level to return to compatibility range.

Shell admin access

I gave my user account Shell Admin access and then I could access the webs within a site.

All I had to do was give my user account SP_Data_Access permissions on the content database mentioned. I already worried that I hadn’t run an update properly.

Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications Microsoft MVP working as a Principal Architect at HybrIT Services Ltd. You can contact me using contact@sharepains.com

One thought on “There is a compatibility range mismatch between the web server and database”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains by Microsoft MVP Pieter Veenstra

Subscribe now to keep reading and get access to the full archive.

Continue Reading

%d bloggers like this: