Hi @achudina,
I’m not sure if I good remember but there is a part in walkthrough document where it’s mentioned that indexing is going from 0. Not sure if this applies to Transaction ID but you can try to do " - 1" in the assign formula. Eventually just add additional Write Line activity with this TransactionID parsed to string and you’ll see which values it will return.
Thanks for your quick reply, i tried to debug my code and found exact place where i got the error.
In GetTransactionData Framework we are checking whether the transaction number is less than or equal to count of work items
Once loop is true we are assigning Transaction ID like
out_TransactionItem = dt_WorkItems(in_TransactionNumber)
in Arguments i set default value for in_TransactionNumber = 0 but i can’t able to set default value for out_TranactionItem where i got the outofBoundException
PFB screenshot for reference.
It will be probably as I said in previous answer. You are assigning to out_TransactionItem the data table dt_WorkItems. From definition DataTable is counting it’s index from 0 not from one so in dt_WorkItems(0) there is the first value. I guess you should try to assign values starting from dt_WorkItems(in_TransactionNumber) -1.