This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.

Issue

When you access the error profiles in the Management page an error will appear:

"An error occurred in the K2_Management Service Instance. Object cannot be cast from DBNull to other types."

Symptoms

This is related to a new column added to: [K2].[Server].[ErrorProfile]
Column name: [ThresholdRule]

If the value is NULL then you cannot load the error profiles.

Resolution

As a workaround, please update the ThresholdRule using the following script:

Update [K2].[Server].[ErrorProfile]

Set ThresholdRule = -1

Where ID = [ID]

The official fix will be included in the next update/FP.