0

I have SharePoint 2013 list with 13897 items in it, I saved it as a template with include contents.

enter image description here

Now I am trying to create a new list but it doesn't load all items.

enter image description here

and if I open this newly created list, there is an error something like this:

enter image description here

1 Answer 1

2

Because there are lots of files and probably the template file is really large, the creation from this template probably timed out and won't be created properly.

I recommend to use Export-SPWeb and ImportSPWeb, where you can simply export and import whole library

https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/export-spweb?view=sharepoint-ps https://docs.microsoft.com/en-us/powershell/module/sharepoint-server/import-spweb?view=sharepoint-ps

or http://prabathf.blogspot.com/2012/02/export-and-import-sharepoint-list.html

Export-SPWeb -Identity <SiteURL> -Path <FileName.cmp> -ItemUrl <URLList> -IncludeUserSecurity -IncludeVersions

Import-SPweb -Identity <SiteUrl> -Path <FileName.cmp> 
8
  • Agreed. There are most likely too many items for the template to finish. Powershell is oging to be your best bet if you need all of the content as well
    – lazoDev
    Jan 14, 2019 at 15:06
  • thank you, but what is .cmp file? I got .stp file of list Jan 15, 2019 at 7:25
  • this is the same like .bak, its the file which is used for backing and restoring with SharePoint Jan 15, 2019 at 7:32
  • So I only need Import-SPweb for my case, right? Jan 15, 2019 at 12:53
  • No you need both, Export this List with first where ItemUrl is /lists/ListName and after this Import this web to web you want it Jan 15, 2019 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.