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

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> 
  • 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 at 15:06
  • thank you, but what is .cmp file? I got .stp file of list – Vaso Miruashvili Jan 15 at 7:25
  • this is the same like .bak, its the file which is used for backing and restoring with SharePoint – Zdeněk Vinduška Jan 15 at 7:32
  • So I only need Import-SPweb for my case, right? – Vaso Miruashvili Jan 15 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 – Zdeněk Vinduška Jan 15 at 13:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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