Assign TransactionID: Index was outside the bounds of the array

in Assignment 1 of UIPath level 3 certification the transaction id (string variable ) have to extract from a data row variable (Transactionitem) …it works perfectly.but after processing 9th item it throws an error as array out of boundary.how can i solve it ? and suggetions??

Your TransactionNumber must start from 1, Also this should be in if Condition

image

image

Thanks,
Prankur

3 Likes

Index is 0-based. Start from 0.

1 Like

and also im stucked with extracting Client ID, Client Name and Client Country from the get text activity . really appriciate if you help me

Easiest way would be

StringArrayVariable = urStringvarible.Split({Environment.Newline},StringSplitOptions.RemoveEmptySpaces)

this would give you

clientID on StringArrayVariable(0)
clientName on StringArrayVariable(1)
clientCountry on StringArrayVariable(2)

Thanks
Prankur

bt it also containing the names of that elements i mean “client name 873458” ,“client country”, etc. right?

You can always use String.Replace(“client name”,"").Trim;

2 Likes

thank you so much :heartbeat:

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