<?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: Need to get String less than 60 length in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206661#M6628</link>
    <description>&lt;P&gt;I do understand your solution, meanwhile I used this&lt;/P&gt; 
&lt;P&gt;StringHandling.LEN(coLname)&amp;gt;58?colname.substring(0,58):colname&lt;/P&gt; 
&lt;P&gt;Is this fine?&lt;/P&gt; 
&lt;P&gt;The min lenght is 0 it is nullable, so I don't understand is then why do I get the error&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2018 12:22:39 GMT</pubDate>
    <dc:creator>amitdadri</dc:creator>
    <dc:date>2018-09-20T12:22:39Z</dc:date>
    <item>
      <title>Need to get String less than 60 length</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206655#M6622</link>
      <description>&lt;P&gt;Hi all previously I was using&amp;nbsp; &amp;nbsp; routines.utils.getNotes(SFOpportunities.Notes__c)&amp;nbsp; to extract the values from field named Notes , length&amp;nbsp;32768&amp;nbsp; &amp;nbsp;into next field with a lenght of 60&amp;nbsp; both string. and I am getting an error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception in component tMap_4&amp;nbsp;&lt;BR /&gt;java.lang.StringIndexOutOfBoundsException: String index out of range: 60&lt;BR /&gt;at java.lang.String.substring(Unknown Source)&lt;BR /&gt;at routines.utils.getNotes(utils.java:571)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone see this&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 10:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206655#M6622</guid>
      <dc:creator>amitdadri</dc:creator>
      <dc:date>2018-09-20T10:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get String less than 60 length</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206656#M6623</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it means column shorter than 60, for example " "&lt;/P&gt;&lt;P&gt;check in source database MIN(lenght()) for column&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 10:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206656#M6623</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-09-20T10:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get String less than 60 length</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206657#M6624</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;thanks for reply, the source also has the field length as&amp;nbsp;&lt;SPAN&gt;32768 only,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 11:23:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206657#M6624</guid>
      <dc:creator>amitdadri</dc:creator>
      <dc:date>2018-09-20T11:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get String less than 60 length</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206658#M6625</link>
      <description>&lt;P&gt;do You check this by query? (not by definition)&lt;BR /&gt;You need any 1 rows shorter to have error&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 11:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206658#M6625</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-09-20T11:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get String less than 60 length</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206659#M6626</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&amp;nbsp;the source is Salesforce and I dont know much to query in that, I just work in Talend, can you please tell me about that&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 11:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206659#M6626</guid>
      <dc:creator>amitdadri</dc:creator>
      <dc:date>2018-09-20T11:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get String less than 60 length</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206660#M6627</link>
      <description>&lt;P&gt;in saleforce&amp;nbsp;they have SOQL -&amp;nbsp;&lt;A href="https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;in talend You can check real lengths, something like:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;row1.col==null?
null
:StringHandling.LEN(row1.col)&amp;lt;60?
row1.col
:StringHandling.LEFT(row1.col, 60)&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Sep 2018 11:45:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206660#M6627</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-09-20T11:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get String less than 60 length</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206661#M6628</link>
      <description>&lt;P&gt;I do understand your solution, meanwhile I used this&lt;/P&gt; 
&lt;P&gt;StringHandling.LEN(coLname)&amp;gt;58?colname.substring(0,58):colname&lt;/P&gt; 
&lt;P&gt;Is this fine?&lt;/P&gt; 
&lt;P&gt;The min lenght is 0 it is nullable, so I don't understand is then why do I get the error&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 12:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206661#M6628</guid>
      <dc:creator>amitdadri</dc:creator>
      <dc:date>2018-09-20T12:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need to get String less than 60 length</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206662#M6629</link>
      <description>&lt;P&gt;it similar, I just add check for NULL&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 12:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-get-String-less-than-60-length/m-p/2206662#M6629</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2018-09-20T12:37:07Z</dc:date>
    </item>
  </channel>
</rss>

