This file, contain two sheets, sheet1 and sheet2.
I have to compare the “Concat2” column
Sheet1
Concat2
Concat
SubmittedAmt
0410025295-1-11834-10270
0410025295-1-11834
10270
Sheet2
Concat2
Concat
SubmittedAmt
0410025295-1-11834-10270
0410025295-1-11834
10270
0410025295-2-11834-23400
0410025295-2-11834
23400
This example shows that the first row is the same on both sheets, but the second row, on sheet1, for example, does not exist.
This comparison, therefore, must send the flow in KO sequence.
Only if all the lines are present and match in the contents, can they be in the OK sequence.
You can do that by reading each sheet into a datatable.
Sheet1 is dtTable1, Sheet2 is dtTable2.
Then make a for each row in dtTable1 and compare the rows of the Concat2 column for each of the datatable.
If you are relatively new to UiPath, I would strongly suggest that you head on to https://academy.uipath.com to learn more about UiPath
1.Create two data table variables DT1 and DT2.
2.Use for each row pass DT1 and then use another for each row activity pass DT2.
3.Use If condition compare row(“DT1ColumnName”).contais(row(“DT2ColumnName”)).