Network Management
All Nodes Tree - Server Error: Unable to cast object of type ‘System.DBNull’ to type ‘System.String’
All Nodes Tress displays the error message Server Error: Unable to cast object of type ‘System.DBNull’ to type ‘System.String’.
First published date
Last published date
Overview
All Nodes Tress is showing the following error message:
Server Error: Unable to cast object of type ‘System.DBNull’ to type ‘System.String’.
Example "ALL Nodes" Image:
Product section
Cause
Resolution
-
From the Orion server, launch Orion Database Manager (Start > All Programs > SolarWinds Orion > Advanced Features).
-
From the Orion Database Manager, click on Add Default Server.
-
Expand SQL server and look for the Orion database.
-
Expand Orion Database and look for NodesData table.
-
Right click NodesData Table and select Query Table.
-
Click on Execute Query
-
Identify which columns contains the NULL values. List those column name.
For Example: If you see NULL on the columns SysObjectID, Contact, IOSImage, you should update those NULL values to blank. This can be done by running the query below:
Update NodesData set SysObjectID = ('') where SysObjectID is Null
Update NodesData set Contact = ('') where Contact is Null
Update NodesData set IOSImage = ('') where IOSImage is Null - However, if the NULL values are found in the IP_Address column, it's best to delete the entire row entry and re-add the Node if needed.
If the issue shows on your Virtualization - Summary follow these steps:
Example "Virtualization - Summary" Image:
When clicking on "View Details", the page shows:
Unexpected Website Error
Unable to cast object of type 'System.DBNull' to type 'System.String'.
-
From the Orion server, launch Orion Database Manager (Start > All Programs > SolarWinds Orion > Advanced Features).
-
From the Orion Database Manager, click on Add Default Server.
-
Expand SQL server and look for the Orion database.
-
Expand Orion Database and look for VIM_Host table.
-
Click on Execute Query
-
Identify which column contains the NULL value. example: HostName
-
Click Enable table editing
-
Delete row