question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add-PnPNavigationNode Navigation Node Collection is null

See original GitHub issue

I have installed new PowerShell version (after a painful experience since older version didn’t want to uninstall), as per advised pnp/pnpframework#129. I tried this command but still failed. Copying @jansenbe. Thanks in advance for your help. Really thankful for PNP! 😃

Add-PnPNavigationNode -Title "Privacy Policy" -Url "http://www.company.com/privacy/" -Location "Footer"

Error obtained: Add-PnPNavigationNode: Navigation Node Collection is null

Get-PnPException Message : Navigation Node Collection is null Stacktrace : at PnP.PowerShell.Commands.Branding.AddNavigationNode.ExecuteCmdlet() at PnP.PowerShell.Commands.PnPSharePointCmdlet.ProcessRecord() ScriptLineNumber : 1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
erwinvanhunencommented, Jan 28, 2021

It seems that settings the logo first will not produce the required navigation node structure. This is handled in the PnP Framework so I will move this issue to the PnP Framework repository for further investigation.

0reactions
github-actions[bot]commented, Apr 7, 2021

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add-PnPNavigationNode Navigation Node Collection is null
I have installed new PowerShell version (after a painful experience since older version didn't want to uninstall), as per advised #129.
Read more >
Add-PnPNavigationNode | PnP PowerShell
-PreviousNode. Specifies the navigation node after which the new navigation node will appear in the navigation node collection. Type: NavigationNodePipeBind ...
Read more >
powershell - The collection has not been initialized. It ...
Try: Connect-PnPOnline -Url $siteURL -Credentials $PSCredentials $nodes = Get-PnPNavigationNode foreach($node in $nodes){ if($node.title -eq ...
Read more >
Add a node to the top navigation bar on site collection level ...
The issue you are facing is because you are using the default constructor of SPNavigationNode object which has 2 arguments.
Read more >
Get, Add And Remove Navigation Using PnP-PowerShell
Here I am going to describe about that how to add,retrieve and delete the SharePoint navigation menu using PowerShell.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found