pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 662 forks source link

XInclude support in Tenant templates #2652

Open MKrupskiy opened 4 years ago

MKrupskiy commented 4 years ago

Reporting a Missing Feature

Split provisioning tenant template into multiple files using XInclude:

<pnp:Templates ID="SITE-TEMPLATES">
    <pnp:ProvisioningTemplate ID="HUB-TEMPLATE">
        **<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="external-file-WebSettings.xml" />**
        **<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="external-file-TermGroups.xml" />**
    </pnp:ProvisioningTemplate>
</pnp:Templates>

Expected behavior

xi:include snippet should link a separate file defined in href property. Powershell command Apply-PnPTenantTemplate should execute without errors.

Actual behavior

Error message appears when execute Powershell command Apply-PnPTenantTemplate: "Apply-PnPTenantTemplate : The provided provisioning file is not valid!"

Steps to reproduce behavior

1) Insert xi:include snippet into a tenant template as above. 2) Run PowerShell command: Apply-PnPTenantTemplate -Path "TenantTemplate.xml" 3) See the error "Apply-PnPTenantTemplate : The provided provisioning file is not valid!"

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

3.13.1909.0

How did you install the PnP-PowerShell Cmdlets?

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.