Comparing Two Tables To Remove Row

Hi All, I am kind of new to uipath and need a little help with something I am currently stuck on. I am trying to loop through a DataTable and when a specific event happen I want the BOT to remove that row in another DataTable with the same ClientID. I am receiving an error “Remove Data Row: There is no row at position -1”. This is what I have so far.

Thank you in advance :slight_smile:

1 Like


@jl317 What’s that Assign Statement for?

Welcome back to uipath community

So in ADD TO COLLECTIONS activity was the rowindex added to the list variable with value like this

Cheers @jl317

This is how the variable look like for rowindex.

Fine buddy
But what is the value passed in ADD TO COLLECTIONS activity

Thank you. I was referencing vDatatableFilterExtension.Rows.IndexOf(row) and not vDatatableFilterExtension.Rows.IndexOf(rowDt2)

Cheers @jl317

1 Like

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