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 https://lookbook.microsoft.com/details/34756b7e-e6f6-4327-ba4a-96494a50dca3 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

https://sharepoint.stackexchange.com/questions/254454/get-pnpprovisioningtemplate-home-aspx-error

 

I wanted all images and pages are get provisioned with template

 

13 Replies

      • oliwer_sundgren's avatar
        oliwer_sundgren
        Iron 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