Sunday, February 2, 2014

Increase Maximum size of Site, List Templates in SharePoint

In SharePoint 2007, You can't save a list or site template (.stp ) file which is bigger than 10MB. MOSS 2007 gives an error message: "The list is too large to save as a template. The size of a template cannot exceed 10485760 bytes." When you try to save a list or site which by including its content which is more than 10 MB.

Fix is simple:
Just execute this stsadm command line from your SharePoint WFE server. Say, you want to allow site or list template up to 250 MB:

stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 262144000  (250 MB)

The above STSADM sets the property at farm level. Here the command line takes property value in bytes. Technically SharePoint compresses all content and saves with .stp extension, which can be simply renamed to .cab and extracted.

SharePoint 2010 list template size limit:
In SharePoint 2010 and in SharePoint 2013, list template size limit has been raised to 50MB by default.

sharepoint list template maximum size
If you have a document library or list or site with content more than 50MB and when you try to save list as a template including content, by going to list settings >>"Save document library as template", you get this error message: "The list is too large to save as a template. The size of a template cannot exceed 524288000 bytes."
sharepoint 2010 list template maximum size
SharePoint 2013 version's Error message:
sharepoint 2013 site template maximum size

Same old stsadm can help to increase the template size limit in both SharePoint 2010 and 2013.

Using PowerShell to Get/Set SharePoint list template maximum size:
Its also possible to use PowerShell. Here is an example of setting SharePoint 2010 list / site template maximum size:
Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue

#For MOSS 2007, Uncomment below two lines

$webservice = [Microsoft.SharePoint.Administration.SPWebService]::ContentService

#Get the current Maximum Size

#Set New Limit and update
$webservice.MaxTemplateDocumentSize = 524288000 #500 MB
Although the maximum template size in SharePoint 2010 or in SharePoint 2013 can be set to: 524288000 (500 MB), Always try to keep it in lower than: 50 MB

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.

Check out these SharePoint products:

No comments :

Post a Comment

Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...