sp-dev-provisioning-templates icon indicating copy to clipboard operation
sp-dev-provisioning-templates copied to clipboard

Apply-PnPTenantTemplate : Object reference not set to an instance of an object.

Open AkashAKale opened this issue 4 years ago • 1 comments

Hi ,

All of sudden I am getting an error while executing this command Apply-PnPTenantTemplate. Please see error details below Apply-PnPTenantTemplate : Object reference not set to an instance of an object. At D:\Script\LMSiteProvisioningToolsAndMaintenance.ps1:29 char:5

  • Apply-PnPTenantTemplate -Path $path
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : WriteError: (:) [Apply-PnPTenantTemplate], NullReferenceException
    • FullyQualifiedErrorId : EXCEPTION,SharePointPnP.PowerShell.Commands.Provisioning.Tenant.ApplyTenantTemplate

AkashAKale avatar Mar 11 '20 15:03 AkashAKale

I'm getting the same. I debugged the code and found it's because of a null object for a parent navigation node. My nodes are in different languages, which is causing an issue.

robgarrett avatar Apr 12 '21 22:04 robgarrett