Index and length must refer to a location within the string. Parameter name: length

Hey Guys!

i’m getting this problem when i’m trying to get the first two letter of the first name, and the first last name(the idea is to create an user): Index and length must refer to a location within the string.\r\nParameter name: length
my assing is:

thanks in advance!

@fernando_zuluaga

Before splitting this text, could you please print those values using Message Box or Write line Activity and then show me screenshot of it. So that we can check and help you.

thanks!
but i fix the problem now, the “get text activity” was taken the first name with a space an the start, just i have to trim the name to remove the spaces and the sub-string works correctly now.
thanks for help anyways!

Regards

1 Like

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