<?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: For input string: &amp;quot;0641009B&amp;quot; Error in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/For-input-string-quot-0641009B-quot-Error/m-p/2414798#M140110</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Try to parse your data into String with tConvertType before apply the ternary if. Once all your data are into String type tou can apply your ternary if.&lt;/P&gt;
&lt;P&gt;If you need after the transformation, you can parse into Int depending if the source accepts Int or String.&lt;/P&gt;
&lt;P&gt;This error tells you that 'B' is not a numerical, so you can't change type from String to Int for this kind of data&lt;/P&gt;</description>
    <pubDate>Mon, 05 Feb 2024 10:54:36 GMT</pubDate>
    <dc:creator>jeoste</dc:creator>
    <dc:date>2024-02-05T10:54:36Z</dc:date>
    <item>
      <title>For input string: "0641009B" Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/For-input-string-quot-0641009B-quot-Error/m-p/2360935#M125412</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I would like to seek some help about the error I am getting below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially my concern was to remove the preceding zero values from the field - SerialNum. The expression worked from the other columns, so no more preceding zero values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;To remove the preceding zeros: &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;StringHandling.LEFT(row2.SERIALNUM,1).equals("0")?&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Integer.toString(Integer.parseInt(row2.SERIALNUM)):row2.SERIALNUM&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, If I applied the expression to the SerialNum column it is giving me an error below. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Exception in component tMap_1 &lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;java.lang.NumberFormatException: For input string: "0641009B"&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to change the original data type from String to Char when loading it to Snowflake, but still, it won't work. It says, "cannot convert string to char".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea how to resolve it?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/For-input-string-quot-0641009B-quot-Error/m-p/2360935#M125412</guid>
      <dc:creator>Mitz</dc:creator>
      <dc:date>2024-11-15T21:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: For input string: "0641009B" Error</title>
      <link>https://community.qlik.com/t5/Talend-Studio/For-input-string-quot-0641009B-quot-Error/m-p/2414798#M140110</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Try to parse your data into String with tConvertType before apply the ternary if. Once all your data are into String type tou can apply your ternary if.&lt;/P&gt;
&lt;P&gt;If you need after the transformation, you can parse into Int depending if the source accepts Int or String.&lt;/P&gt;
&lt;P&gt;This error tells you that 'B' is not a numerical, so you can't change type from String to Int for this kind of data&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 10:54:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/For-input-string-quot-0641009B-quot-Error/m-p/2414798#M140110</guid>
      <dc:creator>jeoste</dc:creator>
      <dc:date>2024-02-05T10:54:36Z</dc:date>
    </item>
  </channel>
</rss>

