<?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: Expressions not defined in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201947#M3846</link>
    <description>All StringHandling methods will be null friendly in v4.0.4 and v4.1.2 (see 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqh7CAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Archive/resolved-tMysqlInput-1-NB-LINE/td-p/176131&lt;/A&gt;).</description>
    <pubDate>Mon, 03 Jan 2011 23:48:31 GMT</pubDate>
    <dc:creator>alevy</dc:creator>
    <dc:date>2011-01-03T23:48:31Z</dc:date>
    <item>
      <title>Expressions not defined</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201942#M3841</link>
      <description>I am trying to use some of the build-in functions in the expression builder. Several functions give an error saying that the method is not defined:
&lt;BR /&gt;An example of this is the LEFT function:
&lt;BR /&gt;The method LEFT(String, int) is undefined for the type TalendJavaSourceViewer31
&lt;BR /&gt;
&lt;BR /&gt;In the Expression Builder (in a tMap), I have:
&lt;BR /&gt;LEFT(row1.FirstName,50)</description>
      <pubDate>Sat, 16 Nov 2024 13:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201942#M3841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions not defined</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201943#M3842</link>
      <description>You need to refer to the function as
&lt;BR /&gt;
&lt;PRE&gt;StringHandling.LEFT(row1.FirstName, 50)&lt;/PRE&gt;
&lt;BR /&gt;LEFT is a static method defined in the StringHandling class.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Abhi</description>
      <pubDate>Mon, 03 Jan 2011 03:14:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201943#M3842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-03T03:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions not defined</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201944#M3843</link>
      <description>Ok. Tried that, and still getting an error. The syntax is now correct in the tMap expression, but when I run the full job I get: 
&lt;BR /&gt;Exception in component tMap_1 
&lt;BR /&gt;java.lang.NullPointerException 
&lt;BR /&gt; at routines.StringHandling.LEFT(StringHandling.java:209) 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;The code in my tMap expression is: 
&lt;BR /&gt;StringHandling.LEFT(row1.FirstName,50)</description>
      <pubDate>Mon, 03 Jan 2011 16:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201944#M3843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-03T16:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions not defined</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201945#M3844</link>
      <description>I think you are getting "null" value for row1.FirstName. While making a call to StringHandling.LEFT, we need to ensure that row1.FirstName is not null. The following expression will evalute to null if row1.FirstName is null, else it will return the first 50 characters of row1.FirstName (or row1.FirstName itself, if length of row1.FirstName is less than 50). 
&lt;BR /&gt; 
&lt;PRE&gt;row1.FirstName != null ? StringHandling.LEFT(row1.FirstName, 50) :&lt;BR /&gt;null&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Jan 2011 18:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201945#M3844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-03T18:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions not defined</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201946#M3845</link>
      <description>That was the answer.  Thanks!</description>
      <pubDate>Mon, 03 Jan 2011 18:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201946#M3845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-03T18:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: Expressions not defined</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201947#M3846</link>
      <description>All StringHandling methods will be null friendly in v4.0.4 and v4.1.2 (see 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCqh7CAC" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Archive/resolved-tMysqlInput-1-NB-LINE/td-p/176131&lt;/A&gt;).</description>
      <pubDate>Mon, 03 Jan 2011 23:48:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Expressions-not-defined/m-p/2201947#M3846</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2011-01-03T23:48:31Z</dc:date>
    </item>
  </channel>
</rss>

