<?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 Error] NumberFormatException: For input string in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362537#M126657</link>
    <description>Do you know the reason of this error?&lt;BR /&gt;It was working fine before.</description>
    <pubDate>Mon, 04 Jun 2018 11:51:45 GMT</pubDate>
    <dc:creator>RA6</dc:creator>
    <dc:date>2018-06-04T11:51:45Z</dc:date>
    <item>
      <title>[Tmap Error] NumberFormatException: For input string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362535#M126655</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There's a simple job below:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture11.JPG" style="width: 753px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LydY.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152522i366283BC0F64B9E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LydY.jpg" alt="0683p000009LydY.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Here is my input csv:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture16.JPG" style="width: 268px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyqM.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143072iDE6865083D520771/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyqM.jpg" alt="0683p000009LyqM.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My Tmap in details:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture18.JPG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyqR.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141844i272910BC7D95ACAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyqR.jpg" alt="0683p000009LyqR.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Condition1 is working well which remove space and replace comma with dot and null to "0:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;row1.newColumn1==null | row1.newColumn1.equals("")?"0":
row1.newColumn1.contains(",")?row1.newColumn1.replace(",", "."):
row1.newColumn1.contains(" ")?row1.newColumn1.replace(" ", ""):
row1.newColumn1 &lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Condition2 is working well too (same as condition one)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;row1.newColumn2==null | row1.newColumn2.equals("")?"0":
row1.newColumn2.contains(",")?row1.newColumn2.replace(",", "."):
row1.newColumn2.contains(" ")?row1.newColumn2.replace(" ", ""):
row1.newColumn2 &lt;/PRE&gt; 
&lt;P&gt;Condition3: ERROR found: (Trying to keep value to two decimal place and of type string)&lt;/P&gt; 
&lt;PRE&gt;String.format("%.5f", (Double.parseDouble(Var.var1) - Double.parseDouble(Var.var2))) &lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture14.JPG" style="width: 665px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LyjX.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154688i16BB7181FD509846/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LyjX.jpg" alt="0683p000009LyjX.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Tried hard but couldn't identify the issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can you advice please?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you very much.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362535#M126655</guid>
      <dc:creator>RA6</dc:creator>
      <dc:date>2024-11-16T08:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: [Tmap Error] NumberFormatException: For input string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362536#M126656</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMIZAA4"&gt;@asadasing&lt;/A&gt;,cant you try to convet to Float instead of Double,your issue will be resloved.&lt;/P&gt;
&lt;P&gt;example:-&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Float.parseFloat()&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 10:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362536#M126656</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-06-04T10:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: [Tmap Error] NumberFormatException: For input string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362537#M126657</link>
      <description>Do you know the reason of this error?&lt;BR /&gt;It was working fine before.</description>
      <pubDate>Mon, 04 Jun 2018 11:51:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362537#M126657</guid>
      <dc:creator>RA6</dc:creator>
      <dc:date>2018-06-04T11:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: [Tmap Error] NumberFormatException: For input string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362538#M126658</link>
      <description>&lt;P&gt;The solution you provided is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried to convert using float and encountering same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Float.valueOf(String)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And also&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Float.parseFloat(String)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can you advice please?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 12:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362538#M126658</guid>
      <dc:creator>RA6</dc:creator>
      <dc:date>2018-06-04T12:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: [Tmap Error] NumberFormatException: For input string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362539#M126659</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMIZAA4"&gt;@asadasing&lt;/A&gt;,your have space or tab between 1&amp;nbsp;and 4 of 1 430.76. becuase of the your were getting error,you nee to replace that with empty.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 13:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362539#M126659</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-06-04T13:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: [Tmap Error] NumberFormatException: For input string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362540#M126660</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMIZAA4"&gt;@asadasing&lt;/A&gt;,can you re-write cloumn1 and &lt;SPAN&gt;cloumn2,variable expressions as below.should work if you have space issue.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;row3.newColumn2==null | row3.newColumn2.equals("")?"0"&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;row3.newColumn2.replace(",",".")).replace(" ","")&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 13:20:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362540#M126660</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-06-04T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: [Tmap Error] NumberFormatException: For input string</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362541#M126661</link>
      <description>&lt;P&gt;This one works fine.&lt;/P&gt;&lt;P&gt;Indeed the contain function (.contain) was not working OR it could not recognize the space in the string.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much. Issue marked as solved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;asadasing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jun 2018 14:05:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Tmap-Error-NumberFormatException-For-input-string/m-p/2362541#M126661</guid>
      <dc:creator>RA6</dc:creator>
      <dc:date>2018-06-04T14:05:22Z</dc:date>
    </item>
  </channel>
</rss>

