cancel
Showing results for 
Search instead for 
Did you mean: 

StringIndexOutOfBoundsException

Former Member
0 Kudos

Hello

i am trying to implement simple functionality of substring of one value of source node using built-in functions of mappings.

The logic is simple

If ZNME1 > 15 .

ZNME1 = Substring from 0 to 14.

Else.

ZNME1 = ZNME1.

Endif.

Instead of this code i have used built-in if then else functions. This runs fine (when tested with Test tool) when the result is true i.e. when string length is greater than or equal to 14 but if stringlength is less than 14 it gives the above exception.

i guess it executes the substring function (which is assigned to then tab) before even checking the condition which is why it is throwing this error. ideally it should first check the condition and then execute then part of the same right.

Regards

Rajeev

Accepted Solutions (1)

Accepted Solutions (1)

VijayKonam
Active Contributor
0 Kudos

I think this problem was already existng and I guess there was a note also. Search the forum for if then problem.. You should be able to find it..

VJ

Answers (0)