Network Management

IPAM Unexpected Website Error on Edit DHCP Server in IPAM

When editing a DHCP server, an Unexpected Website Error occurs. The details state "The given key was not present in the dictionary".

First published date

10/3/2025 7:27 AM

Last published date

10/3/2025 3:35 PM

Overview

  • when editing DHCP server, an Unexpected Website Error occurs
  • When using the local web admin account, editing of DHCP server does not load
  • The OrionWeb.log in C:\ProgramData\SolarWinds\Logs\Orion on the SolarWinds Platform server shows the below error:

ERROR ASP.global_asax - (null) Application_Error(e1b6bc5b394c40789da3e3bf93420bb4)

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.

Product section

IP Address Manager

Cause

The added IPAM DHCP servers were not first added as nodes in the SolarWinds Platform. Since related SolarWinds Platform nodes do not exist, those servers are not shown on the UI, so the removal is done via SWQL Studio.

Resolution

  1. Take a backup of your database (IMPORTANT!).
  2. Install SWQL Studio on your SolarWinds Server. Please refer to this article: Download the SolarWinds Orion SDK and start using SWQL.
  3. Log in to SWQL Studio using your local web admin account.
  4. Try to find the missing nodes for the added IPAM DHCP Servers using the SWQL query below:

 

-- Scripts are not supported under any SolarWinds support program or service.
-- Scripts are provided AS IS without warranty of any kind. SolarWinds further
-- disclaims all warranties including, without limitation, any implied warranties
-- of merchantability or of fitness for a particular purpose. The risk arising
-- out of the use or performance of the scripts and documentation stays with you.
-- In no event shall SolarWinds or anyone else involved in the creation,
-- production, or delivery of the scripts be liable for any damages whatsoever
-- (including, without limitation, damages for loss of business profits, business
-- interruption, loss of business information, or other pecuniary loss) arising
-- out of the use of or inability to use the scripts or documentation.

SELECT DISTINCT B.FriendlyName, A.FoundAddress, B.GroupId, A.NodeId AS OrionNodeIdAssignedToDhcpServer, ORN.NodeId as OrionNodeId FROM IPAM.DhcpServer A LEFT JOIN Orion.Nodes ORN on ORN.NodeId=A.NodeId JOIN IPAM.GroupNode B ON A.GroupId = B.GroupId WHERE B.Address <> '' AND ORN.NodeId IS NULL
  1. Take note of the DHCP Server Group ID/s.
  2. Still in the SWQL Studio, expand IPAM > IPAMDhcpDnsManagement.
  3. Right-click on DeleteDhcpServer and select ‘Invoke…’

  1. In the groupId field, put the DHCP server group ID from the SWQL query above.
  2. Afterward, check if the edit DHCP dialog opens properly.