Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

java.lang.StringIndexOutOfBoundsException: String index out of range:

Hi,
I am getting java.lang.StringIndexOutOfBoundsException: String index out of range: -2 while loading the talend job;
Exception in component tMap_1
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java:1937)
at routines.StringHandling.LEFT(StringHandling.java:210)
In my tmap_1
StringHandling.RIGHT(StringHandling.LEFT(context.filepath,StringHandling.INDEX(context.filepath,"XLS")-1),2)
Please help me
Chin
Labels (3)
1 Reply
janhess
Creator II
Creator II

Your index is out of range probably because it didn't find an occurrence of XLS and you tried to do a left and right function on it.