<?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 NullPointerException when converting integer to string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349418#M116404</link>
    <description>&lt;P&gt;&amp;nbsp;Here are the screen shots of my job.&amp;nbsp; Yes, I'm getting the error message in the Run console.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzGP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154906i6C98B7B647CD1A24/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzGP.png" alt="0683p000009LzGP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture5.PNG" style="width: 660px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzGU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142283iD74C8406213ECC15/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzGU.png" alt="0683p000009LzGU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Jul 2018 15:01:52 GMT</pubDate>
    <dc:creator>rp2018</dc:creator>
    <dc:date>2018-07-13T15:01:52Z</dc:date>
    <item>
      <title>Tmap NullPointerException when converting integer to string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349413#M116399</link>
      <description>&lt;P&gt;I'm trying to convert integer to string datatype for a column which has some null values and the data gets loaded, but keep getting&amp;nbsp;java.lang.NullPointerException in my Run window.&amp;nbsp; What causes this even the data is loaded to the output table?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Doing conversion in tmap using&amp;nbsp;Relational.ISNULL(row1.column)?null&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9p6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134116iFBD5D7F21624A744/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9p6.png" alt="0683p000009M9p6.png" /&gt;&lt;/span&gt;tring.valueOf(row1.column)&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In Tmap, output column is selected as string.&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; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 21:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349413#M116399</guid>
      <dc:creator>rp2018</dc:creator>
      <dc:date>2018-07-12T21:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap NullPointerException when converting integer to string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349414#M116400</link>
      <description>&lt;P&gt;Make sure in your output ... the new column is able to except null values, so if its an existing table... make sure null is allowed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;row1.column = null&lt;BR /&gt;String.valueOf(row1.column) will return "null"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;PRE&gt;row1.column==null ? null : ""+row1.column&lt;/PRE&gt;&lt;P&gt;or:&lt;/P&gt;&lt;PRE&gt;row1.column==null ? null : Integer.toString(row1.column)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 21:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349414#M116400</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-07-12T21:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap NullPointerException when converting integer to string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349415#M116401</link>
      <description>&lt;P&gt;I've tried both of these commands and it still gives me the same error.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE:&amp;nbsp; It does load null values to the output table, but the error still comes up in the run window.&amp;nbsp; Total # of input records matches the output load records.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 21:52:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349415#M116401</guid>
      <dc:creator>rp2018</dc:creator>
      <dc:date>2018-07-12T21:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap NullPointerException when converting integer to string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349416#M116402</link>
      <description>Could you please attach your process flow... and also tmap ... Im positive something else is going wrong...&lt;BR /&gt;run window you mean console?</description>
      <pubDate>Thu, 12 Jul 2018 23:23:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349416#M116402</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-07-12T23:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap NullPointerException when converting integer to string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349417#M116403</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOUoAAO"&gt;@rp2018&lt;/A&gt;,try the below way. and let me know&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(row1.col).toString()&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 07:26:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349417#M116403</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-07-13T07:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap NullPointerException when converting integer to string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349418#M116404</link>
      <description>&lt;P&gt;&amp;nbsp;Here are the screen shots of my job.&amp;nbsp; Yes, I'm getting the error message in the Run console.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzGP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154906i6C98B7B647CD1A24/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzGP.png" alt="0683p000009LzGP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture5.PNG" style="width: 660px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzGU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142283iD74C8406213ECC15/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzGU.png" alt="0683p000009LzGU.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2018 15:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349418#M116404</guid>
      <dc:creator>rp2018</dc:creator>
      <dc:date>2018-07-13T15:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tmap NullPointerException when converting integer to string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349419#M116405</link>
      <description>Looks absolutely fine... Are you sure your input table row1.column is of int type in the database table? and not a nvarchar(10) ? Could you put a logrow between input and tmap and also between tmap and output.&lt;BR /&gt;&lt;BR /&gt;Note:&lt;BR /&gt;Some type conversion is taking place within java-code, int is a primitive type and cant be null, Integer is of object type and can be null.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Jul 2018 15:50:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-NullPointerException-when-converting-integer-to-string/m-p/2349419#M116405</guid>
      <dc:creator>Jesperrekuh</dc:creator>
      <dc:date>2018-07-13T15:50:19Z</dc:date>
    </item>
  </channel>
</rss>

