Move top level site to sub site

%3CLINGO-SUB%20id%3D%22lingo-sub-343540%22%20slang%3D%22en-US%22%3EMove%20top%20level%20site%20to%20sub%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-343540%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20just%20finished%20the%20upgrade%20of%20our%20Sharepoint%20Single%20Farm%20from%20Sharepoint%202010%20to%20Sharepoint%20Server%202019.%20I%20now%20need%20to%20do%20some%20reorganization%20in%20our%20Site%20Collection.%3C%2FP%3E%3CP%3EIdea%20is%20to%20move%20all%20our%20top%20level%20sites%20to%20sub%20site%20of%20the%20root%20site%20collection.%3C%2FP%3E%3CP%3ETo%20do%20this%2C%20I%20started%20to%20export%20one%20of%20our%20top%20level%20site%20with%20following%20command%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CDIV%3E%3CEM%3EExport-SPWeb%20-Identity%20%22http%3A%2F%2Fpappel-sp2019%2Fsites%2FTopside%20CM%20Server%22%20-Path%20E%3A%5CTopsideSite.bak%20-NoFileCompression%20-includeusersecurity%20-IncludeVersions%20All%3C%2FEM%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20created%20a%20blank%20sub%20site%20in%20our%20root%20top%20level%20site%20(%3CEM%3Ehttp%3A%2F%2Fpappel-sp2019%2F%3C%2FEM%3E)%20whith%20command%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3ENew-SPWeb%20-Url%20'http%3A%2F%2Fpappel-sp2019%2FTopsideCMServer'%20-UniquePermissions%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20I%20tried%20to%20import%20the%20old%20top%20level%20site%20as%20a%20sub%20site%20with%20this%20command%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CEM%3EImport-SPWeb%20-Identity%20%22http%3A%2F%2Fpappel-sp2019%2FTopsideCMServer%22%20-Path%20E%3A%5CTopsideSite.bak%20-includeusersecurity%20-NoFileCompression%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20I%20got%20a%20fatal%20error%20%22Updates%20to%20system%20roles%20is%20not%20allowed.%22%20at%20step%20%22Importing%20Role%20Limited%20Access%22%3A%3C%2FP%3E%3CPRE%3E%5B15.02.2019%2015%3A59%3A24%5D%20%5BProgress%5D%20Importing%20Role%20Limited%20Access.%3CBR%20%2F%3E%5B15.02.2019%2015%3A59%3A24%5D%20%5BFatalError%5D%20%5B%5D%20%5BSystem.InvalidOperationException%5D%20%5BUpdates%20to%20system%20roles%20is%20not%20allowed.%5D%20%3CBR%20%2F%3E%5B15.02.2019%2015%3A59%3A24%5D%20%5BDebug%5D%20at%20Microsoft.SharePoint.Deployment.RolesImport.ProcessSimpleElement(ImportStreamingContext%20context%2C%20XmlReader%20xr%2C%20SqlSession%20session%2C%20SqlCommand%20comm%2C%20Int32%20iRow)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Deployment.SqlBatchImport.Run()%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Deployment.SecurityObjectSerializer.SetObjectData(Object%20obj%2C%20SerializationInfo%20info%2C%20StreamingContext%20context%2C%20ISurrogateSelector%20selector)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object%20obj%2C%20SerializationInfo%20objectData%2C%20ISerializationSurrogate%20surrogate%2C%20ISurrogateSelector%20selector)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Deployment.XmlFormatter.ParseObjectDirect(Object%20objParent%2C%20Type%20objectType)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type%20objectType%2C%20Boolean%20isChildObject%2C%20DeploymentObject%20envelope)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream%20serializationStream)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream%20serializationStream)%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()%3CBR%20%2F%3Eat%20Microsoft.SharePoint.Deployment.SPImport.Run()%3CBR%20%2F%3E%5B15.02.2019%2015%3A59%3A24%5D%20%5BProgress%5D%20Import%20did%20not%20complete.%3C%2FPRE%3E%3CP%3EI%20then%20tried%20to%20import%20without%20the%20argument%20%22%3CEM%3E-includeusersecurity%3C%2FEM%3E%22%20which%20was%20successfull.%20However%20I%20then%20lose%20the%20user%20information%20of%20all%20my%20documents%20history.%3C%2FP%3E%3CP%3EI%20then%20tried%20to%20add%20exactly%20the%20same%20Site%20Permissions%20on%20my%20sub%20site%20as%20on%20the%20top%20level%20site%20prior%20to%20import.%20Didn't%20help%3B%20I%20get%20the%20same%20error.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20we%20definitely%20need%20user%20information%20in%20documents%20history%2C%20could%20you%20please%20help%20me%20on%20this%20topic%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-343540%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Server%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1577771%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20top%20level%20site%20to%20sub%20site%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1577771%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F284985%22%20target%3D%22_blank%22%3E%40NicoF%3C%2FA%3E%26nbsp%3BDid%20you%20manage%20to%20resolve%20this%20issue%3F%3C%2FP%3E%3CP%3EI%20am%20having%20same%20problem%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

Hello!

 

I just finished the upgrade of our Sharepoint Single Farm from Sharepoint 2010 to Sharepoint Server 2019. I now need to do some reorganization in our Site Collection.

Idea is to move all our top level sites to sub site of the root site collection.

To do this, I started to export one of our top level site with following command:

 

Export-SPWeb -Identity "http://pappel-sp2019/sites/Topside CM Server" -Path E:\TopsideSite.bak -NoFileCompression -includeusersecurity -IncludeVersions All

 

I created a blank sub site in our root top level site (http://pappel-sp2019/) whith command:

 

New-SPWeb -Url 'http://pappel-sp2019/TopsideCMServer' -UniquePermissions

 

Then I tried to import the old top level site as a sub site with this command:

 

Import-SPWeb -Identity "http://pappel-sp2019/TopsideCMServer" -Path E:\TopsideSite.bak -includeusersecurity -NoFileCompression

 

But I got a fatal error "Updates to system roles is not allowed." at step "Importing Role Limited Access":

[15.02.2019 15:59:24] [Progress] Importing Role Limited Access.
[15.02.2019 15:59:24] [FatalError] [] [System.InvalidOperationException] [Updates to system roles is not allowed.]
[15.02.2019 15:59:24] [Debug] at Microsoft.SharePoint.Deployment.RolesImport.ProcessSimpleElement(ImportStreamingContext context, XmlReader xr, SqlSession session, SqlCommand comm, Int32 iRow)
at Microsoft.SharePoint.Deployment.SqlBatchImport.Run()
at Microsoft.SharePoint.Deployment.SecurityObjectSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object obj, SerializationInfo objectData, ISerializationSurrogate surrogate, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObjectDirect(Object objParent, Type objectType)
at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type objectType, Boolean isChildObject, DeploymentObject envelope)
at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializationStream)
at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serializationStream)
at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()
at Microsoft.SharePoint.Deployment.SPImport.Run()
[15.02.2019 15:59:24] [Progress] Import did not complete.

I then tried to import without the argument "-includeusersecurity" which was successfull. However I then lose the user information of all my documents history.

I then tried to add exactly the same Site Permissions on my sub site as on the top level site prior to import. Didn't help; I get the same error.

 

As we definitely need user information in documents history, could you please help me on this topic?

 

Thanks!

1 Reply
Highlighted

@NicoF Did you manage to resolve this issue?

I am having same problem