The Export-PnPClientSidePage PS cmdlet produces valid provisioning templates, which can be applied using the Apply-PnPProvisioningTemplate PS cmdlet.
Observed Behavior / Steps to Reproduce
The provisioning templates produced by the Export-PnPClientSidePage PS cmdlet are missing the required ID attribute on the ProvisioningTemplate element.
Attempting to apply the templates produced by Export-PnPClientSidePage with the missing ID attribute (using Apply-PnPProvisioningTemplate) results in a "The provided template is not valid!" error with no further detail.
The cause of the error can be discovered by enabling trace logs before running the Apply-PnPProvisioningTemplate cmdlet:
Category
[x] Bug [ ] Enhancement
Environment
[x] Office 365 / SharePoint Online [ ] SharePoint 2016 [ ] SharePoint 2013
Expected or Desired Behavior
The
Export-PnPClientSidePage
PS cmdlet produces valid provisioning templates, which can be applied using theApply-PnPProvisioningTemplate
PS cmdlet.Observed Behavior / Steps to Reproduce
The provisioning templates produced by the
Export-PnPClientSidePage
PS cmdlet are missing the required ID attribute on the ProvisioningTemplate element.Attempting to apply the templates produced by
Export-PnPClientSidePage
with the missing ID attribute (usingApply-PnPProvisioningTemplate
) results in a "The provided template is not valid!" error with no further detail.The cause of the error can be discovered by enabling trace logs before running the
Apply-PnPProvisioningTemplate
cmdlet:Thanks!