pnp / PnP-Sites-Core

Microsoft 365 Dev PnP Core component (.NET) targeted for increasing developer productivity with CSOM based solutions.
Other
415 stars 642 forks source link

Export-PnPClientSidePage produces an invalid provisioning template #2466

Open zplume opened 4 years ago

zplume commented 4 years ago

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 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:

Set-PnPTraceLog -On -Level Debug

Thanks!

ghost commented 4 years ago

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