{"id":820,"date":"2014-07-02T14:50:37","date_gmt":"2014-07-02T14:50:37","guid":{"rendered":"http:\/\/www.myfatblog.co.uk\/?p=820"},"modified":"2015-04-24T14:38:33","modified_gmt":"2015-04-24T14:38:33","slug":"bug-save-site-template-sharepoint-online","status":"publish","type":"post","link":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/","title":{"rendered":"Bug with Save Site as a Template in SharePoint Online"},"content":{"rendered":"<p>We&#8217;ve hit a peculiar bug in SharePoint Online today when trying to &#8220;Save site as a template&#8221;. In this particular scenario we&#8217;re using composed looks to apply basic branding to SPO for a client. As composed looks can&#8217;t be inherited and we&#8217;re not looking to use code for provisioning, we decided to use site templates for each site collection.<\/p>\n<p>We&#8217;re also using the Content Type Hub to push out a single document content type with the Enterprise keywords site column attached to it. To create the template, we&#8217;ve followed the process below:-<\/p>\n<ol>\n<li>Create content type in CTHub<\/li>\n<li>Add existing site column &#8220;Enterprise Keywords&#8221; to the content type.<\/li>\n<li>Browse to the main site collection and confirm content type deployment.<\/li>\n<li>Create new sub-site using the team site template.<\/li>\n<li>Customise and brand the template site<\/li>\n<li>Select &#8220;Save site as a template&#8221; in site settings<\/li>\n<li>Give it the relevant name\/title, do NOT select &#8220;Include Content&#8221;<\/li>\n<\/ol>\n<p>At this point, the save kicks off, but then throws a SharePoint error<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image001.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border: 0px currentcolor; display: inline; background-image: none;\" title=\"clip_image001\" src=\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image001_thumb.png\" alt=\"clip_image001\" width=\"674\" height=\"225\" border=\"0\" \/><\/a><\/p>\n<p>If you browse to the solutions gallery in the site collection, you&#8217;ll find that the template has been saved as a new WSP, however the solution has not activated. If you try and manually activate, you&#8217;ll hit another SharePoint error.<\/p>\n<p>When I was testing this earlier in the day I was actually receiving more detail on the error, with wording along the lines of:-<\/p>\n<p>The validation of featuredefinition with id 16cfcf04-5543-4846-8b84-2ea93791ff5b has failed, file Phtest\\ListInstances\\ElementsContentType.xml, line 2029, token 118: The &#8216;AllowDeletion&#8217; attribute is not declared<\/p>\n<p>So, for some reason our WSP is failing feature validation, Looking into the Elements file specified, we can indeed see that our content type has the site column with the AllowDeletion=&#8221;True&#8221; value added.<\/p>\n<p><a href=\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image002.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border: 0px currentcolor; display: inline; background-image: none;\" title=\"clip_image002\" src=\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image002_thumb.png\" alt=\"clip_image002\" width=\"780\" height=\"263\" border=\"0\" \/><\/a><\/p>\n<p>Several others have been seeing this issue, including Renso Jacobs who helpfully pointed out on the <a href=\"http:\/\/social.msdn.microsoft.com\/Forums\/office\/en-US\/90195a5d-2509-4571-b99f-7d3b73debd66\/managed-metadata-colums-are-incorrectly-added-to-a-content-type-in-the-schema-sharepoint-online?forum=sharepointcustomization#1d537632-39ad-4076-b9fa-7cadc23254ad\">MSDN forum post<\/a> that is following this, that the <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/office\/aa543225(v=office.15).aspx\">FieldTypes reference document<\/a> doesn&#8217;t show this AllowDeletion attribute in the FieldRef schema.<\/p>\n<p>Removing this particular field from the content type is a quick and dirty workaround, it allows me to save the site as a template, and as I&#8217;m using the CTHub I can quickly redeploy the content types. However as soon as I do, the problem returns!<\/p>\n<p>Now at the moment, I don&#8217;t have any content in this site as it&#8217;s a greenfield site, but the minute I do, removing a field from the content type is not an option as I&#8217;ll end up losing metadata.<\/p>\n<p>I&#8217;ve confirmed that the issue currently affects builds 16.0.0.1205, 16.0.0.1210, 16.0.0.1216 and if I find any more I&#8217;ll let you all know and update the MSDN post. The issue is currently with Microsoft for investigation.<\/p>\n<p>[important]UPDATE July 9th &#8211; This issue was accepted as a bug and escalated to the product team.[\/important]<\/p>\n<p>[important]UPDATE,\u00a0the MSDN post has been updated to state that a hotfix has been globally rolled out across all tenancies. I &#8216;ve just tested and this is working now across all of my tenancies that were affected.[\/important]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve hit a peculiar bug in SharePoint Online today when trying to &#8220;Save site as a template&#8221;. In this particular scenario we&#8217;re using composed looks to apply basic branding to SPO for a client. As composed looks can&#8217;t be inherited and we&#8217;re not looking to use code for provisioning, we decided to use site templates &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[51,139],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Bug with Save Site as a Template - SharePoint Online<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bug with Save Site as a Template - SharePoint Online\" \/>\n<meta property=\"og:description\" content=\"We&#8217;ve hit a peculiar bug in SharePoint Online today when trying to &#8220;Save site as a template&#8221;. In this particular scenario we&#8217;re using composed looks to apply basic branding to SPO for a client. As composed looks can&#8217;t be inherited and we&#8217;re not looking to use code for provisioning, we decided to use site templates &hellip; Continue reading\" \/>\n<meta property=\"og:url\" content=\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog of an overweight SharePoint addict\" \/>\n<meta property=\"article:published_time\" content=\"2014-07-02T14:50:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-04-24T14:38:33+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image001_thumb.png\" \/>\n<meta name=\"author\" content=\"Cimares\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cimares\" \/>\n<meta name=\"twitter:site\" content=\"@cimares\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Cimares\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/\",\"name\":\"Bug with Save Site as a Template - SharePoint Online\",\"isPartOf\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/#primaryimage\"},\"image\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image001_thumb.png\",\"datePublished\":\"2014-07-02T14:50:37+00:00\",\"dateModified\":\"2015-04-24T14:38:33+00:00\",\"author\":{\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/#primaryimage\",\"url\":\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image001_thumb.png\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image001_thumb.png\",\"width\":590,\"height\":197},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#website\",\"url\":\"http:\/\/www.myfatblog.co.uk\/\",\"name\":\"Blog of an overweight SharePoint addict\",\"description\":\"The rantings of a (not so) food obsessed IT consultant!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6\",\"name\":\"Cimares\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/\",\"url\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"contentUrl\":\"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg\",\"caption\":\"Cimares\"},\"sameAs\":[\"http:\/\/www.myfatblog.co.uk\"],\"url\":\"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bug with Save Site as a Template - SharePoint Online","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/","og_locale":"en_US","og_type":"article","og_title":"Bug with Save Site as a Template - SharePoint Online","og_description":"We&#8217;ve hit a peculiar bug in SharePoint Online today when trying to &#8220;Save site as a template&#8221;. In this particular scenario we&#8217;re using composed looks to apply basic branding to SPO for a client. As composed looks can&#8217;t be inherited and we&#8217;re not looking to use code for provisioning, we decided to use site templates &hellip; Continue reading","og_url":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/","og_site_name":"Blog of an overweight SharePoint addict","article_published_time":"2014-07-02T14:50:37+00:00","article_modified_time":"2015-04-24T14:38:33+00:00","og_image":[{"url":"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image001_thumb.png"}],"author":"Cimares","twitter_card":"summary_large_image","twitter_creator":"@cimares","twitter_site":"@cimares","twitter_misc":{"Written by":"Cimares","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/","url":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/","name":"Bug with Save Site as a Template - SharePoint Online","isPartOf":{"@id":"http:\/\/www.myfatblog.co.uk\/#website"},"primaryImageOfPage":{"@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/#primaryimage"},"image":{"@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/#primaryimage"},"thumbnailUrl":"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image001_thumb.png","datePublished":"2014-07-02T14:50:37+00:00","dateModified":"2015-04-24T14:38:33+00:00","author":{"@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.myfatblog.co.uk\/index.php\/2014\/07\/bug-save-site-template-sharepoint-online\/#primaryimage","url":"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image001_thumb.png","contentUrl":"http:\/\/www.myfatblog.co.uk\/wp-content\/uploads\/2014\/07\/clip_image001_thumb.png","width":590,"height":197},{"@type":"WebSite","@id":"http:\/\/www.myfatblog.co.uk\/#website","url":"http:\/\/www.myfatblog.co.uk\/","name":"Blog of an overweight SharePoint addict","description":"The rantings of a (not so) food obsessed IT consultant!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/www.myfatblog.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/55ae8f6885bb5b8390dad001f3da83c6","name":"Cimares","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"http:\/\/www.myfatblog.co.uk\/#\/schema\/person\/image\/","url":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","contentUrl":"http:\/\/www.myfatblog.co.uk\/images\/BlogImages\/About_D057\/TopOfTheWorld.jpg","caption":"Cimares"},"sameAs":["http:\/\/www.myfatblog.co.uk"],"url":"http:\/\/www.myfatblog.co.uk\/index.php\/author\/reginald\/"}]}},"_links":{"self":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/820"}],"collection":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=820"}],"version-history":[{"count":6,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/820\/revisions"}],"predecessor-version":[{"id":836,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/820\/revisions\/836"}],"wp:attachment":[{"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=820"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.myfatblog.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}