Compare values from 2 collections A vs B
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-04-21 06:52 AM
Hi, I am not sure if questions can be answered 1 time only or more, so I am raising a new one in regards to the below link for similar but as follow -up,
thank you for your time
https://community.blueprism.com/communities/community-home/digestviewer/view-question?ContributedContentKey=9e39565b-7257-417f-8953-0a4a4eb7e707&CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&tab=d...
I am adding the current set up with each stage screen shot and final screen shot with exception, instead of checking for the 2 mismatch lines...
I think I didn't add the formula correctly, but I cannot see where the error is, or if the formula is ok, I cannot think what I should include in this?
I hope you can help, thank you
thank you for your time
https://community.blueprism.com/communities/community-home/digestviewer/view-question?ContributedContentKey=9e39565b-7257-417f-8953-0a4a4eb7e707&CommunityKey=3743dbaa-6766-4a4d-b7ed-9a98b6b1dd01&tab=d...
I am adding the current set up with each stage screen shot and final screen shot with exception, instead of checking for the 2 mismatch lines...
I think I didn't add the formula correctly, but I cannot see where the error is, or if the formula is ok, I cannot think what I should include in this?
I hope you can help, thank you
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-04-21 11:07 AM
Hi Lorenzo,
If each collection row needs to be exactly the same, i.e. Coll1.Row1.Value = Coll2.Row1.Value. You may find the action "Read Collection Field", as you can specify the field and row number. Use this against both collections, with the row number getting updated after each check. (You could do an initial row count to check the size of each collection).
Getting the value from each collection, you can compare them in a decision. Then once the row number exceeds the row count, you are finished.
If it doesn't matter what row the values are in, perhaps a filter (into a separate collection, to maintain the original) will better show if the value exists as required.
Let me know if you need either of those ideas better explained.
Thanks
Ben
If each collection row needs to be exactly the same, i.e. Coll1.Row1.Value = Coll2.Row1.Value. You may find the action "Read Collection Field", as you can specify the field and row number. Use this against both collections, with the row number getting updated after each check. (You could do an initial row count to check the size of each collection).
Getting the value from each collection, you can compare them in a decision. Then once the row number exceeds the row count, you are finished.
If it doesn't matter what row the values are in, perhaps a filter (into a separate collection, to maintain the original) will better show if the value exists as required.
Let me know if you need either of those ideas better explained.
Thanks
Ben
Ben Lyons
Principal Product Specialist - Decipher
SS&C Blue Prism
UK based
Principal Product Specialist - Decipher
SS&C Blue Prism
UK based
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-04-21 12:54 PM
Thank you very much
