Thursday, April 28, 2016

The “Save site as template” action is not supported on this site

While you try to save the publishing site as a Template you will get this error. Because SharePoint doesn’t support saving publishing sites as a template.

the Save site as a template option is hidden from the publishing sites settings page we all used the following URL to go there directly:
/_layouts/savetmpl.aspx
Or

/_layouts/15/savetmpl.aspx


When you go on the savetmpl.aspx page you will get the error "The “Save site as template” action is not supported on this site"

To Solve this issue you need to update a Single Property Page Value in your SPWeb object i.e SaveSiteAsTemplateEnabled.

Here is powershell Script for the same

# Get a reference to the target site
$web = Get-SPWeb <Your Site Url>
# Update the property bage value and set it  to the string value “true”
$web.AllProperties[“SaveSiteAsTemplateEnabled”] = “true”
# Commit the property change to server
$web.Update()


Very simple. Now if you navigate to the Savetmpl.aspx page using the it will show fine and it will allow you to save the site as a template.



No comments:

Post a Comment