SOLVED

Welcome pages and lists and PnP

MVP

 

In one of my environment someone has set the welcome page of the site to:

 

https://tenant.sharepoint.com/clients/Lists/ClientList/AllItems.aspx

 

Is this a valid thing to do?

 

When I tried to export this site as a PnP template I got  the following error:

 

 

Get-PnPProvisioningTemplate : Cannot invoke method or retrieve property from null object. Object returned by the following call stack is null.
"ListItemAllFields
"
At D:\Temp\Powershell\GetPnPTemplateClients.ps1:9 char:1
+ Get-PnPProvisioningTemplate -Web $sourceWeb -Out "d:\Temp\DMPowershel ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Get-PnPProvisioningTemplate], ServerException
    + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.GetProvisioningTemplate

 

Is this something PnP should handle?

 

 

1 Reply
best response confirmed by Pieter Veenstra (MVP)
Solution

I found the solution. I can exlude the Pages Contents from my template.

 

For more details see:

 

https://veenstra.me.uk/2017/03/03/office-365-pnp-exporting-sites-with-welcome-pages-not-set-to-a-pag...

1 best response

Accepted Solutions
best response confirmed by Pieter Veenstra (MVP)
Solution

I found the solution. I can exlude the Pages Contents from my template.

 

For more details see:

 

https://veenstra.me.uk/2017/03/03/office-365-pnp-exporting-sites-with-welcome-pages-not-set-to-a-pag...

View solution in original post