What is the Size Limit for Saving a Document Library as a Template (SharePoint 2010) RRS feed

  • Question

  • Hi,

       We have a Document Library with Office docs and PDF's that the size will exceed over 600MB, closer to 700MB.  When I try to save the library with content I get the following message:

    "The list is too large to save as a template.  The size of a template cannot exceed 52428800 bytes"

    I know we can increase the size using PowerShell Scripts below, my question is what is the size limit?  I am hearing 500MB is the max but also saw a blurb of 150MB is the max. 


       4: [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration")
       6: write-host "Getting Current Template Document Size"
       7: $contentService = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
       8: write-host "Current Size:" $contentService.MaxTemplateDocumentSize
       9: write-host "Resetting to Size:" 
      10: $contentService.MaxTemplateDocumentSize = $TemplateDocSize
      11: $contentService.Update()
      12: write-host "New Size: " $contentService.MaxTemplateDocumentSize 
      13: write-host "Powershell Script Complete"

    Is there an official word on this?  Any gothca's?





    Thursday, January 19, 2012 11:09 PM


All replies

  • I dont see any official word on this either, but I will question why you want to have a document template of 600-700MB in size.
    - Sid
    Thursday, January 19, 2012 11:35 PM
  • I believe the limit is 2GB, same as the maximum file size limit.
    Friday, January 20, 2012 12:25 AM
  • Hey Sid,

      There are only 313 documents in total spread out in folders and I was surprised on the size myself.  I am new to SharePoint and was told the 500mb limit is not an issue with 2010 but could be.  The reason to export the list is to move from one environment to another with content and columns intact.

    Friday, January 20, 2012 1:11 AM
  • If you're doing that, you have a couple options that are generally better:

    If it is the only site collection in a database, back up the database and move the database to your test environment.

    If you just want the site, use Backup-SPSite (
    • Marked as answer by Smitty0623 Tuesday, January 24, 2012 7:48 PM
    Friday, January 20, 2012 1:52 AM
  • Completely agree with Trevor here. That is what I was trying to get at as well. Use list/library templates only of you want other list/libraries to be based on that template in the same site collection or web application.

    Also, I want to bring your attention to another command in powershell: Export-SPWeb.

    This allows you to export list, library or site with/without its content. I think it will be most suitable for your situation.

     You can then use the Import-SPWeb command in the other environment.

    - Sid
    • Edited by Sid Kothari Friday, January 20, 2012 4:36 AM
    Friday, January 20, 2012 4:36 AM
  • At 500MB, if you do use Export-SPWeb, make sure to use the NoFileCompression flag.
    Friday, January 20, 2012 5:10 AM
  • The maximum size for this option is 500 MB. This is documented here:

    Property Value

    Type: System.Int32
    A 32-bit integer between 0 and 500 MB.

    Stefan Goßner
    Senior Escalation Engineer - Microsoft CSS
    This post is provided "AS IS" with no warrenties and confers no rights.
    Friday, January 20, 2012 3:19 PM