<?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: TOS 7.3 - tMap - TalendDate.diffDate why we can not have null as ouput ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361424#M125797</link>
    <description />
    <pubDate>Thu, 19 Aug 2021 05:20:14 GMT</pubDate>
    <dc:creator>Urba34</dc:creator>
    <dc:date>2021-08-19T05:20:14Z</dc:date>
    <item>
      <title>TOS 7.3 - tMap - TalendDate.diffDate why we can not have null as ouput ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361421#M125794</link>
      <description>&lt;P&gt;Hi evryone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using  this formula on a tMap component in var section&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;row1.tech_setr1appointementdate!=null&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;row1.tech_setr2date!=null&lt;/P&gt;&lt;P&gt;)?&lt;/P&gt;&lt;P&gt;TalendDate.diffDate(row1.tech_setr2date,row1.tech_setr1appointementdate,"dd"):&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; it's working  but when i trie to replace 0 by "null" then i have a errror "java.lang.NullPointerException: null"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;row1.tech_setr1appointementdate!=null&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;row1.tech_setr2date!=null&lt;/P&gt;&lt;P&gt;)?&lt;/P&gt;&lt;P&gt;TalendDate.diffDate(row1.tech_setr2date,row1.tech_setr1appointementdate,"dd"):&lt;/P&gt;&lt;P&gt;null&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have allow the nullable result on the ouput&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Ht29mAAB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144340i0580AE0CE03B19C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Ht29mAAB.png" alt="0695b00000Ht29mAAB.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:50:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361421#M125794</guid>
      <dc:creator>Urba34</dc:creator>
      <dc:date>2024-11-15T23:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: TOS 7.3 - tMap - TalendDate.diffDate why we can not have null as ouput ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361422#M125795</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;try to use this expression on the output rather than Var area, there is no Nullable option in the Var area. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 04:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361422#M125795</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-19T04:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: TOS 7.3 - tMap - TalendDate.diffDate why we can not have null as ouput ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361423#M125796</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick answer. I got the same result&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 05:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361423#M125796</guid>
      <dc:creator>Urba34</dc:creator>
      <dc:date>2021-08-19T05:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: TOS 7.3 - tMap - TalendDate.diffDate why we can not have null as ouput ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361424#M125797</link>
      <description />
      <pubDate>Thu, 19 Aug 2021 05:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361424#M125797</guid>
      <dc:creator>Urba34</dc:creator>
      <dc:date>2021-08-19T05:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: TOS 7.3 - tMap - TalendDate.diffDate why we can not have null as ouput ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361425#M125798</link>
      <description>&lt;P&gt;I am not able to reproduce the NPE when I set it to null for a long type. Can you try this expression:&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;row1.tech_setr1appointementdate==null&lt;/P&gt;&lt;P&gt;||&lt;/P&gt;&lt;P&gt;row1.tech_setr2date==null&lt;/P&gt;&lt;P&gt;)?null:TalendDate.diffDate(row1.tech_setr2date,row1.tech_setr1appointementdate,"dd")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 08:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361425#M125798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-19T08:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: TOS 7.3 - tMap - TalendDate.diffDate why we can not have null as ouput ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361426#M125799</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately I have the same error&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 13:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361426#M125799</guid>
      <dc:creator>Urba34</dc:creator>
      <dc:date>2021-08-19T13:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: TOS 7.3 - tMap - TalendDate.diffDate why we can not have null as ouput ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361427#M125800</link>
      <description>&lt;P&gt;hi back,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it's about a parameters in my TOS 7.3 no ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 08:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361427#M125800</guid>
      <dc:creator>Urba34</dc:creator>
      <dc:date>2021-08-20T08:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: TOS 7.3 - tMap - TalendDate.diffDate why we can not have null as ouput ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361428#M125801</link>
      <description>&lt;P&gt;Hi for the futur guys how pass throw this post the answer was to copy past &lt;/P&gt;&lt;P&gt;this code &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;row1.tech_setr1appointementdate!=null&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;amp;&lt;/P&gt;&lt;P&gt;row1.tech_setr2date!=null&lt;/P&gt;&lt;P&gt;)?&lt;/P&gt;&lt;P&gt;TalendDate.diffDate(row1.tech_setr2date,row1.tech_setr1appointementdate,"dd"):&lt;/P&gt;&lt;P&gt;null&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;directly on the output et and not on the variable&lt;/P&gt;</description>
      <pubDate>Fri, 20 Aug 2021 15:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361428#M125801</guid>
      <dc:creator>Urba34</dc:creator>
      <dc:date>2021-08-20T15:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: TOS 7.3 - tMap - TalendDate.diffDate why we can not have null as ouput ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361429#M125802</link>
      <description>&lt;P&gt;I see you marked this question as resolved  and select my answered as best answer. Thanks for your confirmation and feedback. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Mon, 23 Aug 2021 07:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-7-3-tMap-TalendDate-diffDate-why-we-can-not-have-null-as/m-p/2361429#M125802</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-23T07:32:54Z</dc:date>
    </item>
  </channel>
</rss>

