Issue


Using Import-SPWeb to import a version 12 (SharePoint 2007/WSS3) SPWeb into a Version 15 (SharePoint 2013) environment fails with the following error:

The version of the package 12.0.10.0 is different from thecurrent version this program supports, 15.0.0.0. At line:1 char:1 + Import-SPWeb -Identity  "http://SP2013"  -Path "C:\Restore\SiteNavigation\"  - ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:   SPCmdletImportWeb) [Import-SPWeb], SPException     + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWe   b VERBOSE: Leaving ProcessRecord Method of Import-SPWeb. VERBOSE: Leaving EndProcessing Method of Import-SPWeb. 

Workaround


To workaround this error, you can manually edit the SystemData.xml file, changing the Schema version from 12 to 15.

Example


Original File

<?xml version="1.0" encoding="utf-8"?>
<SystemData xmlns="urn:deployment-systemdata-schema">
    <SchemaVersion Version="12.0.10.0" Build="12.0.0.4518" DatabaseVersion="3119" SiteVersion="0" />
    <ManifestFiles>
        <ManifestFile Name="Manifest.xml" />
    </ManifestFiles>
    <SystemObjects>
        <SystemObject Id="2326768e-94b5-48c3-b878-4494c0b24c0d" Type="List" Url="/_catalogs/users" />
    </SystemObjects>
</SystemData>


Edited File

<?xml version="1.0" encoding="utf-8"?>
<SystemData xmlns="urn:deployment-systemdata-schema">
    <SchemaVersion Version="15.0.0.0" Build="15.0.0.0" DatabaseVersion="3119" SiteVersion="0" />
    <ManifestFiles>
        <ManifestFile Name="Manifest.xml" />
    </ManifestFiles>
    <SystemObjects>
        <SystemObject Id="2326768e-94b5-48c3-b878-4494c0b24c0d" Type="List" Url="/_catalogs/users" />
    </SystemObjects>
</SystemData>


Other Languages

This article is also available in the following languages: