Add-PnPNavigationNode Navigation Node Collection is null
See original GitHub issueI 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:
- Created 3 years ago
- Comments:14 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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