Can't compare unknown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
31-12-19 11:10 PM
Would anyone help me solve this issue? I am trying to set a range condition in BP process to throw an exception if the number is less than 1 or greater than 99. Under choice stage I input the following: [Data.Quantity]>99 OR [Data.Quantity]<1, while trying to validate the expression I get the message "Can't Compare Unknown".
Thanks.
------------------------------
Vladimir Gourov
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-20 05:03 AM
I just verified at my end. The expression you specified is valid. Please ensure "Data" collection has a column called "Quantity". And the "Data" collection is exposed properly.
Best regards,
Krishna
------------------------------
Krishna A
Blue Prism
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-20 02:20 PM
------------------------------
Raúl Hernández
RPA Developer
Millicom
America/El_Salvador
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
02-01-20 03:11 PM
Thanks everyone for your input. Yes, I have verified the column name and the data type, everything matches. The strange thing to me is that BP doesn't like the ">" and "<" signs for whatever reason. When I use "=" instead, then the expression is shown as valid.
------------------------------
Vladimir Gourov
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-01-20 03:10 PM
------------------------------
Tom Maloney
Architect
nBotix, Inc.
America/Chicago
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
03-01-20 03:54 PM
------------------------------
Vladimir Gourov
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-01-20 06:14 AM
The issue was: Since [Data] collection is a dynamic collection , it's columns don't have any fixed datatype. Hence all the data coming into it is automatically considered as TEXT.
Thus you need to convert the text to number before comparing.
------------------------------
Vivek Goel
RPA Architect
Asia/Singapore
https://www.rpatools.com/
"If you like this post, please press the "Recommend" Button.
------------------------------
