<?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: tfilterrow Error filtering column data in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tfilterrow-Error-filtering-column-data/m-p/2360702#M125239</link>
    <description>Is it possible that&amp;nbsp; input_row.ColumnName contains nullvalues sometimes ?</description>
    <pubDate>Thu, 21 Apr 2016 10:44:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-21T10:44:00Z</dc:date>
    <item>
      <title>tfilterrow Error filtering column data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tfilterrow-Error-filtering-column-data/m-p/2360701#M125238</link>
      <description>Hi Guys,
&lt;BR /&gt;Good Day!&amp;nbsp;
&lt;BR /&gt;I'm trying to work on a project where I need to filter a row with some string on a specific column like "Not". I used the advance mode of the tfilterrow and define the condition:&amp;nbsp;
&lt;BR /&gt;input_row.ColumnName.indexOf("Not") != -1 I also tried input_row.ColumnName.contains("Not")&amp;nbsp;
&lt;BR /&gt;and it seems to filter out the row with the string on the column on it but it also filter out some rows that has no "Not" on that column.
&lt;BR /&gt;I figure it out using the rejects output of the tfilterRow because I include the error message and some rows is an error because of the advance condition that I set up.
&lt;BR /&gt;Is there any more accurate way to filter it out?&amp;nbsp;
&lt;BR /&gt;Thanks In Advance
&lt;BR /&gt;Regards
&lt;BR /&gt;John&amp;nbsp;</description>
      <pubDate>Thu, 21 Apr 2016 09:22:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tfilterrow-Error-filtering-column-data/m-p/2360701#M125238</guid>
      <dc:creator>jdlo_25</dc:creator>
      <dc:date>2016-04-21T09:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: tfilterrow Error filtering column data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tfilterrow-Error-filtering-column-data/m-p/2360702#M125239</link>
      <description>Is it possible that&amp;nbsp; input_row.ColumnName contains nullvalues sometimes ?</description>
      <pubDate>Thu, 21 Apr 2016 10:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tfilterrow-Error-filtering-column-data/m-p/2360702#M125239</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-21T10:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: tfilterrow Error filtering column data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tfilterrow-Error-filtering-column-data/m-p/2360703#M125240</link>
      <description>&amp;nbsp;Hi djdeejay,&lt;BR /&gt;Yes it is possible !&amp;nbsp;&lt;BR /&gt;Regards&lt;BR /&gt;John</description>
      <pubDate>Thu, 21 Apr 2016 12:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tfilterrow-Error-filtering-column-data/m-p/2360703#M125240</guid>
      <dc:creator>jdlo_25</dc:creator>
      <dc:date>2016-04-21T12:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: tfilterrow Error filtering column data</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tfilterrow-Error-filtering-column-data/m-p/2360704#M125241</link>
      <description>in this case input_row.ColumnName.contains("Not")&amp;nbsp;will throw a null pointer exception, as there is no object for which the method contains() can be called.&lt;BR /&gt;You Need to ensure you have an object first, you might try this :&amp;nbsp;&amp;nbsp;&lt;BR /&gt;(input_row.ColumnName==null?new String(""):input_row.ColumnName).contains("Not")&lt;BR /&gt;&lt;BR /&gt;you can replace new String("") with new String("Not") if you want to have Default NOT in the NULL case&lt;BR /&gt;HTH&lt;BR /&gt;PS: if your can ask for equality then it is best practise to use:&amp;nbsp; "Not".equals(input_row.ColumnName) which reduces to "Not".equals(null) and results into false then</description>
      <pubDate>Fri, 22 Apr 2016 09:03:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tfilterrow-Error-filtering-column-data/m-p/2360704#M125241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-22T09:03:40Z</dc:date>
    </item>
  </channel>
</rss>

