Applications Systems
WPM Error: Unable to cast object of type 'System.DBNull' to type 'System.String'
This article provides brief information and steps to resolve the following error when adding transactions to a WPM Player: Unable to cast object of type 'System.DBNull' to type 'System.String'
First published date
Last published date
Overview
This article discusses brief information and needed steps to correct the following error message when adding transactions to a WPM Player:
Unable to cast object of type 'System.DBNull' to type 'System.String'
Product section
Cause
The issue is caused by an Orion Migration to a new Server with a new Hostname/IP Address.
This causes a new entry to be created in the Engines table but it doesn't update the WPM Agents table with the new Engine ID.
Resolution
- Open Database Manager.
- Right-click the Orion Database, and then select New Query.
- Paste the following in:
SELECT * FROM Engines
- Take note of the [EngineID] of your Primary Polling Engine.
- Now run the following query (Please note this will update the WPM Agents to all talk to the Primary).
UPDATE [SEUM_Agents] SET [PollingEngineID] = X --Where X is your primary ID
-
If you have WPM Player which also talks to Additional Polling Engines then do the following:
SELECT * FROM [SEUM_Agents]
-
Enable Table Editing.
-
Change the [PollingEngineID] of the Players who need to communicate with Additional Polling Engines as opposed to Main Polling Engine.