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

%3CLINGO-SUB%20id%3D%22lingo-sub-1098018%22%20slang%3D%22en-US%22%3EGet-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1098018%22%20slang%3D%22en-US%22%3E%3CP%3E1.%20From%20%3CA%20href%3D%22https%3A%2F%2Flookbook.microsoft.com%2Fdetails%2F34756b7e-e6f6-4327-ba4a-96494a50dca3%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ethis%3C%2FA%3E%20link%20we%20created%20the%20site%3C%2FP%3E%3CP%3E2.Then%20we%20run%20the%20script%20to%20get%20template%20for%20further%20customization%3C%2FP%3E%3CTABLE%20border%3D%221%22%3E%3CTBODY%3E%3CTR%3E%3CTD%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F164413iFBB3A43A976EDD37%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%221.PNG%22%20title%3D%221.PNG%22%20%2F%3E%3C%2FSPAN%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E3.While%20processing%20the%20script%20%22Client%20Side%20Page%20Contents%22%20it%20fails%20with%20Object%20not%20reference%2Cthen%20we%20exclude%20the%20Client%20Side%20page%20content%20with%20the%20script%20-%20there%20it%20works%20but%20all%20the%20images%20are%20omitted%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F164414iCB7370ABC44EC71D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222.PNG%22%20title%3D%222.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F254454%2Fget-pnpprovisioningtemplate-home-aspx-error%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ERef%20by%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20wanted%20all%20images%20and%20pages%20are%20get%20provisioned%20with%20template%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1098018%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPnP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1098191%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1098191%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F511452%22%20target%3D%22_blank%22%3E%40KanchanKumbhar%3C%2FA%3E%26nbsp%3B!%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20perhaps%20have%20a%20screenshot%20of%20the%20error%20message%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20Regards%3CBR%20%2F%3EOliwer%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1098213%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1098213%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345947%22%20target%3D%22_blank%22%3E%40oliwer_sjoberg%3C%2FA%3E%26nbsp%3B%3AHere%20is%20the%20screenshot%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20958px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F164426iDE28DE9A492A198F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%221.PNG%22%20title%3D%221.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1098282%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1098282%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F511452%22%20target%3D%22_blank%22%3E%40KanchanKumbhar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20seen%20this%20issue%20before%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20issue%20should%20have%20been%20resolved%20in%20the%203%2C4%20version%20of%20the%20PNP%20module.%26nbsp%3B%3C%2FP%3E%3CP%3ECould%20you%20try%20and%20update%20your%20powershell%20module%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20it%20still%20doesnt%20work%2C%20do%20you%20perhaps%20have%20targeted%20release%20in%20your%20tenant%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20Regards%3CBR%20%2F%3EOliwer%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1098379%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1098379%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345947%22%20target%3D%22_blank%22%3E%40oliwer_sjoberg%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20having%20latest%20version%20on%20PnP.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20do%20you%20mean%20by%20having%20targeted%20release%20in%20your%20tenant%3F%20Could%20you%20please%20elaborate%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1098488%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1098488%22%20slang%3D%22en-US%22%3E%3CP%3EI%20see%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F511452%22%20target%3D%22_blank%22%3E%40KanchanKumbhar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20mean%20this%26nbsp%3B%3C%2FP%3E%3COL%3E%3CLI%3E%3CP%3E%26nbsp%3B%3CSPAN%3EIn%26nbsp%3B%3C%2FSPAN%3Ethe%20admin%20center%2C%20go%20to%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ESettings%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%26gt%3B%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2Fp%2F%3Flinkid%3D2067339%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EOrganization%20profile%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Epage.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3ENext%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3ERelease%20preferences%3C%2FSTRONG%3E%2C%20select%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EEdit%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLI%3E%3C%2FOL%3E%3CP%3EWhat%20do%20you%20have%20activated%20there%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1098688%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1098688%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345947%22%20target%3D%22_blank%22%3E%40oliwer_sjoberg%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20settings%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20396px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F164477i90B733DA7A6E4ACF%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%221.PNG%22%20title%3D%221.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1100596%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1100596%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345947%22%20target%3D%22_blank%22%3E%40oliwer_sjoberg%3C%2FA%3E%26nbsp%3B%3A%3C%2FP%3E%3CP%3EI%20change%20the%20release%20preferences%20to%20%26nbsp%3BTargeted%20release%20for%20selected%20users%20(add%20my%20account)%2Cbut%20no%20use.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1100662%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1100662%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F511452%22%20target%3D%22_blank%22%3E%40KanchanKumbhar%3C%2FA%3E%26nbsp%3B!%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EInstrad%20of%20using%20the%20full%20path%20for%20the%20XML%2C%20does%20it%20work%20if%20you%20only%20type%20the%20file%20name%3F%20for%20example%20%22template.xml%22%20%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOr%20is%20it%20the%20same%20issue%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20it%20still%20fails%2C%20try%20and%20enable%20custom%20scripts%20in%20SharePoint%20to%20test%20if%20that%20makes%20a%20difference%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20RegardsOliwer%20Sj%C3%B6berg%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1100780%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1100780%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345947%22%20target%3D%22_blank%22%3E%40oliwer_sjoberg%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20so%20much!!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20enabling%20custom%20script%20%2CI%20could%20able%20to%20get%20template.%3C%2FP%3E%3CP%3EBut%26nbsp%3BI%20am%20getting%20error%20now%20while%20applying%20the%20template%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F164681iC053DFCB154242F6%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20alt%3D%221.PNG%22%20title%3D%221.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1100854%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1100854%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20making%20progress!%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F511452%22%20target%3D%22_blank%22%3E%40KanchanKumbhar%3C%2FA%3E%26nbsp%3B%20%3A)%3C%2Fimg%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ESeems%20like%20one%20value%20is%20null%2C%20could%20you%20provide%20me%20with%20the%20entire%20code%20you've%20typed%3F%26nbsp%3B%3CBR%20%2F%3ECould%20be%20a%20variable%20that%20is%20incorrect%20or%20an%20icorrect%20parameter.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKind%20Regards%3CBR%20%2F%3EOliwer%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1104123%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1104123%22%20slang%3D%22en-US%22%3E%3CP%3EGood%26nbsp%3BMorning%26nbsp%3B!!!!%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345947%22%20target%3D%22_blank%22%3E%40oliwer_sjoberg%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EToday%20I%20started%20script%20again%20to%20get%20the%20template%2C%20but%20unfortunately%20I%20got%20the%20same%20error%20object%20reference%20not%20found)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eplease%20find%20attachment%20for%20script%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGot%20below%20error%20while%20getting%20template%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20992px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F164991i34870D182B4246BD%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%221.PNG%22%20title%3D%221.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1104316%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1104316%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F345947%22%20target%3D%22_blank%22%3E%40oliwer_sjoberg%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20enabled%20the%20%22%3CSPAN%3ESet-PnPTraceLog%20-On%20-Level%20Debug%3C%2FSPAN%3E%22%3CSPAN%3E%26nbsp%3Band%20pl%20find%20below%20the%20logs%20-%26nbsp%3BIt%20seems%20it%20breaks%20at%20Retrieving%20current%20composed%20look...%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EPS%20C%3A%5CWindows%5Csystem32%26gt%3B%20Get-PnPProvisioningTemplate%20-Out%20%22C%3A%5Ctemp%5CtemplateIntran%0AetNews.xml%22%20-PersistBrandingFiles%20-PersistPublishingFiles%20%26gt%3B%20c%3A%5Ctemp%5Cpnplog.txt%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A19.2835%20%20%20%20%20%20%20%20%5BExtraction%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A19.2845%20%20%20%20%20%20%20%20%5BExtraction%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Base%20template%20available%3A%20SITEPAGEPUBLISHING0template%20%20%20%200ms%0A065192fb-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A19.2855%20%20%20%20%20%20%20%20%5BExtraction%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20ProgressDelegate%20registered%20%20%20%20%201ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A19.2855%20%20%20%20%20%20%20%20%5BExtraction%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20MessagesDelegate%20registered%20%20%20%20%201ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A19.2865%20%20%20%20%20%20%20%20%5BExtraction%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20PersistBrandingFiles%20is%20set%20to%20true%20%20%20%20%202ms%20%20%20%20%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A20.7556%20%20%20%20%20%20%20%20%5BRegional%20Settin%0Ags%5D%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A21.1086%20%20%20%20%20%20%20%20%5BRegional%20Settin%0Ags%5D%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%20353ms%20%20%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A21.1196%20%20%20%20%20%20%20%20%5BSupported%20UI%20La%0Anguages%5D%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb%0A-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A21.5066%20%20%20%20%20%20%20%20%5BSupported%20UI%20La%0Anguages%5D%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%20386ms%20%20%20065192fb%0A-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A21.5206%20%20%20%20%20%20%20%20%5BAudit%20Settings%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A21.8736%20%20%20%20%20%20%20%20%5BAudit%20Settings%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%20353ms%20%20%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A21.8856%20%20%20%20%20%20%20%20%5BSite%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A23.3337%20%20%20%20%20%20%20%20%5BSite%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Skipping%20OOTB%20role%20definition%20Full%20Control%20%20%20%20%20%201448ms%20%20065192fb%0A-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A23.3357%20%20%20%20%20%20%20%20%5BSite%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Skipping%20OOTB%20role%20definition%20Design%20%20%20%201450ms%20%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A23.3367%20%20%20%20%20%20%20%20%5BSite%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Skipping%20OOTB%20role%20definition%20Edit%20%20%20%20%20%201451ms%20%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A23.3377%20%20%20%20%20%20%20%20%5BSite%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Skipping%20OOTB%20role%20definition%20Contribute%20%20%20%20%20%20%20%201452ms%20%20065192fb%0A-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A23.3387%20%20%20%20%20%20%20%20%5BSite%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Skipping%20OOTB%20role%20definition%20Read%20%20%20%20%20%201453ms%20%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A23.3407%20%20%20%20%20%20%20%20%5BSite%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Skipping%20OOTB%20role%20definition%20Limited%20Access%20%20%20%201454ms%20%20065192fb%0A-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A23.5507%20%20%20%20%20%20%20%20%5BSite%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Processing%20Role%20Assignment%20Microsoft.SharePoint.Client.RoleAssig%0Anment%20%20%201665ms%20%20065192fb-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A23.5517%20%20%20%20%20%20%20%20%5BSite%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Processing%20Role%20Assignment%20Microsoft.SharePoint.Client.RoleAssig%0Anment%20%20%201666ms%20%20065192fb-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A23.5547%20%20%20%20%20%20%20%20%5BSite%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Processing%20Role%20Assignment%20Microsoft.SharePoint.Client.RoleAssig%0Anment%20%20%201669ms%20%20065192fb-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A23.5557%20%20%20%20%20%20%20%20%5BSite%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%201670ms%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A23.5688%20%20%20%20%20%20%20%20%5BFields%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A31.3802%20%20%20%20%20%20%20%20%5BFields%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%207810ms%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A31.4072%20%20%20%20%20%20%20%20%5BContent%20Types%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A33.4424%20%20%20%20%20%20%20%20%5BContent%20Types%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%202035ms%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A33.4565%20%20%20%20%20%20%20%20%5BList%20instances%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A41.1899%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A41.4159%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%20225ms%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A41.4169%20%20%20%20%20%20%20%20%5BList%20instances%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Adding%20list%3A%20Documents%20-%20Shared%20Documents%20%20%20%20%20%20%207960ms%0A065192fb-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A44.8921%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A45.1421%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%20250ms%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A45.1461%20%20%20%20%20%20%20%20%5BList%20instances%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Adding%20list%3A%20Events%20-%20Lists%2FEvents%20%20%20%20%20%2011689ms%20065192fb%0A-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A49.4554%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A49.6834%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%20228ms%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A49.6854%20%20%20%20%20%20%20%20%5BList%20instances%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Adding%20list%3A%20Form%20Templates%20-%20FormServerTemplates%0A16229ms%20065192fb-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A54.9027%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A55.1748%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%20272ms%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A30%3A55.1798%20%20%20%20%20%20%20%20%5BList%20instances%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Adding%20list%3A%20Site%20Assets%20-%20SiteAssets%20%20%2021723ms%20065192fb%0A-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A02.4732%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A02.7512%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%20278ms%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A02.7522%20%20%20%20%20%20%20%20%5BList%20instances%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Adding%20list%3A%20Site%20Pages%20-%20SitePages%20%20%20%20%2029296ms%20065192fb%0A-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A06.6195%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A06.8545%20%20%20%20%20%20%20%20%5BGet%20Security%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%20235ms%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A06.8565%20%20%20%20%20%20%20%20%5BList%20instances%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Adding%20list%3A%20Style%20Library%20-%20Style%20Library%20%20%20%20%20%2033400ms%0A065192fb-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A06.8585%20%20%20%20%20%20%20%20%5BList%20instances%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%2033402ms%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A06.8855%20%20%20%20%20%20%20%20%5BFeatures%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A07.6215%20%20%20%20%20%20%20%20%5BFeatures%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%20736ms%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A07.6536%20%20%20%20%20%20%20%20%5BComposed%20Looks%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A07.6546%20%20%20%20%20%20%20%20%5BComposed%20Looks%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BInformation%5D%20%20%20Retrieving%20current%20composed%20look%20%20%20%20%20%20%20%201ms%0A065192fb-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A10.0157%20%20%20%20%20%20%20%20%5BComposed%20Looks%5D%0A%20%20%20%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%202362ms%20%20065192fb-5393-4e%0Ae4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A10.0297%20%20%20%20%20%20%20%20%5BPage%20Contents%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A10.6957%20%20%20%20%20%20%20%20%5BPage%20Contents%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%20665ms%20%20%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A10.7057%20%20%20%20%20%20%20%20%5BClient%20Side%20Pag%0Ae%20Contents%5D%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20started%20%20%20%200ms%20%20%20%20%20065192fb%0A-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A11.7318%20%20%20%20%20%20%20%20%5BClient%20Side%20Pag%0Ae%20Contents%5D%20%20%20%20%20%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%201025ms%20%20065192fb%0A-5393-4ee4-ac57-ee946bbde7e0%0Apowershell.exe%20Information%3A%200%20%3A%202020-01-13%2010%3A31%3A11.7328%20%20%20%20%20%20%20%20%5BExtraction%5D%0A%5B14%5D%20%20%20%20%5BDebug%5D%20Code%20execution%20scope%20ended%20%20%20%20%20%2052448ms%20065192fb-5393-4ee4-ac57-%0Aee946bbde7e0%0AGet-PnPProvisioningTemplate%20%3A%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%0Aobject.%0AAt%20line%3A1%20char%3A1%0A%2B%20Get-PnPProvisioningTemplate%20-Out%20%22C%3A%5Ctemp%5CtemplateIntranetNews.xml%22%20-%20...%0A%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%0A%20%20%20%20%2B%20CategoryInfo%20%20%20%20%20%20%20%20%20%20%3A%20WriteError%3A%20(%3A)%20%5BGet-PnPProvisioningTemplate%5D%2C%20N%0A%20%20%20ullReferenceException%0A%20%20%20%20%2B%20FullyQualifiedErrorId%20%3A%20EXCEPTION%2CSharePointPnP.PowerShell.Commands.Prov%0A%20%20%20isioning.GetProvisioningTemplate%0A%0APS%20C%3A%5CWindows%5Csystem32%26gt%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1112255%22%20slang%3D%22en-US%22%3ERe%3A%20Get-PnPProvisioningTemplate%20failing%20with%20Object%20reference%20not%20set%20to%20an%20instance%20of%20an%20object%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1112255%22%20slang%3D%22en-US%22%3EDo%20you%20have%20any%20idea%20about%20this%20error%3F%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

1. From this link we created the site

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

1.PNG

 

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

2.PNG

Ref by

 

I wanted all images and pages are get provisioned with template

 

13 Replies
Highlighted

Hello@KanchanKumbhar ! 

Do you perhaps have a screenshot of the error message? 

 

Kind Regards
Oliwer 

Highlighted
Highlighted

@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 

Highlighted

@oliwer_sjoberg 

I am having latest version on PnP.

 

What do you mean by having targeted release in your tenant? Could you please elaborate?

Highlighted

I see@KanchanKumbhar 

 

I mean this 

  1.  In the admin center, go to the Settings > Organization profile page.

  2. Next to Release preferences, select Edit.

What do you have activated there? 

Highlighted
Highlighted

@oliwer_sjoberg :

I change the release preferences to  Targeted release for selected users (add my account),but no use.

Highlighted

Hello@KanchanKumbhar ! 

Instrad of using the full path for the XML, does it work if you only type the file name? for example "template.xml" ? 

 

Or is it the same issue? 

 

If it still fails, try and enable custom scripts in SharePoint to test if that makes a difference 

 

Kind Regards
Oliwer Sjöberg

Highlighted

Hello@oliwer_sjoberg 

Thank you so much!!

 

After enabling custom script ,I could able to get template.

But I am getting error now while applying the template

 

1.PNG

Highlighted

We are making progress! @KanchanKumbhar  :) 

Seems like one value is null, could you provide me with the entire code you've typed? 
Could be a variable that is incorrect or an icorrect parameter. 

 

Kind Regards
Oliwer 

Highlighted

Good Morning !!!!@oliwer_sjoberg 

 

Today I started script again to get the template, but unfortunately I got the same error object reference not found)

 

please find attachment for script

 

Got below error while getting template

 

1.PNG

Highlighted

@oliwer_sjoberg 

I have enabled the "Set-PnPTraceLog -On -Level Debug" and pl find below the logs - It seems it breaks at Retrieving current composed look...

 

PS C:\Windows\system32> Get-PnPProvisioningTemplate -Out "C:\temp\templateIntran
etNews.xml" -PersistBrandingFiles -PersistPublishingFiles > c:\temp\pnplog.txt
powershell.exe Information: 0 : 2020-01-13 10:30:19.2835        [Extraction]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:19.2845        [Extraction]
[14]    [Debug] Base template available: SITEPAGEPUBLISHING0template    0ms
065192fb-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:19.2855        [Extraction]
[14]    [Debug] ProgressDelegate registered     1ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:19.2855        [Extraction]
[14]    [Debug] MessagesDelegate registered     1ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:19.2865        [Extraction]
[14]    [Debug] PersistBrandingFiles is set to true     2ms     065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:20.7556        [Regional Settin
gs]     [14]    [Debug] Code execution scope started    0ms     065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:21.1086        [Regional Settin
gs]     [14]    [Debug] Code execution scope ended      353ms   065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:21.1196        [Supported UI La
nguages]        [14]    [Debug] Code execution scope started    0ms     065192fb
-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:21.5066        [Supported UI La
nguages]        [14]    [Debug] Code execution scope ended      386ms   065192fb
-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:21.5206        [Audit Settings]
        [14]    [Debug] Code execution scope started    0ms     065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:21.8736        [Audit Settings]
        [14]    [Debug] Code execution scope ended      353ms   065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:21.8856        [Site Security]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:23.3337        [Site Security]
[14]    [Debug] Skipping OOTB role definition Full Control      1448ms  065192fb
-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:23.3357        [Site Security]
[14]    [Debug] Skipping OOTB role definition Design    1450ms  065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:23.3367        [Site Security]
[14]    [Debug] Skipping OOTB role definition Edit      1451ms  065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:23.3377        [Site Security]
[14]    [Debug] Skipping OOTB role definition Contribute        1452ms  065192fb
-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:23.3387        [Site Security]
[14]    [Debug] Skipping OOTB role definition Read      1453ms  065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:23.3407        [Site Security]
[14]    [Debug] Skipping OOTB role definition Limited Access    1454ms  065192fb
-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:23.5507        [Site Security]
[14]    [Debug] Processing Role Assignment Microsoft.SharePoint.Client.RoleAssig
nment   1665ms  065192fb-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:23.5517        [Site Security]
[14]    [Debug] Processing Role Assignment Microsoft.SharePoint.Client.RoleAssig
nment   1666ms  065192fb-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:23.5547        [Site Security]
[14]    [Debug] Processing Role Assignment Microsoft.SharePoint.Client.RoleAssig
nment   1669ms  065192fb-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:23.5557        [Site Security]
[14]    [Debug] Code execution scope ended      1670ms  065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:23.5688        [Fields]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:31.3802        [Fields]
[14]    [Debug] Code execution scope ended      7810ms  065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:31.4072        [Content Types]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:33.4424        [Content Types]
[14]    [Debug] Code execution scope ended      2035ms  065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:33.4565        [List instances]
        [14]    [Debug] Code execution scope started    0ms     065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:41.1899        [Get Security]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:41.4159        [Get Security]
[14]    [Debug] Code execution scope ended      225ms   065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:41.4169        [List instances]
        [14]    [Debug] Adding list: Documents - Shared Documents       7960ms
065192fb-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:44.8921        [Get Security]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:45.1421        [Get Security]
[14]    [Debug] Code execution scope ended      250ms   065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:45.1461        [List instances]
        [14]    [Debug] Adding list: Events - Lists/Events      11689ms 065192fb
-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:49.4554        [Get Security]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:49.6834        [Get Security]
[14]    [Debug] Code execution scope ended      228ms   065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:49.6854        [List instances]
        [14]    [Debug] Adding list: Form Templates - FormServerTemplates
16229ms 065192fb-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:54.9027        [Get Security]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:55.1748        [Get Security]
[14]    [Debug] Code execution scope ended      272ms   065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:30:55.1798        [List instances]
        [14]    [Debug] Adding list: Site Assets - SiteAssets   21723ms 065192fb
-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:02.4732        [Get Security]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:02.7512        [Get Security]
[14]    [Debug] Code execution scope ended      278ms   065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:02.7522        [List instances]
        [14]    [Debug] Adding list: Site Pages - SitePages     29296ms 065192fb
-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:06.6195        [Get Security]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:06.8545        [Get Security]
[14]    [Debug] Code execution scope ended      235ms   065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:06.8565        [List instances]
        [14]    [Debug] Adding list: Style Library - Style Library      33400ms
065192fb-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:06.8585        [List instances]
        [14]    [Debug] Code execution scope ended      33402ms 065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:06.8855        [Features]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:07.6215        [Features]
[14]    [Debug] Code execution scope ended      736ms   065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:07.6536        [Composed Looks]
        [14]    [Debug] Code execution scope started    0ms     065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:07.6546        [Composed Looks]
        [14]    [Information]   Retrieving current composed look        1ms
065192fb-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:10.0157        [Composed Looks]
        [14]    [Debug] Code execution scope ended      2362ms  065192fb-5393-4e
e4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:10.0297        [Page Contents]
[14]    [Debug] Code execution scope started    0ms     065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:10.6957        [Page Contents]
[14]    [Debug] Code execution scope ended      665ms   065192fb-5393-4ee4-ac57-
ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:10.7057        [Client Side Pag
e Contents]     [14]    [Debug] Code execution scope started    0ms     065192fb
-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:11.7318        [Client Side Pag
e Contents]     [14]    [Debug] Code execution scope ended      1025ms  065192fb
-5393-4ee4-ac57-ee946bbde7e0
powershell.exe Information: 0 : 2020-01-13 10:31:11.7328        [Extraction]
[14]    [Debug] Code execution scope ended      52448ms 065192fb-5393-4ee4-ac57-
ee946bbde7e0
Get-PnPProvisioningTemplate : Object reference not set to an instance of an
object.
At line:1 char:1
+ Get-PnPProvisioningTemplate -Out "C:\temp\templateIntranetNews.xml" - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (:) [Get-PnPProvisioningTemplate], N
   ullReferenceException
    + FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Prov
   isioning.GetProvisioningTemplate

PS C:\Windows\system32>

 

Highlighted