Pnp-powershell: Get-PnPClientSideComponent -Page Home returns empty after provisioning site until site is edited and republished

Created on 29 May 2019  路  3Comments  路  Source: pnp/PnP-PowerShell

Reporting an Issue or Missing Feature

Reporting an Issue

Expected behavior

Get-PnPClientSideComponent -Page Home returns list of web parts with properties on the home page

Actual behavior

Get-PnPClientSideComponent -Page Home returns empty after provisioning site until site is edited and republished

image

Steps to reproduce behavior

New-PnPTenantSite -Title "$SiteName"
-Url "https://$mydomain.sharepoint.com/sites/$SiteURL" -Owner "$AdminUser"
-TimeZone 11 -Template "STS#3"
-Lcid 1033 -RemoveDeletedSite
-StorageQuota 10000 -StorageQuotaWarningLevel 8000
-Wait

Start-Sleep -s 60

Connect-PnPOnline -Url "https://$mydomain.sharepoint.com/sites/$SiteURL" -Credentials:SharePointAdmin

Get-PnPClientSideComponent -Page Home

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?

Name Version
---- -------
SharePointPnPPowerShellOnline 3.9.1905.3
SharePointPnPPowerShellOnline 3.8.1904.0
SharePointPnPPowerShellOnline 3.7.1903.0
SharePointPnPPowerShellOnline 3.6.1902.0

How did you install the PnP-PowerShell Cmdlets?

  • [ ] MSI Installed downloaded from GitHub
  • [X ] Installed through the PowerShell Gallery with Install-Module
  • [ ] Other means
Needs

All 3 comments

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

I'm also looking to find a resolution on this. The details comes up for a page AFTER I republish it, even on a OOB page.

Name Version
---- -------
Microsoft.Online.SharePoint.PowerShell 16.0.8316.0
SharePointPnPPowerShellOnline 3.12.1908.1

Still having the same issue with PNP version 3.13.1909.0 (9 sept 2019)
So only after republishing the page, it will return the client side components on the page.

Was this page helpful?
0 / 5 - 0 ratings