pnpcore: Applying template with ClientSidePages in template definition fails
Category
- Bug
Describe the bug
Using the PnP.Powershell preview module, I try to apply a template with the new Invoke-PnPSiteTemplate
command.
Provisionning is done but fails at the end with ClientSidePages (I actually have only one quite simple Home page definition) and raises a NullReferenceException.
If I comment the ClientSidePages in my xml file, no error.
If I use the (soon-to-be) legacy Apply-PnPProvisionningTemplate
command, template is applied without error.
Steps to reproduce
Use Invoke-PnPSiteTemplate
to apply a template with ClientSidePages node.
Expected behavior
Template applied without errors.
Environment details (development & target environment)
- OS Windows 10
- Additional details : Using PnP.PowerShell 0.3.33-nightly
Additional context
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (9 by maintainers)
I have tested the new PnP.PowerShell 1.2.0 and it’s now working like a charm. Thanks !
Hi @jansenbe, tried again this morning and NullReferenceException still happens. If comment the pnp:ClientSidePages node, provisionning ends without error.
I checked to update PnP.PowerShell to .34-nightly but the last version available is still .33-nightly : PSGallery
I’ll give another try as soon as .34 is available.