SharePoint/sp-dev-provisioning-templates

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

Opened this issue · 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

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.