Forum Discussion

KanchanKumbhar's avatar
KanchanKumbhar
Copper Contributor
Jan 09, 2020

Get-PnPProvisioningTemplate failing with Object reference not set to an instance of an object

1. From this link we created the site

2.Then we run the script to get template for further customization

 

3.While processing the script "Client Side Page Contents" it fails with Object not reference,then we exclude the Client Side page content with the script - there it works but all the images are omitted

Ref by

 

I wanted all images and pages are get provisioned with template

 

      • oliwer_sundgren's avatar
        oliwer_sundgren
        Steel Contributor

        KanchanKumbhar 

         

        I've seen this issue before

         

        This issue should have been resolved in the 3,4 version of the PNP module. 

        Could you try and update your powershell module? 

         

        If it still doesnt work, do you perhaps have targeted release in your tenant? 

         

        Kind Regards
        Oliwer 

Resources