Get Transaction Data If statement is not going to else after the process is done with the table of information

I am going through the RPA developer training track three doing the first assignment. When the process goes through the data it works completely but once it’s finished the if statement doesn’t go to the else condition it errors out on the first assign in the then statement. Was wondering if anyone has had this problem before and could give a solution. If any other information could help I can upload more screenshots.


Welcome to the uipath community.

Are you getting any error ?

Hi @MansaJoe,
It seems like your Transction number has set to “1”. As in_WIList variable you provided is of “array of [DataRow]” type so, its index will starts from “0”. Your in_transaction number also should be defined for that for example lets consider [0,1,2,3,4] available in in_WIList then count will be 5 but index will start from “0”, if your in_transactionNumber start from “1” then according to your logic out_transaction will be in_WIList(1),
Transactions | in_TransactionNumber | in_WIList | out_TransactionItem
First | 1 |[0,1,2,3,4] | 1
Second | 2 |[0,1,2,3,4] | 2
Third | 3 |[0,1,2,3,4] | 3
Fourth | 4 |[0,1,2,3,4] | 4
Fifth | 5 |[0,1,2,3,4] | error
So, in above example in_WIList has a count of “5” so, their will be “5” iterations but can get data untill index “4”. Its is the cause which gave you error for the last transactions.

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