Sunday, October 9, 2011

Restoring a site collection and getting a "different version of Microsoft SharePoint Foundation" error

Scenario:
Restoring a site collection backup between 2 development environments. I'm using the following Powershell command:
Restore-SPSite -Identity http://spdev/sites/ctmh -Path c:\fpbackups\ctmh.bak
Where spdev is the name of my SharePoint Dev server.
ctmh.bak is the backup file.

Symptom:
Restore-SPSite : Your backup is from a different version of Microsoft SharePoint Foundation and cannot be restored to a server running the current version. The backup file should be restored to a server with version '4.1.9.0' or later.

Steps to get it working:
It seemed pretty straight forward although the version '4.1.9.0' seemed a little strange.
First step is to compare both environment's SharePoint version:
  1. SharePoint 2010 Central Administration
  2. Upgrade and Migration
  3. Check product and patch installation status
I looked up the version number on my favourite search provider and got the appropriate updates. Pretty straight forward really.

I forgot to run the "SharePoint 2010 Products Configuration Wizard" initially and the restore didn't work. So if the SharePoint versions are the same between environments it might be worth while running the wizard to check that the patches have been applied.

1 comment: