Error while Saving list as list template

If we try to save a large list as a list template, we may see the following error due to the list being too large:

"The list is too large to save as a template. The size of a template cannot exceed 10485760 bytes."

We can increase the maximum size of a list / site template by running the following command
stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 50000000

Some imp points about this command:

  • The property value parameter is in bytes, so the example above will increase the maximum size to approx 50MB.
  • There is a hard limit of 500MB so the value must be less than 524288000 or you will get an error when saving the list as a template.
  • The above increases the maximum size of both site and list templates

Comments

Popular posts from this blog

Activating a SharePoint Feature on Multiple Sites or Site Collections using PowerShell

Managed Path with WildCard and Explicit Inclusion

List All SharePoint 2010 PowerShell Commands