Network Management

Given key is not present in the dictionary NPM reference

Editing a node throws an error, "Given key is not present in the dictionary".

First published date

10/29/2018 6:08 PM

Last published date

6/13/2019 7:50 AM

Overview

The following error occurs when you try to navigate to the Edit Node page.

Given key is not present in the dictionary.

Additionally, the node is not polling.

Product section

Orion Platform

Cause

There is an issue with the credential assignments within the database.
The node is set to either SNMP or WMI polling method and doesn't have the needed credentials entry associated with it in the NodeSettings table.

Resolution

  1. Open Database Manager.
  2. Go to the NodeSettings table and locate the entries related to the node that is having the issue.
  3. Validate that it has the needed credentials for the polling type there.
    • If it is WMI, it needs an entry in that table for WMI credentials.   
    • If it is SNMP, it needs an entry in that table for SNMP credentials.
  4. If you find that the credentials entry is not in that table for the node, you can do one of two things:
    • Delete and re-add the node.
    • Change the ObjectSubType in the Nodes view (or the NodesData table) to ICMP.  At that point you should be able to hit the edit nodes page and change it back to WMI/SNMP and enter the needed credentials.