Calculate client security hash: Assign: Index was outside the bounds of the array


I have almost completed the Calculate client security hash assignment, but I keep on getting the same error and I couldn’t find a solution anywhere.

The process runs smoothly and all the workitems are updated, but in the output I get the same error for the last workitem all the time.

The assign is out_TransactionItem = in_WIList(in_TransactionNumber)(“WIID”).ToString (this is how a colleague advised me to do it.

Could someone please help me?

Thank you in advance!


1 Like

in_TransactionNumber <= in_WIList.Count
instead in the condition

Unfortunately it doesn’t solve the problem. I’m still getting the same error.

1 Like

out_TransactionItem = in_WIList(in_TransactionNumber-1)

1 Like

Maybe you did not subtract 1.
Because if not, the last transaction will really be out of bounds :slight_smile:

Hmm… Then it gives me the following:

I’m really lost with this one.

1 Like

GetTransactionData.xaml (8.7 KB)
You may check this code :slight_smile:



Change TransactionItem variable type to DataRow from String. Change it in whole process where ever you used it.

You should change all the out_TransactionItem arguments’ type to DataRow

1 Like

Thank you so much!!! It works now! :smile:

1 Like

Good to hear that! Good luck on getting that diploma :slight_smile:

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