SharePoint 2013 – PowerShell – There is a compatibility range mismatch between the web server and database

My Problem

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.

your solution

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.

Advertisements

One thought on “SharePoint 2013 – PowerShell – There is a compatibility range mismatch between the web server and database

Please leave a comment or feedback

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

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