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
Connect to Site Collection
Get-PnPClientSidePage -Identity "Home.aspx"
Which version of the PnP-PowerShell Cmdlets are you using?
[ ] PnP PowerShell for SharePoint 2013
[ ] PnP PowerShell for SharePoint 2016
[x] PnP PowerShell for SharePoint Online
What is the version of the Cmdlet module you are running?
3.12.1908.1
How did you install the PnP-PowerShell Cmdlets?
[ ] MSI Installed downloaded from GitHub
[x] Installed through the PowerShell Gallery with Install-Module
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
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?