{"id":6890,"date":"2016-05-29T09:56:54","date_gmt":"2016-05-29T16:56:54","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=6890"},"modified":"2016-05-30T15:16:00","modified_gmt":"2016-05-30T22:16:00","slug":"missing-save-site-as-template-option-in-sharepoint-online-office-365-and-sharepoint-server-2013","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/missing-save-site-as-template-option-in-sharepoint-online-office-365-and-sharepoint-server-2013\/","title":{"rendered":"Missing &#8220;Save Site As Template&#8221; Option in SharePoint Online, Office 365 and SharePoint Server 2013"},"content":{"rendered":"<p>The ability to save site as a template may be missing in SharePoint at times.\u00a0I wrote this article a while back about the\u00a0<a href=\"https:\/\/www.zubairalexander.com\/blog\/missing-save-site-as-template-option-in-sharepoint-2010\/\">Missing Save Site as Template Option in SharePoint 2010<\/a>\u00a0and another one about the\u00a0<a href=\"https:\/\/www.zubairalexander.com\/blog\/missing-save-site-as-template-option-in-sharepoint-2013\/\">Missing Save Site as Template Option in SharePoint 2013<\/a>. The same issue comes up in SharePoint Online, which is part of Microsoft Office 365, so I thought I will share some additional information in this article.<\/p>\n<p>The most common reason that people notice the &#8220;Save site as template&#8221; option missing in SharePoint has to do with the enabling of SharePoint publishing feature. When you enable the SharePoint Server Publishing feature, it disables the ability to save the site as a template. This is true in situations where you enable either the publishing or the community feature in SharePoint. The simple reason according to Microsoft is that\u00a0&#8220;the publishing feature creates site elements that are not supported as part of a template, and these elements remain even when the feature is disabled. This also includes templates that were created through SharePoint Designer.&#8221; (<a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/2492356\">Microsoft KB article 2492356<\/a>).<\/p>\n<p>SharePoint Administrators turn on the publishing features because of the need to publish content from one site to another. However, sometimes they turn on the publishing features just to get a more advanced Navigation option in the Site Settings. Regardless of the reason, once the publishing or community feature is enabled in SharePoint, you cannot save that site as a template. Microsoft recommends that as a workaround you &#8220;use the app model to customize the provisioning process in SharePoint Online or SharePoint Server 2013. This lets you enable specific features, capabilities, and branding for your sites.&#8221;\u00a0 (<a href=\"https:\/\/support.microsoft.com\/en-us\/kb\/2492356\">Microsoft KB article 2492356<\/a>).<\/p>\n<p>In SharePoint Online, if you don&#8217;t see the &#8220;Save site as template&#8221; option, it could be because scripting was disabled on that site either using the GUI or PowerShell. Frankly, if you disable scripting, you essentially crippled your site and you will have so many serious problems that saving the site as a template would be the last thing on your mind. The\u00a0Custom Script feature is usually used on SharePoint Online personal sites and self-service sites so you can prevent users from run certain custom scripts. For more information,\u00a0read\u00a0Microsoft&#8217;s article <a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=397546\">Turn scripting capabilities on or off<\/a>. The Custom Script feature can be enabled or disabled by going to Office 365 Admin Center -&gt; SharePoint Admin Center -&gt; Settings -&gt; Custom Script. By default, this feature is turned off.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2016\/05\/CustomScriptFeature.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-6907\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2016\/05\/CustomScriptFeature.png\" alt=\"CustomScriptFeature\" width=\"652\" height=\"173\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2016\/05\/CustomScriptFeature.png 652w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2016\/05\/CustomScriptFeature-300x80.png 300w\" sizes=\"(max-width: 652px) 100vw, 652px\" \/><\/a><\/p>\n<p><span style=\"text-decoration: underline;\">NOTE<\/span>: If you modify\u00a0the above setting, it can take up to 24 hours for the change to take effect.<\/p>\n<p><strong>The Consequences of Deactivating Publishing<\/strong><\/p>\n<p>While it&#8217;s possible to save a publishing site as a template if you temporarily deactivate the publishing feature, it will be a huge mistake. I don&#8217;t recommend you use this workaround under any circumstances. This could be a recipe for disaster because although saving the site as a template would work fine, in the future when you try to use a template that was created by deactivating the publishing feature, you are likely to have all kinds of problems. Among other issues, you may see the following error message:<\/p>\n<blockquote><p><em>Provisioning did not succeed. Details: Failed to initialize some site properties for Web at Url: &#8216;&#8230;&#8230;&#8217; OriginalException: Failed to compare two elements in the array.<\/em><\/p><\/blockquote>\n<p>For all practical reasons, a template that was created by turning the publishing feature off, should be considered &#8220;infected with bugs&#8221; that are going to bug\u00a0you (no pun intended) down the road. Technically they are not bugs at all, it&#8217;s just that the publishing feature\u00a0contains\u00a0certain site elements that a site template doesn&#8217;t support. In other words, once you enable publishing on a\u00a0SharePoint site, there are components that can&#8217;t be turned off, even if you disable publishing. That&#8217;s why it&#8217;s so important that you plan your SharePoint deployment BEFORE you deploy SharePoint on your network.<\/p>\n<p style=\"padding-left: 30px;\"><span style=\"color: #ff0000;\"><strong>WARNING!\u00a0<\/strong><\/span><em>Avoid deactivating the publishing feature just so you can save the site as a template.<\/em><\/p>\n<p>If you accidentally enabled publishing or community feature on a SharePoint site, you are better off saving your site content, deleting the site, and creating a new\u00a0site with the appropriate template. Keep in mind, that when you delete a site, all content will be lost. You won&#8217;t be able to go to the Recycle Bin and recover your data.<\/p>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a9 2016 SeattlePro Enterprises, LLC. All rights reserved.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The ability to save site as a template may be missing in SharePoint at times.\u00a0I wrote this article a while back about the\u00a0Missing Save Site as Template Option in SharePoint 2010\u00a0and another one about the\u00a0Missing Save Site as Template Option in SharePoint 2013. The same issue comes up in SharePoint Online, which is part of [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":5312,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[43,63,54,11],"tags":[],"class_list":["post-6890","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-articles","category-office-365","category-sharepoint","category-tips-tricks"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2015\/01\/sharepoint_2013_logo.png","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/6890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=6890"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/6890\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media\/5312"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=6890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=6890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=6890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}