Connect HomeMarketplaceComponentsSopra Steria - Find Duplicates in Datatable

Sopra Steria - Find Duplicates in Datatable

Snippet

Snippet

Updated: October 21st, 2020

Published: May 31st, 2020

Downloads: 17

Industry: professional-scientific-and-technical-services

Language compatibility: Visual Basic

Community Support

Sopra Steria - Find Duplicates in Datatable

Snippet

Summary: 

Easily find duplicates in a Datatable based on a similar value of one or more columns


Functionality:

The sequence iterates through every row of the Datatable and checks if the value of the specified column has been repeated.

A column "Duplicate Status" is added in the Datatable in which the status "Duplicate" is updated for the rows having repeated value. No status is updated for the first row as it would be the original (unique) row.

For example:

Order No. Supplier Quantity
123A X Corp 10
456B Y Corp 20
789C Z Corp 30
456B W Corp 25

If the above Datatable is passed in the snippet and column name is updated as "Order No.". then, the below Datatable will be the output:

Order No. Supplier Quantity Duplicate Status
123A X Corp 10
456B Y Corp 20
789C Z Corp 30
456B W Corp 25 Duplicate


Input:

1. Datatable in which duplicates are to categorized (in_Datatable)
2. Column name which has to be validated (in_MatchColumnName)

Output:

Datatable with additional column "Duplicate Status" (out_Datatable)

Details

Benefits

Find duplicates in any Datatable.  

By default, the snippet is customized to check one column of each row. But, this can be modified to include more than one column.

Compatibility

UiPath 2020.4 + 

Dependencies

UiPath.System.Activities : 20.4.0
UiPath.UIAutomation.Activities : 20.4.1

Licensing

By clicking download you agree to the following license.