pnp / PnP-PowerShell

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

Get-PnPClientSidePage and Set-PnpClientSidePage fails after editing the page #1801

Open nordtorp opened 5 years ago

nordtorp commented 5 years ago

When using the clientsidepage CmdLets it works perfectly fine until a user decides to edit the page and re-publish.

hereafter the below error is shown:

Get-PnPClientSidePage "home.aspx" Get-PnPClientSidePage : Object reference not set to an instance of an object. At line:1 char:1

I was trying to disable comments - and it worked fine until I wanted to redo the event - and edited the page to enable it again. Then the above error is thrown

Reporting an Issue or Missing Feature

Get-PnPClientSidePage and Set-PnPClientSidePage fails after user edited the page.

Steps to reproduce behavior

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

How did you install the PnP-PowerShell Cmdlets?

pauldalyii commented 5 years ago

FWIW, I recently starting seeing this with 2.27.1806.1 as well, but only with certain tenants.

jansenbe commented 5 years ago

This is because the new page header functionality started to hit targeted release tenants and the page header logic was not updated. This has been fixed in version 3.4.1812.1 from PnP sites core and the corresponding PS build will follow today

guillaume-kizilian commented 5 years ago

I feel like I still have the issue. @nordtorp can you confirm it fixed the issue?