Need to check if rows exist or not in Data tables

In my first transaction item:

some data get and feed into my already existed empty excel

like:
image

In my second translation item some data fetched and feed into existed DB (have to append) before feed I have to check each row of (Operator name+E212+E214+Global Title) if not exist then add row , if exist then do nothing

My second transcation data like:

image

Need out put like:

image

Thanks
Shaik

Use Append Range activity from UiPath

But I have to check each column (Operator Name+TADIG+E212+E214+Global Title) if exist do nothing , if not then add row

First assign excel Table in DataTable.
Use For Each Row and pass conditions is empty
and if yes then Add Row.

Hope this will help…

You can also refer

@shaik.muktharvalli1

dt2.asenumerable.except(dt1.asenumerable,system.data.datarowcomparer.default).copytodatatable

Use the above expression and append that to first datatable

Hi,

Input:-

Output:-
image

Xaml File:-
Main.xaml (13.7 KB)

If this works for you, please mark it as a solution, so other can refer the same… :slight_smile:

Thanks

not only Operator column but I have to check all columns

1 Like

Hi,

Updated xaml file:-
Main.xaml (13.7 KB)

Thanks

1 Like

If my data table all columns in Object instead of string

Please give expression

1 Like

Hi,

Provided xaml code will work for object as well as string.

Thanks

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.