This article refers to legacy products, components or features. Therefore, the content in this article is offered "as is" and will no longer be updated. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.


After installing the K2 blackpearl 0807 Update KB000450, when adding a Count aggregation in a Line Rule that returns a list and the return type of the item being counted is not a number the error ‘Unable to compare values that are not of the same type’ is displayed.

Error Scenario 

Note: The circumstances described in this article are one scenario under which this issue may, or is known to occur. The description is intended to be specific to the scenario described and does not take into account all possible scenarios or circumstances.

In the Line Rule add the following: “COUNT [SmartObject.GETLIST.Name] > 2”


Note: If there are more than 2 items in the SmartObject list, this rule will evaluate as true.

In runtime the error: “Unable to compare values that is not of the same type” is displayed.
Currently, this functions if the “=” and the “<>” comparison operator is used.

Error Resolution

This Hotfix is contained within the latest K2 blackpearl 0807 Update. Install the update package to resolve the error.

The latest K2 blackpearl 0807 Update is available as an independent installation package which can be found here: http://portal.k2.com/downloads/bp/default.aspx