Assignment1 Isse: TransactionID: Index was outside the bounds of the array. Level 3 UiPath

Hey,

I am getting TranscationID :Index was outside the bounds of the array in assignment 1.
Could you please help me to resolve this issue.
If condition is : in_TransactionNumber<=dt_WorkItems.Count

Assign TranscationID is:
out_TransactionItem =dt_WorkItems(in_TransactionNumber-1)

Assign TranscationID field1 is:
out_TransactionID = out_TransactionItem(“WIID”).ToString

Argument in_TransactionNumber is default value is 1

1 Like

I think you are getting error at

transactionItem.SpecificContent(“WIID”).tostring, try this @raginipoman

Hello ,

I am trying to use out_TransactionItem.SpecificContent(“WIID”).tostring as you suggested but it gives compile error

I can’t see specificContent property for out_transcationItem

I am getting error at Assign TransactionID: Index was outside the bounds of the array.
error at Assign TranscationID activity

Hi @raginipoman,

out_TransactionItem =dt_WorkItems(in_TransactionNumber) Try you can like that.

all WI5 status has been changed successfully after final WI5 Item change , it is giving this error.

Try this is in the if condition

If condition is : in_TransactionNumber<dt_WorkItems.Count

Hi @raginipoman you have to change the if condition. Put -1 after Count, and in_Transaction Number is initialized with 0.

  • in_Transaction Number <= _WorkItems.Count-1

Best regards

6 Likes

Thanks.This Solved my issue though.

Hey i tried this contition and still got the same issue, what could be happening?
image

@Dusan92 Thanks! This is the correct solution!

1 Like

Thanks, I marked it as such.

1 Like

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