Increasing the maximum size of list templates
Saving a list as a template is an easy way of transferring data from one place to another in SharePoint. By default, however, the maximum size of list templates in WSS 3.0 and MOSS 2007 is 10MB.
If you try to save the list as a template that is larger than this you will get the following error:
The list is too large to save as a template. The size of a template cannot exceed 10485760 bytes.
To increase the maximum size, simply run the following stsadm command (from the C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN directory) replacing the propertyvalue to the new maximum size (in bytes):
stsadm -o setproperty -propertyname max-template-document-size -propertyvalue 50000000
Points to note:
- The propertyvalue 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.
Great post. Thank you very much!
Geoffrey
5 Mar 09 at 7:58 pm
Thank you! That did the trick.
Shani Bagley
23 Jan 09 at 5:05 pm
Thanks, very helpful. I ran it, worked immediately, no need for iisreset under normal circumstances I suppose.
Sean Wallbridge
22 Dec 08 at 12:24 am
Same thing as Craig… I successfully ran the command, reset iis but still having the same error message…
Ashraf
13 Sep 09 at 7:00 am
Hi, I have tried this and had a problem. Like Toby, the command completes successfully. However even with an iisreset, when I come to save the template I still get the 10MB limit error. Can anyone help with this as it's driving me crazy! lol
Thanks
Craig
26 Aug 09 at 11:20 am
For those like me who use WSS 2.0.
In my case I ran this command in C:\Program Files\Common Files\Microsoft Shared\web server extensions\60\BIN
Then restarted the IIS and then recycled the all the aplication pools.
Hope it helps
Hawkmoth
12 Aug 09 at 1:24 pm
Came across this problem trying to move a list containing a fair amount of content from our dev server to our production server.
Worked perfectly. Nice.
Dave Lee
22 Jul 09 at 9:33 am
Hi Can you please elaborate how the same can be achieved in WSS 2.0 and Sharepoint Portal Server 2003.
Ankit
18 Jun 09 at 9:53 am
Thanks, very helpful
Matej
16 Nov 08 at 3:28 pm
After i increase the size of templates list , i have another problem "Failure decompressing data from a cabinet file"
Nadeem
6 Oct 08 at 1:38 pm
Thanks,
After i increase the size of templates list , i have another problem "Failure decompressing data from a cabinet file"
Burim
6 Aug 08 at 12:26 pm
Does any one knows how to achieve the same in WSS 2.0
Satheesh
7 May 08 at 5:45 am
Excellent … exactly what I was looking for … thanks Ari !
Craig Porter
16 Apr 08 at 1:52 pm
I just ran the stsadm command successfully (set the limit to the max 500mb limit) and then tried saving a site as a template. I still recieve the 10485760 byte error even after restarting web services on the server 🙁 Any ideas on what I am doing wrong?
Toby
7 Feb 08 at 5:47 pm
Thanks for your Help !
CrazySP
25 Jan 08 at 2:58 pm
thanks very helpful
don stinnett
8 Oct 07 at 9:44 pm
sorry, for my lack of skill.
I consider that it can be the way to backup list or document library.
If I succeed to “save list as template” include content, how to use it to restore or export back to the list?
dani3lr
11 Dec 09 at 11:17 am
@dani3lr to create a list from a template navigate to the List Template Gallery (Site Actions > Site Settings > Galleries | List templates) and upload the template file. You should then see the list appear on the ‘Create’ page (Site Actions > View All Site Content > Create).
Ari Bakker
11 Dec 09 at 12:14 pm
Hi Bakker
Thanks for post
After i increase the size of templates list , i have another problem “Failure decompressing data from a cabinet file” DO you have any idea how to recover from this
arun
11 Mar 10 at 7:57 am
-propertyname max-template-document-size does not seem to exist for MOSS2010, any idea what it changed to? I see some possibly related, but nothing obvious…
Thx in advance.
J
4 Dec 10 at 3:00 am
@J you can use the following PowerShell to increase the size in SharePoint 2010:
[void][System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint”)
[void][System.Reflection.Assembly]::LoadWithPartialName(“Microsoft.SharePoint.Administration”)
$contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
write-host “MaxTemplateDocumentSize before: ” $contentService.MaxTemplateDocumentSize
$contentService.MaxTemplateDocumentSize = 52428800
$contentService.Update()
write-host “MaxTemplateDocumentSize after: ” $contentService.MaxTemplateDocumentSize
Ari Bakker
14 Dec 10 at 6:16 pm
Our main list called BP which is details around our pursuit budgets is accessible via standard SharePoint forms and custom developed list forms developed in SPD.
However we cannot backup the data using the standard save as a template, this give is the following error:
http://blogs.technet.com/b/sharepointcomic/archive/2008/11/18/failure-decompressing-data-from-a-cabinet-file.aspx
We also tried to backup by creating a standard view with all the table fields and tried to export to excel, but we get this error:
connecting to datasource then…
The other function we tried was to connect the SharePoint list BP to MS Access and open the table BP after import but that also errors with:
Matt Pinkston
22 Sep 11 at 12:26 am
Hi,
How can I increse web site template size limit from 50MB to 300 MB? in microsoft online
Thanks,
Andac
Andaç
4 Oct 12 at 1:53 pm
Thanks for post
but I dont have that folder after ..BIN\1003 what I can do.
If I use this full path in Command Prompt then ‘stsdm’ not working…help me what I can do
Sudarshan Rathod
1 Apr 16 at 1:14 pm