“The list is too large to save as a template.”

By PlateSpinner, November 20, 2009 1:51 pm

If you’re working with a SharePoint 2007 environment with multiple site collections but do not have access to cool tools to manage moving content around, then you may have had this problem: 

Someone needed to move a Document Library from one site collection to another one.  The only viable way to do this is to go to the library settings for that doc library and export it as a list template with content.  When I did that I received the in-SharePoint error saying:

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

This poses a problem because the only other (non third-party tool) way to do this would involve exporting a copy of the original site and then importing it into the destination site collection so that I would be able to use Site Manager to move the list.

Well it turns out there is an undocumented property that can be modified to change this.  Run the following command to see what your farm is currently set to:

stsadm.exe –o getproperty -propertyname max-template-document-size

Chances are the reply will be “<Property Exist=No" />”, which means that you are using the default setting of 10 MB as your limit.  You can set the limit to something higher by using the “setproperty” switch.  For example:

stsadm -o setproperty -propertyname max-template-document-size –propertyvalue 500000000

would increase the limit to about 60 MB.

In my case this was really a one-time thing so, after I had created the copy of the document library, I set the size back to the original 10485760 byte value.

Leave a Reply

Panorama Theme by Themocracy