cancel
Showing results for 
Search instead for 
Did you mean: 

String index out of range: 35[String index out of range:35]

Former Member
0 Kudos

Hi All

In sap MII transaction am using stringpart(Repeater_).Output{/WA},26,10). In this expression am getting string out of range..

Wherre am i going wrong.?? Please rectify it..

Regards,

Glory

Accepted Solutions (0)

Answers (2)

Answers (2)

jcgood25
Active Contributor
0 Kudos

Your repeater has a strange name, but the error is likely occuring because your "WA" string is less than 26 characters long and your starting index is not found.

stringpart("abcdefghijklmnopqrstuvwxyz",26,10)  produces the same error message for me on a 12.1.11 system.  Changing from 26 to 6 returns the expected text, but a similar error happens if the length requested also goes beyond the end of the string like stringpart("abcdefghijklmnopqrstuvwxyz",20,10)

You may need to condition your logic to check for suitable string lengths, or try combining some of the other expressions.

I would recommend entering this as a bug in a customer support ticket.

Former Member
0 Kudos

best way to check above is putting tracer and seeing if you are getting values.

Run following:

1. Check if you are getting repeater value as expected - Repeater_).Output{/WA}

2. Check Stringpart works for you as expected  - put any value "test"

3. If both works, then there has to be something missing on your logic else, stringpart(...) with your expression should work fine.