Choice Stage - Cannot Compare Unknown
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
16-07-19 09:40 PM
Hi all,
What exactly does "Cannot compare unknown" error message mean within a choice stage? I have built a process that runs a SQL query and sends the results to a collection with two columns. Column X is text, Column Y is a number. In my choice stage, I have 6 conditions that loop through the collection and perform a calc action if any one of them is true. All of the choices that are a single condition work fine (ie. X = "word") but on more complex ones involving numbers (X = "word" AND Y>1) I get that error. I get the same error if I have Y>1 alone as a condition as well. It seems as if the expression only considers 1 and 0 to be valid values, anything else returns that error. Where am I going wrong?
Thanks!
What exactly does "Cannot compare unknown" error message mean within a choice stage? I have built a process that runs a SQL query and sends the results to a collection with two columns. Column X is text, Column Y is a number. In my choice stage, I have 6 conditions that loop through the collection and perform a calc action if any one of them is true. All of the choices that are a single condition work fine (ie. X = "word") but on more complex ones involving numbers (X = "word" AND Y>1) I get that error. I get the same error if I have Y>1 alone as a condition as well. It seems as if the expression only considers 1 and 0 to be valid values, anything else returns that error. Where am I going wrong?
Thanks!
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
17-07-19 04:36 AM
Thank you for posting.
> but on more complex ones involving numbers (X = "word" AND Y>1) I get that error. I get the same error if I have Y>1 alone as a condition as well.
Based on this information, the problem should be in the value of "Y". Please check the following points.
> What exactly does "Cannot compare unknown" error message mean within a choice stage?
I couldn't find the error message in our previous cases. If you share the process/object for us to replicate the same error, I will take a look at this issue a little bit more.
Regards,
Nobu
------------------------------
Nobuhiro Tokushige
Product Specialist
Blue Prism
Australia/Sydney
------------------------------
> but on more complex ones involving numbers (X = "word" AND Y>1) I get that error. I get the same error if I have Y>1 alone as a condition as well.
Based on this information, the problem should be in the value of "Y". Please check the following points.
- Which value was set in Y
- What data type was set in the value Y
> What exactly does "Cannot compare unknown" error message mean within a choice stage?
I couldn't find the error message in our previous cases. If you share the process/object for us to replicate the same error, I will take a look at this issue a little bit more.
Regards,
Nobu
------------------------------
Nobuhiro Tokushige
Product Specialist
Blue Prism
Australia/Sydney
------------------------------
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
17-07-19 10:15 AM
Could be that the SQL results contain NULL values, and Blue Prism doesn't have the concept of NULL.
Suggest changing collection Column Y to text data type and the SQL to use ISNULL(FieldA, '') to ensure null values are never returned.
------------------------------
John Carter
Professional Services
Blue Prism
------------------------------
Suggest changing collection Column Y to text data type and the SQL to use ISNULL(FieldA, '') to ensure null values are never returned.
------------------------------
John Carter
Professional Services
Blue Prism
------------------------------
