<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: StringIndexOutOfBoundsException: String index out of range: in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352175#M118604</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your advise. I run smoothly with syntax - I am wondering why it works when I add "StringHandling.LEN(row1.BOL)&amp;gt;4"?&lt;/P&gt; 
&lt;P&gt;I have another question - I also have another syntax to filter if BOL# ends with letter such as "X,Y,Z,B". previously everything is good but for now it shows out of range error either. I tried to add&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;StringHandling.LEN(row1.BOL)&amp;gt;4" but NOT work.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Can you please advise me about this?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzHX.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139472i3B4EE37370F60FC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzHX.jpg" alt="0683p000009LzHX.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;My current syntax is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;row1.BOL.substring(row1.BOL.length()-1, row1.BOL.length()).equals("X")||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("Y")||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("Z")||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("B")?"Dynamic":"Invalid"&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jul 2018 15:03:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-07-16T15:03:56Z</dc:date>
    <item>
      <title>StringIndexOutOfBoundsException: String index out of range:</title>
      <link>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352172#M118601</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;Please advise me below. Thank you!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have below "out of range" problem after I run my job by using updated source&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzAm.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142376i984D24C5A28A9FCF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzAm.jpg" alt="0683p000009LzAm.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Previously I can run smoothly with below syntax&lt;/P&gt; 
&lt;P&gt;row1.BOL.substring(0,4).equals("EXDO")||row1.BOL.substring(0,4).equals("DMCQ")?"LCLshipment":"Invalid"&lt;/P&gt; 
&lt;P&gt;Can not find any clue for that.&lt;/P&gt; 
&lt;P&gt;Data sample for BOL is&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;BOL&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;CMDUCAD0323962MB&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;EGLV235800292095&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;206739726&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;206756945&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;206783071&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;206671602&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;206535382&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;EGLV149800286242&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;HLCUHAM180317960&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;EXDO6810670633&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 21:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352172#M118601</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-13T21:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: StringIndexOutOfBoundsException: String index out of range:</title>
      <link>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352173#M118602</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Would you mind posting your job setting screenshots on forum which will be helpful for us to address your issue?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 04:50:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352173#M118602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-16T04:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: StringIndexOutOfBoundsException: String index out of range:</title>
      <link>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352174#M118603</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LONXAA4"&gt;@szhou1&lt;/A&gt;,use the below way and let me know?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;StringHandling.LEN(row1.BOL)&amp;gt;4 &amp;amp;&amp;amp;(row1.BOL.substring(0,4).equals("EXDO")||row1.BOL.substring(0,4).equals("DMCQ"))?"LCLshipment":"Invalid"&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 06:53:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352174#M118603</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-07-16T06:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: StringIndexOutOfBoundsException: String index out of range:</title>
      <link>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352175#M118604</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your advise. I run smoothly with syntax - I am wondering why it works when I add "StringHandling.LEN(row1.BOL)&amp;gt;4"?&lt;/P&gt; 
&lt;P&gt;I have another question - I also have another syntax to filter if BOL# ends with letter such as "X,Y,Z,B". previously everything is good but for now it shows out of range error either. I tried to add&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;StringHandling.LEN(row1.BOL)&amp;gt;4" but NOT work.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Can you please advise me about this?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzHX.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139472i3B4EE37370F60FC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzHX.jpg" alt="0683p000009LzHX.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;My current syntax is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;row1.BOL.substring(row1.BOL.length()-1, row1.BOL.length()).equals("X")||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("Y")||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("Z")||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("B")?"Dynamic":"Invalid"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 15:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352175#M118604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-16T15:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: StringIndexOutOfBoundsException: String index out of range:</title>
      <link>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352176#M118605</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LONXAA4"&gt;@szhou1&lt;/A&gt;,since your data length is less than 4&amp;nbsp;in&amp;nbsp;&lt;SPAN&gt;row1.BOL for some of the values so that's way you were getting&amp;nbsp;out of range" problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;try the below one and let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row1.BOL.length()&amp;gt;1 &amp;amp;&amp;amp;(row1.BOL.substring(row1.BOL.length()-1, row1.BOL.length()).equals("X")&lt;BR /&gt;||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("Y")&lt;BR /&gt;||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("Z")&lt;BR /&gt;||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("B"))?"Dynamic":"Invalid"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 05:34:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352176#M118605</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-07-17T05:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: StringIndexOutOfBoundsException: String index out of range:</title>
      <link>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352177#M118606</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LONXAA4"&gt;@szhou1&lt;/A&gt;,since your data length is less than 4&amp;nbsp;in&amp;nbsp;&lt;SPAN&gt;row1.BOL for some of the values so that's way you were getting&amp;nbsp;out of range" problem.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;try the below one and let me know.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;row1.BOL.length()&amp;gt;1 &amp;amp;&amp;amp;(row1.BOL.substring(row1.BOL.length()-1, row1.BOL.length()).equals("X")&lt;BR /&gt;||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("Y")&lt;BR /&gt;||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("Z")&lt;BR /&gt;||row1.BOL.substring(row1.BOL.length()-1,row1.BOL.length()).equals("B"))?"Dynamic":"Invalid"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 05:35:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352177#M118606</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-07-17T05:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: StringIndexOutOfBoundsException: String index out of range:</title>
      <link>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352178#M118607</link>
      <description>&lt;P&gt;StringIndexOutOfBoundsException error is realted to Java substring and it means you are attempting to access a character which would come after the end of the string. If a String is only 4 characters long, attempting to get the &lt;A href="http://net-informations.com/java/string/substring.htm" target="_self" rel="nofollow noopener noreferrer"&gt;substring&lt;/A&gt; from index 0 - 8, will throw this exception. substring(beginIndex, endInded) throws IndexOutOfBoundsException if the beginIndex is negative, or endIndex is larger than the length of this String object, or beginIndex is larger than endIndex.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2019 08:03:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/StringIndexOutOfBoundsException-String-index-out-of-range/m-p/2352178#M118607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-02T08:03:23Z</dc:date>
    </item>
  </channel>
</rss>

