<?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: [resolved] How to Substring a Large String in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Substring-a-Large-String-in-tMap/m-p/2318481#M88815</link>
    <description>I think that, in the end, that some of the strings I had were null.&amp;nbsp;&lt;BR /&gt;The thing is that I didn't expect them in the output but I guess that is what happens sometimes! haha&lt;BR /&gt;Thanks,&lt;BR /&gt;Croix</description>
    <pubDate>Mon, 27 Mar 2017 16:16:36 GMT</pubDate>
    <dc:creator>Croix</dc:creator>
    <dc:date>2017-03-27T16:16:36Z</dc:date>
    <item>
      <title>[resolved] How to Substring a Large String in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Substring-a-Large-String-in-tMap/m-p/2318479#M88813</link>
      <description>Neither of these worked in tMap Expression Builder for strings larger than 46 characters. It seems that strings larger than 46 characters cannot be operated on. Is that correct? 
&lt;BR /&gt;This is what I'm trying to do. Through experimentation, it seems to throw errors once the "index" or "indexOf" is bigger than 46. 
&lt;BR /&gt;StringHandling.LEFT(row11.out,StringHandling.INDEX(row11.out,"="))&amp;nbsp; 
&lt;BR /&gt;row11.out.substring(0, row11.out.indexOf("="))&amp;nbsp; 
&lt;BR /&gt;For both I get a&amp;nbsp; 
&lt;BR /&gt;"String index out of range: -1 
&lt;BR /&gt;java.lang.StringIndexOutOfBoundsException: String index out of range: -1" 
&lt;BR /&gt;Does anyone know why it would do this?&amp;nbsp;</description>
      <pubDate>Tue, 21 Mar 2017 20:14:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Substring-a-Large-String-in-tMap/m-p/2318479#M88813</guid>
      <dc:creator>Croix</dc:creator>
      <dc:date>2017-03-21T20:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to Substring a Large String in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Substring-a-Large-String-in-tMap/m-p/2318480#M88814</link>
      <description>Strings should not be constrained to 46 characters. &amp;nbsp;Is it possible your schema is defining that column of input with length 46?
&lt;BR /&gt;StringHandling.INDEX will return -1 if either of its arguments are null. &amp;nbsp;Are there any cases where row11.out is null?
&lt;BR /&gt;indexOf returns -1 if the searched for character is not found. &amp;nbsp;Are there any instancens where row11.out does not contain "="?</description>
      <pubDate>Tue, 21 Mar 2017 22:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Substring-a-Large-String-in-tMap/m-p/2318480#M88814</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-03-21T22:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to Substring a Large String in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Substring-a-Large-String-in-tMap/m-p/2318481#M88815</link>
      <description>I think that, in the end, that some of the strings I had were null.&amp;nbsp;&lt;BR /&gt;The thing is that I didn't expect them in the output but I guess that is what happens sometimes! haha&lt;BR /&gt;Thanks,&lt;BR /&gt;Croix</description>
      <pubDate>Mon, 27 Mar 2017 16:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-Substring-a-Large-String-in-tMap/m-p/2318481#M88815</guid>
      <dc:creator>Croix</dc:creator>
      <dc:date>2017-03-27T16:16:36Z</dc:date>
    </item>
  </channel>
</rss>

