Cause
This error occurs when the starting position in a string operation is less than 1 or the starting position is greater than the string size when the string expression is being read (not being assigned to).
Action
Determine the cause for the invalid argument in the string expression and then correct the code that led to the error. The method and source position containing the string expression at which the exception was raised are reported in the error description.