Welcome pages and lists and PnP



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


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.
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)

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


For more details see: