pnp / PnP-PowerShell

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

Get Moderns Pages and ClientSide Webparts fails "Object reference not set to an instance of an object" #2294

Open Benny183 opened 5 years ago

Benny183 commented 5 years ago

Reporting an Issue or Missing Feature

Issue

Expected behavior

Get Page or WebPart Properties

Actual behavior

If you try to get a modern page or clientsidewebpart it fails with the message:

Get-PnPClientSidePage : Object reference not set to an instance of an object

even if you try to export a provisioning template it fails with the same error message:

PS C:\tmp> Get-PnPProvisioningTemplate -Out c:\tmp\test.xml -Handlers PageContents Get-PnPProvisioningTemplate : Object reference not set to an instance of an object.

Seems something has changed in the backend of Microsoft?

Steps to reproduce behavior

  1. Connect to Site Collection
  2. Get-PnPClientSidePage -Identity "Home.aspx"

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

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

3.12.1908.1

How did you install the PnP-PowerShell Cmdlets?

ghost commented 5 years ago

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