Get difference btw two collections - using code stage
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-11-22 10:59 AM
I need to perform this action using code stage not with the loops(input data is large so using loops will consume more time).
we can say as left semi join or left anti join.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-11-22 06:26 PM
You can accomplish this using Linq and the Enumerable.Except() method. Here's an example Code stage based on the this example:
NoMatchRecords = coll1.AsEnumerable().Except(
coll2.AsEnumerable(), DataRowComparer.Default).
CopyToDataTable();
And here are screenshots of the properties of the Code stage:
You will need to references to the following DLLs:
- System.Data.DataSetExtensions.dll
- System.Core.dll
- System.Linq
Cheers,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
11-11-22 09:55 PM
https://digitalexchange.blueprism.com/dx/entry/3439/solution/utility---collection-manipulation
Cheers,
Eric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-05-24 06:53 AM
Hi Ewilson,
Based on this VBO, it extracts differences but does not highlight the text, which is different from the main collection.
After using this VBO, the collection results stored in New Excel sheet but the problem is we could not find it out what is the difference.
Please help me to resolve this issue
Regards
Sabitha N
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-05-24 08:33 AM
Paste collection details into MS Excel, and use excel formula's to find the difference is there or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-05-24 09:04 AM
Thanks for your quick response, Please find the below my flow chart
collection of unmatched record automatically created in collection and the i stored the collection value to New work book , If i open work book it will show the difference but still need to find out, That New Unmatched VBO not highlighting the text from Main Collection.
This one i want to achieve using Blue prism only.
Please provide more detail to resolve this
Regard
Sabitha N
