<?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: tMap - Assign null values to an Integer in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-Assign-null-values-to-an-Integer/m-p/2428124#M140318</link>
    <description>&lt;P&gt;Everything is checked for Nullable, but I found a getaround solution that works&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2024 08:45:31 GMT</pubDate>
    <dc:creator>quentin-vigne</dc:creator>
    <dc:date>2024-03-07T08:45:31Z</dc:date>
    <item>
      <title>tMap - Assign null values to an Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Assign-null-values-to-an-Integer/m-p/2427640#M140313</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;First of all, I know the difference between int and Integer, hence why I'm using the Integer type in my tmap by click the "nullable" checkbox.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a condition which either :&lt;/P&gt;
&lt;P&gt;- Get an Integer from a lookup table based on a specific condition&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- If the condition isn't respected but the value is still in the lookup table I want it to be null (not 0)&lt;/P&gt;
&lt;P&gt;- Else I'm parsing my existing value using Integer.parseInt(....)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I'm getting&amp;nbsp;java.lang.NumberFormatException: null because apparently I can't put null in my Integer column (even tho I should be able to do so)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there something else I should be doing ?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 09:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Assign-null-values-to-an-Integer/m-p/2427640#M140313</guid>
      <dc:creator>quentin-vigne</dc:creator>
      <dc:date>2024-03-06T09:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: tMap - Assign null values to an Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Assign-null-values-to-an-Integer/m-p/2428017#M140315</link>
      <description>&lt;P&gt;I'm not totally clear on what you are trying to do but maybe in the input data you are conditional joining too, check that the schema editor has that column as allowed to be Nullable. If not you will get a 0 as the schema doesn't allow NULLs. I got caught out by that.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 01:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Assign-null-values-to-an-Integer/m-p/2428017#M140315</guid>
      <dc:creator>BraidwoodIT</dc:creator>
      <dc:date>2024-03-07T01:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: tMap - Assign null values to an Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Assign-null-values-to-an-Integer/m-p/2428105#M140317</link>
      <description>&lt;P&gt;Can you show the expression you are using on tMap? If you just want to assign a null value to a Integer column, to do:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Define a context variable with Integer type, let the value as empty.&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;Make sure the Integer column is nullable, use the context variable in the place where you need to assign null value.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 08:11:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Assign-null-values-to-an-Integer/m-p/2428105#M140317</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-03-07T08:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: tMap - Assign null values to an Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Assign-null-values-to-an-Integer/m-p/2428124#M140318</link>
      <description>&lt;P&gt;Everything is checked for Nullable, but I found a getaround solution that works&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 08:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Assign-null-values-to-an-Integer/m-p/2428124#M140318</guid>
      <dc:creator>quentin-vigne</dc:creator>
      <dc:date>2024-03-07T08:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: tMap - Assign null values to an Integer</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-Assign-null-values-to-an-Integer/m-p/2428131#M140319</link>
      <description>&lt;P&gt;I found a solution since it wasn't working.&lt;/P&gt;
&lt;P&gt;It looks like I could not put in the same "if - else" condition a null result and an Integer.parseInt(...)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I ended up doing was that using the String format in the Var section of the tMap and in the output table I did :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Var.code_societe!=null?
	Integer.parseInt(Var.code_societe)
:
	null  &lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2024 08:53:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-Assign-null-values-to-an-Integer/m-p/2428131#M140319</guid>
      <dc:creator>quentin-vigne</dc:creator>
      <dc:date>2024-03-07T08:53:26Z</dc:date>
    </item>
  </channel>
</rss>

