Is there a way to save the list as template that exceeds 500MB size in SharePoint 2010?
1 Answer
You cant increase more than 500MB as there is limitation of MaxTemplateDocumentSize "A 32-bit integer between 0 and 500 MB."
Below script increase it to 500 MB.
Add-PSSnapin Microsoft.SharePoint.Powershell -ErrorAction SilentlyContinue
#For MOSS 2007, Uncomment below two lines
#[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint")
#[void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration")
$webservice = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
#Get the current Maximum Size
$webservice.MaxTemplateDocumentSize
#Set New Limit and update
$webservice.MaxTemplateDocumentSize = 1048576000 #1000 MB
$webservice.Update()
Now only option is use the Export-SPweb and Import-SPweb Commands to achieve it.
-
Thank you, Waqas for quick reply. I will try this script and let you know.– AksDec 19, 2016 at 5:43
-
It does not work. It looks like SharePoint doesn't let you go beyond 500MB. This is the error message that I get "The specified value for maximum template document size is not valid. Specify a positive number less than 524288000."– AksDec 19, 2016 at 5:56
-
You are correct, A 32-bit integer between 0 and 500 MB. this is limitation of the site.– Waqas Sarwar MVP ♦Dec 19, 2016 at 6:00
-
-
only workaround in this case is use export and imprt=spweb– Waqas Sarwar MVP ♦Dec 19, 2016 at 6:02