If the row number 35 is not available need not proceed further

I need to check if the row number is available in datatable,

For example:
If
Then

Dt.row(i).item("Amount)=prevvalue

Here row number i = 35 which is not available in datatable

So i am getting error as there is no row position at 35

How to check this

How to check

Hi @sruthesanju ,

You can have a condition in If activity as below,

Dt.Rows.Count < i 
Then
Dt.row(i).item("Amount)=prevvalue
Else
Log a Message("Row number: "+i.ToString+" is not found in table")

Hope this helps :slight_smile: