<?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 [resolved] tMap + rejecting filtered rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254314#M37362</link>
    <description>Hello,&lt;BR /&gt;I can't figure out how to reject row from input "ok" depending on the following rule :&lt;BR /&gt;If ok.CPTFISAG doesn't begin with "4" then&lt;BR /&gt;     Reject each rows of input "ok" where there's no row for ok.CBUFISAG = lm_tSACBU1.BUASACBU&lt;BR /&gt;     Reject each rows of input "ok" where there's no row for ok.SVCFISAG = lm_tSASVC1.SVASASVC&lt;BR /&gt;     Reject each rows of input "ok" where there's no row for ok.CPTFISAG = lm_tSADES1.CPTSADES&lt;BR /&gt;If I check inner join on lm_tSACBU1,  lm_tSASVC1, lm_tSADES1, and Filter + Inner join Reject on the 3 output reject I got a NullPointer &lt;BR /&gt;Exception &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;This happens when ok.CBUFISAG has no lm_tSACBU1.BUASACBU or ok.SVCFISAG has no lm_tSASVC1.SVASASVC or ok.CPTFISAG has no lm_tSADES1.CPTSADES&lt;BR /&gt;See screnshots.&lt;BR /&gt;Thanks for helping,&lt;BR /&gt;Didier</description>
    <pubDate>Sat, 16 Nov 2024 13:11:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:11:50Z</dc:date>
    <item>
      <title>[resolved] tMap + rejecting filtered rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254314#M37362</link>
      <description>Hello,&lt;BR /&gt;I can't figure out how to reject row from input "ok" depending on the following rule :&lt;BR /&gt;If ok.CPTFISAG doesn't begin with "4" then&lt;BR /&gt;     Reject each rows of input "ok" where there's no row for ok.CBUFISAG = lm_tSACBU1.BUASACBU&lt;BR /&gt;     Reject each rows of input "ok" where there's no row for ok.SVCFISAG = lm_tSASVC1.SVASASVC&lt;BR /&gt;     Reject each rows of input "ok" where there's no row for ok.CPTFISAG = lm_tSADES1.CPTSADES&lt;BR /&gt;If I check inner join on lm_tSACBU1,  lm_tSASVC1, lm_tSADES1, and Filter + Inner join Reject on the 3 output reject I got a NullPointer &lt;BR /&gt;Exception &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;This happens when ok.CBUFISAG has no lm_tSACBU1.BUASACBU or ok.SVCFISAG has no lm_tSASVC1.SVASASVC or ok.CPTFISAG has no lm_tSADES1.CPTSADES&lt;BR /&gt;See screnshots.&lt;BR /&gt;Thanks for helping,&lt;BR /&gt;Didier</description>
      <pubDate>Sat, 16 Nov 2024 13:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254314#M37362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap + rejecting filtered rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254315#M37363</link>
      <description>I would still use the inner join and its reject, however, would give a default value to the fields in a tJavaRow component before the tMap.</description>
      <pubDate>Fri, 26 Nov 2010 04:18:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254315#M37363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-26T04:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap + rejecting filtered rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254316#M37364</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;I would still use the inner join and its reject, however, would give a default value to the fields in a tJavaRow component before the tMap.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Hello,&lt;BR /&gt;that means you think the Null Exception comes from the main flow "ok" (that contains CPTFISAG) ?</description>
      <pubDate>Fri, 26 Nov 2010 06:52:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254316#M37364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-26T06:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap + rejecting filtered rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254317#M37365</link>
      <description>Any idea ?</description>
      <pubDate>Fri, 26 Nov 2010 14:32:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254317#M37365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-26T14:32:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap + rejecting filtered rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254318#M37366</link>
      <description>hi,&lt;BR /&gt;try and change into  your filter "equals(null)"  by "== null"&lt;BR /&gt;hope it help&lt;BR /&gt;regards&lt;BR /&gt;laurent</description>
      <pubDate>Fri, 26 Nov 2010 18:13:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254318#M37366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-26T18:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap + rejecting filtered rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254319#M37367</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;hi,&lt;BR /&gt;try and change into  your filter "equals(null)"  by "== null"&lt;BR /&gt;hope it help&lt;BR /&gt;regards&lt;BR /&gt;laurent&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Hello, since the filtered data is type String I don't think it will work.&lt;BR /&gt;I have simplified my job and posted new screenshots.&lt;BR /&gt;Var.cgr = &lt;BR /&gt;(!Frais.CGRFIFRS.equals("") &amp;amp;&amp;amp; !Frais.POSFIFRS.equals(""))?Frais.CGRFIFRS.substring(0,5) + NODES.DESNODES + Frais.CGRFIFRS.substring(8,Frais.CGRFIFRS.length()):""  &lt;BR /&gt;Var.tva =&lt;BR /&gt;Frais.TVAFIFRS.equals("")?"":CATVA.TV2CATVA  &lt;BR /&gt;Oups sorry I have just understood this is not the same job as the one in my first post. But the problem is the same so one will solve both &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Hope this helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Tue, 30 Nov 2010 09:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254319#M37367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-30T09:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap + rejecting filtered rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254320#M37368</link>
      <description>You cannot use .equals on a variable that is null, which is what the Strings from your lookup tables will be if the join fails.  You must use e.g. NODES.DE1NODES==null for your output filter.&lt;BR /&gt;Note that if the NODES inner-join fails, Talend will not attempt the CATVA join i.e. all the values from CATVA will be null if EITHER join fails.&lt;BR /&gt;To filter rejet_TVA to only include rows from Frais where the NODES join succeeds but the CATVA join fails, use NODES.DE1NODES!=null as your output filter.&lt;BR /&gt;If you want Talend to always attempt both joins, they must be left-joins, in which case you obviously need to have an output filter on Qualiac.</description>
      <pubDate>Wed, 01 Dec 2010 00:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254320#M37368</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-12-01T00:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap + rejecting filtered rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254321#M37369</link>
      <description>Hello alevy,&lt;BR /&gt;Thanks a lot !!!! You're my hero &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;Thanks to you, now I understand joins in Talend &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Didier.</description>
      <pubDate>Wed, 01 Dec 2010 07:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254321#M37369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T07:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap + rejecting filtered rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254322#M37370</link>
      <description>In fact I still have a problem :&lt;BR /&gt;column Frais.TVAFIFRS can be null and have a corresponding record in CATVA table.&lt;BR /&gt;the problem is that if I test "Frais.TVAFIFRS==null?null:Frais.TVAFIFRS" for the left join with CATVA.TV1CATVA, rows containing an empty value in TVAFIFRS are rejected&lt;BR /&gt;but if I set the test to "Frais.TVAFIFRS.equals("")?null:Frais.TVAFIFRS" - as in the screenshot - rows containing an empty value in TVAFIFRS are NOT rejected&lt;BR /&gt;Why ?</description>
      <pubDate>Wed, 01 Dec 2010 12:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254322#M37370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-01T12:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap + rejecting filtered rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254323#M37371</link>
      <description>Unlike SQL, Talend treats a join between two null fields as successful. There is no need to do "Frais.TVAFIFRS==null?null:Frais.TVAFIFRS" for the join. Just use "Frais.TVAFIFRS".
&lt;BR /&gt;However, an empty/zero-length String ("") is not the same thing as a null (in SQL or Talend). So you need to be sure about exactly what data Frais.TVAFIFRS and CATVA.TV1CATVA contain before trying to join them. If CATVA.TV1CATVA can contain both nulls and empty strings and you want them to be treated as the same thing for your join, you need to either change one to the other for CATVA.TV1CATVA before tMap or use a lookup condition rather than a direct join to cater for both possibilities.
&lt;BR /&gt;What you've done assumes that CATVA.TV1CATVA cannot contain empty strings (or at least that those should not result in a successful join) but Frais.TVAFIFRS can contain both and both should be matched to the null in CATVA.TV1CATVA.
&lt;BR /&gt;Note that whether your data contains empty-strings or nulls depends on the input component you use. tInput will reflect the actual data in the database table but tFileInput will treat all Strings as empty not null.</description>
      <pubDate>Wed, 01 Dec 2010 22:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254323#M37371</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2010-12-01T22:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tMap + rejecting filtered rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254324#M37372</link>
      <description>Hello alevy,
&lt;BR /&gt;in fact Frais is a file and CATVA is a mySQL table that can contain null. So "Frais.TVAFIFRS.equals("")?null:Frais.TVAFIFRS" seems to be the good way to join the empty value of Frais.TVAFIFRS and the null value of CATVA.TV1CATVA :-)
&lt;BR /&gt;Thanks again for your help !!!</description>
      <pubDate>Thu, 02 Dec 2010 07:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tMap-rejecting-filtered-rows/m-p/2254324#M37372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-02T07:02:58Z</dc:date>
    </item>
  </channel>
</rss>

