Fine
I hope this would help you
—let’s take like we have two datatable ready dt1 and dt2
—now use a BUILD DATATABLE activity and create same structure of columns as in these two datatable and get the output with a variable of type datatable named Finaldt
—now use a for each row loop and pass the dt1 as input and change the variable name from row to row1 and inside the loop use another for each row loop with dt2 as input and change the variable name from row to row2
—now inside the inner for each row loop mention a IF condition like this Not row1(0).Equals(row2(0)) and Not row1(1).Equals(row2(1))
If true it will get into THEN PART where we can use a ADD DATAROW activity and mention the datatable as Finaldt and ArrayRow property as row1.ItemArray
This will add the mismatch data to the Finaldt datatable
I was recently using package created by @sandeep13 named Auxiliobits - Set Operation on DataTable . This package will solve your purpose like charm…
One sample for your reference i am attaching over here… This will work once you install that package.
Note : please read the instruction given in the article ( since its minus activity so greater need to be subtracted from lower) Difference in Datatable.zip (8.7 KB)