Showing posts with label moss list template size. Show all posts
Showing posts with label moss list template size. Show all posts

Thursday, March 12, 2009

How to increase Site or List Template Size

This blog solves the follwoing errors
1. "The list is too large to save as a template. The size of a template cannot exceed 10485760 bytes"
2. "Failure decompressing data from a cabinet file"

For the first error,
To increase the Site or List template size, use the following STSADM command
stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 83886080
80MB = 80*1024*1024 bytes = 83886080
The maximum size that can be set is 500MB

For the second error,
use the -nofilecompression attribute of export and import of STSADM.

Export Using
stsadm.exe -o export -url http://replaceThisWithYourSiteUrl -includeusersecurity -nofilecompression -filename C:\backup

Import Using
stsadm.exe -o import -url http://replaceThisWithYourSiteUrl -includeusersecurity -nofilecompression -filename C:\backup