How to get correct row number from extracted web data table

Scenario :
Extracting table from webpage which has 20-25 rows.
Checking those rows against Database (SQL), IF needs to process further
Then , Type EX: order number on webpage Let’s say 1111.
(Now - if any order details has 1111 (in payment card number, the amount of the product or address contains those number) all of those orders return on that page.

So, IF I type 1111 , sometimes it gives 4 to 5 rows of orders and from that I have to pick the correct row to process further.
I am using same extract Data table and get the row activity. (While testing in separate sequence just this scenario , it works fine and gives me correct row to process).

But when I use this in entire code, where I am using 1st extract data to get all the rows to compare against DB , it gives the row number from 1st extracted DB . (if 1111 order row is 20 then it gives 20 instead of 1 or 2).

Hi!

You would need to extract the datatable again if you are doing anything that changes the application.

@Pal_Patel Can you share screenshots of table 1 and table 2 for better understanding of the scenario?

Regards,
Ajay Mishra