[X] Bug
[ ] Enhancement
[ ] Office 365 / SharePoint Online
[X] SharePoint 2016
[ ] SharePoint 2013
using PnP PowerShell 2.21.1712.2 for SP2016
If SharePoint on-premises, what's exact CU version: 16.0.4327.1000
Apply-ProvisioningTemplate should work.
When applying a template on SP2016 I'm getting
Template is not valid: The required attribute 'Zone' is missing.
Get a template and then apply it with Apply-ProvisioningTemplate
@jansenbe
My base template is "SPS#0" and the web parts don't have a Zone. The same also happens for
BLANKINTERNET#0.
Sites with the template STS#0 work fine.
I think if you use the <pnp:WebPart inside a <pnp:File zone is required.
If you use the <pnp:WebPart inside a <pnp:Page it doesn't exist.
@Pieter-Veenstra any change you could share the template or minimized version of that so that we can reuse it for testing - without repro, it's really hard to figure out what's happening and our daily automated tests are working fine in SP2016. You can for example strip all extra stuff and only leave the page elements which have the issue. Thx.
I believe this happens when you put a webpart in a rich text field or page content instead of in a Webpart zone.
I am experiencing the same issue with SharePointPnPPowerShell2016 v2.22.1801.0.
Connect-PnPOnline -Url $SiteUrl -Credentials $CredentialName -IgnoreSslErrors -Verbose;
Get-PnPProvisioningTemplate `
-Out $exportFilePath `
-IncludeSiteCollectionTermGroup `
-IncludeSiteGroups `
-IncludeSearchConfiguration `
-PersistBrandingFiles `
-PersistComposedLookFiles `
-PersistPublishingFiles `
-IncludeNativePublishingFiles `
-ContentTypeGroups ('Custom') `
-TemplateDisplayName 'Custom' `
-ResourceFilePrefix 'Custom' `
-Force;
Exported publishing site template which is missing Zone property for each web part.
Validation of current file using XML schema:
ERROR: Element '{http://schemas.dev.office.com/PnP/2017/05/ProvisioningSchema}WebPart': The attribute 'Zone' is required but missing.
ERROR: Element '{http://schemas.dev.office.com/PnP/2017/05/ProvisioningSchema}WebPart': The attribute 'Zone' is required but missing.
ERROR: Element '{http://schemas.dev.office.com/PnP/2017/05/ProvisioningSchema}WebPart': The attribute 'Zone' is required but missing.
ERROR: Element '{http://schemas.dev.office.com/PnP/2017/05/ProvisioningSchema}WebPart': The attribute 'Zone' is required but missing.
ERROR: Element '{http://schemas.dev.office.com/PnP/2017/05/ProvisioningSchema}WebPart': The attribute 'Zone' is required but missing.
Example:
<pnp:ProvisioningTemplate ID="TEMPLATE-044FE1791FB94CC4A9D741DABD81DDF6" Version="1" BaseSiteTemplate="BLANKINTERNET#0" DisplayName="Publishing Site" Scope="RootSite">
...
<pnp:File Src="Pages\default.aspx" Folder="{site}/Pages" Overwrite="true" Level="Checkout">
<pnp:Properties>
<pnp:Property Key="ContentTypeId" Value="{contenttypeid:Welcome Page}" />
<pnp:Property Key="Title" Value="Home" />
<pnp:Property Key="PublishingPageLayout" Value="{masterpagecatalog}/BlankWebPartPage.aspx, Blank Web Part page" />
<pnp:Property Key="PublishingPageContent" Value="<h2>Welcome to Your Publishing Site<br></h2><h3 class="ms-rteElement-H3">These links will help you get started.<br></h3><p>
 <br>
</p><h2>
 <a name="item-1" id="item-1">Item 1</a><br></h2><p></p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed quis ultricies orci, ac tincidunt orci. Sed nec tincidunt turpis. Sed mattis lacus quis nunc porta, a volutpat nibh dictum. Sed lacus felis, imperdiet a mollis tempus, pretium nec sem. Phasellus vitae dignissim nibh, vel condimentum mi. Proin sodales sodales sagittis. Duis venenatis vitae ipsum sit amet faucibus.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Morbi mattis diam sit amet metus tempor, dignissim rutrum sem accumsan. Donec sit amet tincidunt urna, eget tincidunt nisl. Phasellus non turpis egestas, venenatis quam sit amet, efficitur purus. In commodo sapien sit amet nisl facilisis vestibulum. Morbi nec ipsum non massa aliquet facilisis. Nulla facilisi. Maecenas finibus purus risus, ut feugiat tellus lacinia vitae. Aliquam erat volutpat. Vestibulum eget ipsum eget elit sollicitudin condimentum ut vitae ipsum. Nunc at tellus ac mi sagittis dignissim.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Praesent eget dolor ornare, vestibulum leo et, accumsan quam. Nunc diam urna, dignissim at tincidunt vel, maximus non eros. Duis dapibus gravida sodales. Donec vitae mauris eu purus rhoncus sollicitudin id et tellus. Suspendisse nunc nibh, euismod quis massa at, consequat placerat arcu. Vivamus et interdum libero, nec porttitor nulla. Duis nulla metus, vulputate sit amet cursus in, ullamcorper vel dui. Etiam at dui sit amet ex bibendum tristique a a dolor. Pellentesque rutrum faucibus velit, elementum venenatis nisi venenatis sed. Vivamus at purus a ex rutrum malesuada. Nunc viverra faucibus sem, et pretium odio hendrerit eget. Morbi consectetur metus diam, sed posuere nulla faucibus at. Integer id metus non metus malesuada fermentum. Sed vitae luctus lectus, eget eleifend massa. Vestibulum scelerisque, urna vitae tempor pretium, quam lacus blandit leo, ac euismod arcu neque tincidunt arcu. Nunc in ipsum eget tellus luctus ullamcorper vitae in massa.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">In ut turpis ac urna varius varius. Proin malesuada lacinia felis sed luctus. Nam vel dolor neque. Sed malesuada arcu quam, ac auctor ligula cursus ac. Sed eu sagittis nisi. Duis aliquet magna tortor. Etiam vulputate, lorem eget cursus dictum, nunc elit vestibulum velit, sed vehicula turpis magna non ex. Nullam vel nisi dolor. Duis nec libero quis orci tempus finibus a in lectus. Mauris quis molestie leo.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Nulla facilisi. Praesent eleifend vel neque id porttitor. Nulla nec condimentum eros. Integer egestas imperdiet lectus in rutrum. Phasellus mauris ante, blandit rutrum dignissim at, facilisis vitae justo. Proin convallis tincidunt posuere. Duis sit amet magna non elit scelerisque mattis quis ut sem. Ut viverra id nisl ac euismod. Integer sed mollis tortor. Interdum et malesuada fames ac ante ipsum primis in faucibus. Sed sit amet ante bibendum, sodales augue mattis, luctus odio. Vivamus elementum ipsum cursus commodo posuere. Ut ornare ultricies lectus, non dictum neque tristique eget.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Cras id lorem convallis, bibendum nunc vulputate, auctor libero. Donec at urna vel augue sollicitudin eleifend ut in dolor. Suspendisse cursus sem quis mi iaculis, vitae commodo purus ornare. Aenean ut volutpat ex, eget faucibus sem. Quisque vitae sodales erat. Cras vitae quam maximus, bibendum ipsum sit amet, fringilla ex. Aenean interdum consectetur posuere. Etiam pretium velit at lacus gravida, et convallis velit scelerisque. Praesent sed quam et lorem pulvinar dapibus. Integer scelerisque sed nibh non accumsan. Fusce nunc turpis, cursus in felis a, congue accumsan nisi. Nulla consequat nec libero vel molestie.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Sed ornare finibus lectus, at condimentum quam eleifend eu. Fusce eget purus lacus. Suspendisse aliquam eleifend nunc, vitae porttitor velit fringilla a. Mauris convallis nibh ipsum, ut pretium odio congue ut. Nulla fringilla laoreet tortor et ullamcorper. Sed vitae consequat ex. Mauris sollicitudin nisi malesuada justo dapibus, ac interdum quam maximus.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Suspendisse convallis odio sed tortor dapibus, nec vestibulum orci vestibulum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed fermentum ullamcorper ante vel molestie. Mauris suscipit felis sit amet lobortis dapibus. Curabitur eleifend, velit in congue auctor, mauris purus maximus elit, eu vulputate diam mi ac velit. Duis tempor tempor velit nec tempus. Nulla facilisi. Maecenas porttitor odio egestas auctor rutrum. Suspendisse scelerisque odio eget tincidunt posuere. Suspendisse ullamcorper vestibulum nulla, sed condimentum risus elementum eget. Sed et orci eget lorem efficitur placerat. Suspendisse iaculis sed justo vitae tempor. Aenean non erat fermentum, semper felis sed, rutrum nibh. Sed convallis et purus vel sodales. Cras lobortis urna sem, vel molestie nulla aliquam non.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Morbi sed diam eros. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas id maximus sem. Nunc interdum egestas blandit. Fusce dignissim suscipit rutrum. Nulla cursus porta felis id accumsan. Nam a ligula lacinia, ultricies elit nec, mollis elit. Nulla semper, dui vel viverra scelerisque, nisl justo dictum sapien, ac commodo velit orci vitae velit. Sed dui orci, congue lacinia sapien id, posuere imperdiet nulla. Nam magna velit, consequat in sapien ac, pretium efficitur metus. Proin magna nulla, vehicula id nisi ac, maximus volutpat enim. In gravida sit amet enim a accumsan. Aliquam lacinia euismod porttitor. Nulla placerat sed metus vel sagittis.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Aenean id mattis neque, id ullamcorper purus. Morbi nec gravida quam. Proin at venenatis velit. Vestibulum consequat tellus vitae eros porttitor, nec condimentum felis eleifend. Duis sed est lacus. Nam condimentum mi porttitor, placerat leo eget, viverra sapien. Cras bibendum ipsum eu lacinia aliquam. Suspendisse vulputate scelerisque efficitur. Phasellus ultricies vitae enim sed cursus. Aliquam vel ipsum massa. Donec nec augue lectus. Pellentesque placerat cursus arcu, vitae lobortis nunc tempor in. Integer consequat in leo eget tristique.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Nullam cursus nulla eget leo rutrum auctor. Aenean sem justo, iaculis vel massa sed, vulputate lacinia ligula. Praesent euismod ultricies efficitur. Proin blandit nunc sit amet odio pellentesque luctus. Mauris tincidunt ullamcorper ex. Sed in ante tempus, viverra orci non, facilisis orci. Aliquam et dolor eget nunc ornare facilisis. Aliquam interdum purus sit amet congue fermentum. In pharetra quam efficitur aliquet interdum. Curabitur aliquet leo at erat mattis ornare. Aenean in viverra velit. Maecenas mi quam, laoreet eget aliquam pulvinar, laoreet eu nisl. Vivamus quis bibendum magna. Praesent quis accumsan urna. Cras quis mi ex. Sed fringilla, libero nec elementum condimentum, ex elit ornare lectus, at rutrum orci mauris vitae ipsum.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Aliquam elit diam, porttitor eget neque ut, pharetra rhoncus ex. Nunc et hendrerit lectus, at consequat urna. Vivamus tempus porttitor luctus. Sed lobortis purus sollicitudin sagittis convallis. Integer vel mi dui. Proin sed ligula nulla. Fusce vestibulum metus leo, sodales efficitur ex venenatis et. Nullam id eros ipsum. Sed auctor facilisis mi, eget feugiat diam mollis eget. Integer at vulputate metus, ut dictum odio. Integer nec tristique mi. Vestibulum aliquam odio quis odio pretium, at vestibulum massa commodo. Praesent vestibulum nunc vitae ipsum pretium condimentum. Nulla facilisi. Maecenas ultrices dapibus iaculis.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Quisque hendrerit, ligula eget volutpat vulputate, lacus nisl rutrum velit, quis feugiat nisi ligula in urna. Phasellus nec elementum nulla. Praesent non tellus tellus. Integer rutrum mauris at suscipit tincidunt. Vivamus interdum congue egestas. Phasellus tincidunt sem velit, vel tempus ligula mattis vel. Aenean dictum, orci sed dignissim scelerisque, arcu arcu sagittis orci, ac scelerisque sapien diam vel felis. Donec fermentum libero sit amet velit euismod consequat. Praesent consectetur dolor nec eros gravida porta. Ut a ex faucibus, dapibus justo et, consectetur eros. Sed ultrices, justo eget tempus placerat, risus justo fringilla diam, et finibus ipsum nibh nec augue. Maecenas at augue urna. Quisque in lacinia urna. Aliquam erat volutpat. In pharetra ultricies lacinia.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Cras ut purus leo. Vestibulum velit justo, vestibulum non efficitur vitae, congue non purus. Etiam interdum aliquet enim, vel mattis lorem bibendum sed. In vel ultricies elit, sed ultricies metus. Integer tempus eros eget lorem pretium, sit amet rhoncus justo venenatis. Suspendisse pulvinar tristique lorem vel dignissim. Interdum et malesuada fames ac ante ipsum primis in faucibus. Maecenas viverra elit et facilisis viverra. Nulla ullamcorper erat ac nunc ornare convallis. Duis ut ornare nisl, eu iaculis ligula. Aliquam erat volutpat. Pellentesque pulvinar laoreet porttitor. Aenean vitae nibh at turpis convallis malesuada eu id arcu.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Curabitur ultricies justo quis sapien ornare, a euismod neque vehicula. Nam enim mi, sodales at lacus sit amet, condimentum aliquam purus. Duis interdum ultrices tempor. Duis sed felis eget ex dictum pellentesque. Quisque vestibulum sodales velit sed sollicitudin. Ut pellentesque sagittis mi, et finibus neque cursus id. Praesent sem mauris, lacinia id dapibus et, scelerisque eu nisi. Nunc lacus urna, iaculis&#160;<br></p><p>
 <br>
</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Cras id lorem convallis, bibendum nunc vulputate, auctor libero. Donec at urna vel augue sollicitudin eleifend ut in dolor. Suspendisse cursus sem quis mi iaculis, vitae commodo purus ornare. Aenean ut volutpat ex, eget faucibus sem. Quisque vitae sodales erat. Cras vitae quam maximus, bibendum ipsum sit amet, fringilla ex. Aenean interdum consectetur posuere. Etiam pretium velit at lacus gravida, et convallis velit scelerisque. Praesent sed quam et lorem pulvinar dapibus. Integer scelerisque sed nibh non accumsan. Fusce nunc turpis, cursus in felis a, congue accumsan nisi. Nulla consequat nec libero vel molestie.</p><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Sed ornare finibus lectus, at condimentum quam eleifend eu. Fusce eget purus lacus. Suspendisse aliquam eleifend nunc, vitae porttitor velit fringilla a. Mauris convallis nibh ipsum, ut pretium odio congue ut. Nulla fringilla laoreet tortor et ullamcorper. Sed vitae consequat ex. Mauris sollicitudin nisi malesuada justo dapibus, ac interdum quam maximus.</p><h2>
 <a href="#Item2">Item 2</a><br></h2><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Suspendisse convallis odio sed tortor dapibus, nec vestibulum orci vestibulum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed fermentum ullamcorper ante vel molestie. Mauris suscipit felis sit amet lobortis dapibus. Curabitur eleifend, velit in congue auctor, mauris purus maximus elit, eu vulputate diam mi ac velit. Duis tempor tempor velit nec tempus. Nulla facilisi. Maecenas porttitor odio egestas auctor rutrum. Suspendisse scelerisque odio eget tincidunt posuere. Suspendisse ullamcorper vestibulum nulla, sed condimentum risus elementum eget. Sed et orci eget lorem efficitur placerat. Suspendisse iaculis sed justo vitae tempor. Aenean non erat fermentum, semper felis sed, rutrum nibh. Sed convallis et purus vel sodales. Cras lobortis urna sem, vel molestie nulla aliquam non.</p><h2>
 <a href="#Item3" name="item-3" id="item-3">Item 3</a><br></h2><p style="margin-bottom&#58;15px;padding&#58;0px;text-align&#58;justify;color&#58;#000000;font-family&#58;&quot;open sans&quot;, arial, sans-serif;font-size&#58;14px;">Morbi sed diam eros. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Maecenas id maximus sem. Nunc interdum egestas blandit. Fusce dignissim suscipit rutrum. Nulla cursus porta felis id accumsan. Nam a ligula lacinia, ultricies elit nec, mollis elit. Nulla semper, dui vel viverra scelerisque, nisl justo dictum sapien, ac commodo velit orci vitae velit. Sed dui orci, congue lacinia sapien id, posuere imperdiet nulla. Nam magna velit, consequat in sapien ac, pretium efficitur metus. Proin magna nulla, vehicula id nisi ac, maximus volutpat enim. In gravida sit amet enim a accumsan. Aliquam lacinia euismod porttitor. Nulla placerat sed metus vel sagittis.<br></p><h3 class="ms-rteElement-H3">
 <br>
</h3>" />
</pnp:Properties>
<pnp:WebParts>
<pnp:WebPart Title="Content" Order="1">
<pnp:Contents>
<WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>Content</Title>
<FrameType>None</FrameType>
<Description>Use for formatted text, tables, and images.</Description>
<IsIncluded>true</IsIncluded>
<ZoneID>TopLeftRow</ZoneID>
<PartOrder>1</PartOrder>
<FrameState>Normal</FrameState>
<Height />
<Width />
<AllowRemove>true</AllowRemove>
<AllowZoneChange>true</AllowZoneChange>
<AllowMinimize>true</AllowMinimize>
<AllowConnect>true</AllowConnect>
<AllowEdit>true</AllowEdit>
<AllowHide>true</AllowHide>
<IsVisible>true</IsVisible>
<DetailLink />
<HelpLink />
<HelpMode>Modeless</HelpMode>
<Dir>Default</Dir>
<PartImageSmall />
<MissingAssembly>Cannot import this Web Part.</MissingAssembly>
<PartImageLarge />
<IsIncludedFilter />
<Assembly>Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
<TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>
<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
<Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[
<h2>I'm the Information Architect</h2>
]]></Content>
<PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
</WebPart>
</pnp:Contents>
</pnp:WebPart>
<pnp:WebPart Title="Content" Order="1">
<pnp:Contents>
<WebPart xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>Content</Title>
<FrameType>None</FrameType>
<Description>Use for formatted text, tables, and images.</Description>
<IsIncluded>true</IsIncluded>
<ZoneID>TopRightRow</ZoneID>
<PartOrder>1</PartOrder>
<FrameState>Normal</FrameState>
<Height />
<Width />
<AllowRemove>true</AllowRemove>
<AllowZoneChange>true</AllowZoneChange>
<AllowMinimize>true</AllowMinimize>
<AllowConnect>true</AllowConnect>
<AllowEdit>true</AllowEdit>
<AllowHide>true</AllowHide>
<IsVisible>true</IsVisible>
<DetailLink />
<HelpLink />
<HelpMode>Modeless</HelpMode>
<Dir>Default</Dir>
<PartImageSmall />
<MissingAssembly>Cannot import this Web Part.</MissingAssembly>
<PartImageLarge />
<IsIncludedFilter />
<Assembly>Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
<TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>
<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
<Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[
<h2>I'm the Visual Designer</h2>
]]></Content>
<PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
</WebPart>
</pnp:Contents>
</pnp:WebPart>
<pnp:WebPart Title="" Order="2">
<pnp:Contents>
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="Microsoft.SharePoint.Publishing.WebControls.SummaryLinkWebPart, Microsoft.SharePoint.Publishing, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<importErrorMessage>Cannot import this web part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="InitialAsyncDataFetch" type="bool">False</property>
<property name="ChromeType" type="chrometype">None</property>
<property name="HeaderXslLink" type="string" />
<property name="Height" type="string" />
<property name="CacheXslStorage" type="bool">True</property>
<property name="SummaryLinkStore" type="string">
<div title="_schemaversion" id="_3">
<div title="_links">
<div title="_link">
<span title="_title">Set up site permissions</span>
<span title="_description">Manage users' permission levels.</span>
<span title="_linkurl">
<a href="{site}/_layouts/15/user.aspx">/sites/psc/_layouts/15/user.aspx</a>
</span>
<span title="_linktooltip">Manage users' permission levels.</span>
<span title="_openinnewwindow">True</span>
<span title="_style">Default</span>
<span title="_order">1</span>
<span title="_begincolumn">True</span>
</div>
<div title="_link">
<span title="_title">Make your site multilingual</span>
<span title="_description">Use the variations feature to manage sites and navigation across languages.</span>
<span title="_linkurl">
<a href="{site}/_layouts/15/VariationLabels.aspx">/sites/psc/_layouts/15/VariationLabels.aspx</a>
</span>
<span title="_linktooltip">Use the variations feature to manage sites and navigation across languages.</span>
<span title="_openinnewwindow">True</span>
<span title="_style">Default</span>
<span title="_order">2</span>
<span title="_begincolumn">False</span>
</div>
<div title="_link">
<span title="_title">Define content types</span>
<span title="_description">Create content types for the page, document, and item types in this site.</span>
<span title="_linkurl">
<a href="{site}/_layouts/15/mngctype.aspx">/sites/psc/_layouts/15/mngctype.aspx</a>
</span>
<span title="_linktooltip">Create content types for the page, document, and item types in this site.</span>
<span title="_openinnewwindow">True</span>
<span title="_style">Default</span>
<span title="_order">4</span>
<span title="_begincolumn">False</span>
</div>
<div title="_link">
<span title="_title">Configure navigation</span>
<span title="_description">Choose and configure the navigation model for this site.</span>
<span title="_linkurl">
<a href="{site}/_layouts/15/areanavigationsettings.aspx">/sites/psc/_layouts/15/areanavigationsettings.aspx</a>
</span>
<span title="_linktooltip">Choose and configure the navigation model for this site.</span>
<span title="_openinnewwindow">True</span>
<span title="_style">Default</span>
<span title="_order">5</span>
<span title="_begincolumn">False</span>
</div>
<div title="_link">
<span title="_title">Create and configure site content</span>
<span title="_description">Create libraries, lists, apps, and subsites to store content, and configure them to use content types.</span>
<span title="_linkurl">
<a href="{site}/_layouts/15/viewlsts.aspx">/sites/psc/_layouts/15/viewlsts.aspx</a>
</span>
<span title="_linktooltip">Create libraries, lists, apps, and subsites to store content, and configure them to use content types.</span>
<span title="_openinnewwindow">True</span>
<span title="_style">Default</span>
<span title="_order">6</span>
<span title="_begincolumn">False</span>
</div>
<div title="_link">
<span title="_title">Customize your search center</span>
<span title="_description">Configure the search settings for this site.</span>
<span title="_linkurl">
<a href="{site}/_layouts/15/enhancedSearch.aspx?level=site">/sites/psc/_layouts/15/enhancedSearch.aspx?level=site</a>
</span>
<span title="_linktooltip">Configure the search settings for this site.</span>
<span title="_openinnewwindow">True</span>
<span title="_style">Default</span>
<span title="_order">8</span>
<span title="_begincolumn">False</span>
</div>
</div>
<div title="_view">
<span title="_columns">1</span>
<span title="_linkstyle"></span>
<span title="_groupstyle"></span>
</div>
</div>
</property>
<property name="ListName" type="string" null="true" />
<property name="AllowZoneChange" type="bool">True</property>
<property name="AutoRefresh" type="bool">False</property>
<property name="XmlDefinitionLink" type="string" />
<property name="DataFields" type="string" />
<property name="NoDefaultStyle" type="string" />
<property name="XslLink" type="string" null="true" />
<property name="ViewFlag" type="string">0</property>
<property name="MainXslLink" type="string" />
<property name="CatalogIconImageUrl" type="string" />
<property name="AutoRefreshInterval" type="int">60</property>
<property name="AllowConnect" type="bool">True</property>
<property name="DataSourcesString" type="string" />
<property name="AllowClose" type="bool">True</property>
<property name="ShowWithSampleData" type="bool">False</property>
<property name="Xsl" type="string" null="true" />
<property name="EnableOriginalValue" type="bool">False</property>
<property name="Default" type="string" />
<property name="Hidden" type="bool">False</property>
<property name="ListUrl" type="string" null="true" />
<property name="DataSourceID" type="string" />
<property name="ParameterBindings" type="string" />
<property name="FireInitialRow" type="bool">True</property>
<property name="ManualRefresh" type="bool">False</property>
<property name="ViewFlags" type="Microsoft.SharePoint.SPViewFlags, Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">None</property>
<property name="ChromeState" type="chromestate">Normal</property>
<property name="AllowHide" type="bool">True</property>
<property name="ListDisplayName" type="string" null="true" />
<property name="SampleData" type="string" null="true" />
<property name="AsyncRefresh" type="bool">False</property>
<property name="Title" type="string" />
<property name="ListId" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">00000000-0000-0000-0000-000000000000</property>
<property name="Description" type="string" />
<property name="AllowMinimize" type="bool">True</property>
<property name="TitleUrl" type="string" />
<property name="ItemXslLink" type="string" />
<property name="CacheXslTimeOut" type="int">86400</property>
<property name="DisplayName" type="string" />
<property name="PageType" type="Microsoft.SharePoint.PAGETYPE, Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">PAGE_NORMALVIEW</property>
<property name="Width" type="string" />
<property name="AllowEdit" type="bool">True</property>
<property name="ExportMode" type="exportmode">All</property>
<property name="Direction" type="direction">NotSet</property>
<property name="PageSize" type="int">-1</property>
<property name="ViewContentTypeId" type="string" />
<property name="HelpUrl" type="string" />
<property name="XmlDefinition" type="string" />
<property name="UseSQLDataSourcePaging" type="bool">True</property>
<property name="TitleIconImageUrl" type="string" />
<property name="MissingAssembly" type="string">Cannot import this web part.</property>
<property name="HelpMode" type="helpmode">Modeless</property>
</properties>
</data>
</webPart>
</webParts>
</pnp:Contents>
</pnp:WebPart>
<pnp:WebPart Title="" Order="2">
<pnp:Contents>
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="Microsoft.SharePoint.Publishing.WebControls.SummaryLinkWebPart, Microsoft.SharePoint.Publishing, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<importErrorMessage>Cannot import this web part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="InitialAsyncDataFetch" type="bool">False</property>
<property name="ChromeType" type="chrometype">None</property>
<property name="HeaderXslLink" type="string" />
<property name="Height" type="string" />
<property name="CacheXslStorage" type="bool">True</property>
<property name="SummaryLinkStore" type="string">
<div title="_schemaversion" id="_3">
<div title="_links">
<div title="_link">
<span title="_title">Import a design package</span>
<span title="_description">Import a design package to apply to your site.</span>
<span title="_linkurl">
<a href="{site}/_layouts/15/DesignPackageInstall.aspx">/sites/psc/_layouts/15/DesignPackageInstall.aspx</a>
</span>
<span title="_linktooltip">Import a design package to apply to your site.</span>
<span title="_openinnewwindow">True</span>
<span title="_style">Default</span>
<span title="_order">1</span>
<span title="_begincolumn">True</span>
</div>
<div title="_link">
<span title="_title">Configure image renditions</span>
<span title="_description">Define the dimensions that will be used and available for uploaded images that appear throughout this site.</span>
<span title="_linkurl">
<a href="{site}/_layouts/15/ImageRenditionSettings.aspx">/sites/psc/_layouts/15/ImageRenditionSettings.aspx</a>
</span>
<span title="_linktooltip">Define the dimensions that will be used and available for uploaded images that appear throughout this site.</span>
<span title="_openinnewwindow">True</span>
<span title="_style">Default</span>
<span title="_order">2</span>
<span title="_begincolumn">False</span>
</div>
<div title="_link">
<span title="_title">Design your site</span>
<span title="_description">Create the brand of your site through device channels, master pages, page layouts, and display templates.</span>
<span title="_linkurl">
<a href="{site}/_layouts/15/DesignSite.aspx">/sites/psc/_layouts/15/DesignSite.aspx</a>
</span>
<span title="_linktooltip">Design your site</span>
<span title="_openinnewwindow">True</span>
<span title="_style">Default</span>
<span title="_order">3</span>
<span title="_begincolumn">False</span>
</div>
<div title="_link">
<span title="_title">Choose availability of site templates</span>
<span title="_description">Specify which page layouts and site templates will be available for use on this site or any subsites.</span>
<span title="_linkurl">
<a href="{site}/_layouts/15/AreaTemplateSettings.aspx">/sites/psc/_layouts/15/AreaTemplateSettings.aspx</a>
</span>
<span title="_linktooltip">Specify which page layouts and site templates will be available for use on this site or any subsites.</span>
<span title="_openinnewwindow">True</span>
<span title="_style">Default</span>
<span title="_order">4</span>
<span title="_begincolumn">False</span>
</div>
</div>
<div title="_view">
<span title="_columns">1</span>
<span title="_linkstyle"></span>
<span title="_groupstyle"></span>
</div>
</div>
</property>
<property name="ListName" type="string" null="true" />
<property name="AllowZoneChange" type="bool">True</property>
<property name="AutoRefresh" type="bool">False</property>
<property name="XmlDefinitionLink" type="string" />
<property name="DataFields" type="string" />
<property name="NoDefaultStyle" type="string" />
<property name="XslLink" type="string" null="true" />
<property name="ViewFlag" type="string">0</property>
<property name="MainXslLink" type="string" />
<property name="CatalogIconImageUrl" type="string" />
<property name="AutoRefreshInterval" type="int">60</property>
<property name="AllowConnect" type="bool">True</property>
<property name="DataSourcesString" type="string" />
<property name="AllowClose" type="bool">True</property>
<property name="ShowWithSampleData" type="bool">False</property>
<property name="Xsl" type="string" null="true" />
<property name="EnableOriginalValue" type="bool">False</property>
<property name="Default" type="string" />
<property name="Hidden" type="bool">False</property>
<property name="ListUrl" type="string" null="true" />
<property name="DataSourceID" type="string" />
<property name="ParameterBindings" type="string" />
<property name="FireInitialRow" type="bool">True</property>
<property name="ManualRefresh" type="bool">False</property>
<property name="ViewFlags" type="Microsoft.SharePoint.SPViewFlags, Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">None</property>
<property name="ChromeState" type="chromestate">Normal</property>
<property name="AllowHide" type="bool">True</property>
<property name="ListDisplayName" type="string" null="true" />
<property name="SampleData" type="string" null="true" />
<property name="AsyncRefresh" type="bool">False</property>
<property name="Title" type="string" />
<property name="ListId" type="System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">00000000-0000-0000-0000-000000000000</property>
<property name="Description" type="string" />
<property name="AllowMinimize" type="bool">True</property>
<property name="TitleUrl" type="string" />
<property name="ItemXslLink" type="string" />
<property name="CacheXslTimeOut" type="int">86400</property>
<property name="DisplayName" type="string" />
<property name="PageType" type="Microsoft.SharePoint.PAGETYPE, Microsoft.SharePoint, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">PAGE_NORMALVIEW</property>
<property name="Width" type="string" />
<property name="AllowEdit" type="bool">True</property>
<property name="ExportMode" type="exportmode">All</property>
<property name="Direction" type="direction">NotSet</property>
<property name="PageSize" type="int">-1</property>
<property name="ViewContentTypeId" type="string" />
<property name="HelpUrl" type="string" />
<property name="XmlDefinition" type="string" />
<property name="UseSQLDataSourcePaging" type="bool">True</property>
<property name="TitleIconImageUrl" type="string" />
<property name="MissingAssembly" type="string">Cannot import this web part.</property>
<property name="HelpMode" type="helpmode">Modeless</property>
</properties>
</data>
</webPart>
</webParts>
</pnp:Contents>
</pnp:WebPart>
<pnp:WebPart Title="Content Search" Order="0">
<pnp:Contents>
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="Microsoft.Office.Server.Search.WebControls.ContentBySearchWebPart, Microsoft.Office.Server.Search, Version=16.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="StatesJson" type="string">{}</property>
<property name="UseSharedDataProvider" type="bool">False</property>
<property name="UseSimplifiedQueryBuilder" type="bool">False</property>
<property name="QueryGroupName" type="string">Default</property>
<property name="LogAnalyticsViewEvent" type="bool">False</property>
<property name="SelectedPropertiesJson" type="string">["PublishingImage","PictureURL","PictureThumbnailURL","Path","Title","Description","SecondaryFileExtension","ContentTypeId"]</property>
<property name="PropertyMappings" type="string" />
<property name="ShowAdvancedLink" type="bool">True</property>
<property name="NumberOfItems" type="int">3</property>
<property name="EmitStyleReference" type="bool">True</property>
<property name="ShowPreferencesLink" type="bool">True</property>
<property name="ServerIncludeScriptsJson" type="string">null</property>
<property name="IncludeResultTypeConstraint" type="bool">False</property>
<property name="Height" type="string" />
<property name="MaxPagesBeforeCurrent" type="int">4</property>
<property name="ResultType" type="string" />
<property name="ShowDidYouMean" type="bool">False</property>
<property name="StartingItemIndex" type="int">1</property>
<property name="AlwaysRenderOnServer" type="bool">False</property>
<property name="GroupTemplateId" type="string">{site}</property>
<property name="ResultTypeId" type="string" />
<property name="ItemTemplateId" type="string">{site}</property>
<property name="AllowConnect" type="bool">True</property>
<property name="HelpUrl" type="string" />
<property name="ResultsPerPage" type="int">3</property>
<property name="RenderTemplateId" type="string">{site}</property>
<property name="AllowEdit" type="bool">True</property>
<property name="AllowZoneChange" type="bool">True</property>
<property name="AddSEOPropertiesFromSearch" type="bool">False</property>
<property name="AdvancedSearchPageAddress" type="string">advanced.aspx</property>
<property name="HitHighlightedPropertiesJson" type="string">["Title","Path","Author","SectionNames","SiteDescription"]</property>
<property name="TitleUrl" type="string" />
<property name="EmptyMessage" type="string" />
<property name="ShowBestBets" type="bool">False</property>
<property name="AllowHide" type="bool">True</property>
<property name="BypassResultTypes" type="bool">True</property>
<property name="Description" type="string">Content Search Web Part will allow you to show items that are results of a search query you specify.
When you add it to the page, this Web Part will show recently modified items from the current site. You can change this setting to show items from another site or list by editing the Web Part and changing its search criteria.
As new content is discovered by search, this Web Part will display an updated list of items each time the page is viewed.</property>
<property name="ShowSortOptions" type="bool">False</property>
<property name="ExportMode" type="exportmode">All</property>
<property name="AllowMinimize" type="bool">True</property>
<property name="ShowPersonalFavorites" type="bool">False</property>
<property name="ChromeType" type="chrometype">None</property>
<property name="ShowPaging" type="bool">True</property>
<property name="ChromeState" type="chromestate">Normal</property>
<property name="CatalogIconImageUrl" type="string" />
<property name="HelpMode" type="helpmode">Modeless</property>
<property name="TitleIconImageUrl" type="string" />
<property name="ItemBodyTemplateId" type="string" />
<property name="AlternateErrorMessage" type="string" null="true" />
<property name="Hidden" type="bool">False</property>
<property name="TargetResultTable" type="string">RelevantResults</property>
<property name="AllowClose" type="bool">True</property>
<property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
<property name="ShowResultCount" type="bool">True</property>
<property name="ShowLanguageOptions" type="bool">True</property>
<property name="ShowUpScopeMessage" type="bool">False</property>
<property name="Width" type="string" />
<property name="RepositionLanguageDropDown" type="bool">False</property>
<property name="Title" type="string">Content Search</property>
<property name="ScrollToTopOnRedraw" type="bool">False</property>
<property name="ShowResults" type="bool">True</property>
<property name="ShowAlertMe" type="bool">True</property>
<property name="OverwriteResultPath" type="bool">True</property>
<property name="PreloadedItemTemplateIdsJson" type="string">null</property>
<property name="MaxPagesAfterCurrent" type="int">1</property>
<property name="ShowDefinitions" type="bool">False</property>
<property name="ShouldHideControlWhenEmpty" type="bool">True</property>
<property name="ShowViewDuplicates" type="bool">False</property>
<property name="AvailableSortsJson" type="string">null</property>
<property name="DataProviderJSON" type="string">{"Properties":{"TryCache":true,"Scope":"{Site.URL}","UpdateLinksForCatalogItems":true,"EnableStacking":true},"PropertiesJson":"{\"TryCache\":true,\"Scope\":\"{Site.URL}\",\"UpdateLinksForCatalogItems\":true,\"EnableStacking\":true}","QueryGroupName":"Default","QueryPropertiesTemplateUrl":"sitesearch://webroot","IgnoreQueryPropertiesTemplateUrl":false,"SourceID":"BA63BBAE-FA9C-42C0-B027-9A878F16557C","SourceName":null,"SourceLevel":null,"CollapseSpecification":"","QueryTemplate":"{searchboxquery}","FallbackSort":null,"FallbackSortJson":"null","RankRules":null,"RankRulesJson":"null","AsynchronousResultRetrieval":false,"SendContentBeforeQuery":true,"BatchClientQuery":true,"FallbackLanguage":-1,"FallbackRankingModelID":"","EnableStemming":true,"EnablePhonetic":false,"EnableNicknames":false,"EnableInterleaving":false,"EnableQueryRules":true,"EnableOrderingHitHighlightedProperty":false,"HitHighlightedMultivaluePropertyLimit":-1,"IgnoreContextualScope":true,"ScopeResultsToCurrentSite":false,"TrimDuplicates":true,"ClientType":"ContentSearchRegular","UpdateAjaxNavigate":true,"SummaryLength":180,"DesiredSnippetLength":90,"PersonalizedQuery":false,"FallbackRefinementFilters":null,"IgnoreStaleServerQuery":false,"RenderTemplateId":"","AlternateErrorMessage":null,"Title":""}</property>
<property name="Direction" type="direction">NotSet</property>
</properties>
</data>
</webPart>
</webParts>
</pnp:Contents>
</pnp:WebPart>
</pnp:WebParts>
</pnp:File>
...
</pnp:ProvisioningTemplate>
Also, the Composed Looks did not get exported, even though custom color and font files have been deployed and selected on the Composed Looks configuration screen.
<pnp:ComposedLook Name="" ColorFile="" FontFile="" BackgroundFile="" Version="0" />
I'm encountering the same issue (On-Prem 2016). Has there been any resolution?
@VesaJuvonen I wonder if this is a SharePoint 2016 issue only as I can't reproduce this in SharePoint Online. @ruslanurban 's template is similar to mine.
This is indeed SP2016 issue due CSOM limitations on getting ZoneId for the web parts. That API, unfortunately, is missing from the SP2016 CSOM - it exists in SP2013, but was missed to get backported also to SP2016. We are working on addressing this gap in SP engineering sooner or later.
Was anyone able to find a workaround or a solution for this issue?
Yes you can work around the issue ok, It just requires a quick manual edit on your XML template. Find your WebPart XML section and just add the “Zone=”Header” such as below,
You will need to do it for each Web Part and check your Zones are correct in the layout your using. I’ve just had to do it to four web part’s exported as part of the home page which is how I found this issue. But the workaround works ok until the export/api supports it.
Most helpful comment
This is indeed SP2016 issue due CSOM limitations on getting ZoneId for the web parts. That API, unfortunately, is missing from the SP2016 CSOM - it exists in SP2013, but was missed to get backported also to SP2016. We are working on addressing this gap in SP engineering sooner or later.