<?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: String to int conversion in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265856#M45263</link>
    <description>Hi Jim, 
&lt;BR /&gt;a) you code looks correct. 
&lt;BR /&gt;b) the example of nhaumont too. So if you use it the same way it should work. 
&lt;BR /&gt;If the error still exists, please give us the following two information: 
&lt;BR /&gt;- The generated code around the error. You'll have a line number where the error occurs, switch to the code view and copy some line berore and after this line number. 
&lt;BR /&gt;- Give us a screen shot of the actual component where it happens. Search the code upwards to next comment to see the component name 
&lt;BR /&gt;Bye 
&lt;BR /&gt;Volker Brehm</description>
    <pubDate>Fri, 13 Feb 2009 05:36:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-02-13T05:36:32Z</dc:date>
    <item>
      <title>String to int conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265849#M45256</link>
      <description>Hello,
&lt;BR /&gt;I am trying to convert a String into an int. I am using the expression:
&lt;BR /&gt;Integer.parseInt(Name.SECURITY_LEVEL)
&lt;BR /&gt;What I get when I test the expression is:
&lt;BR /&gt;Exception in component tRowGenerator_1
&lt;BR /&gt;and
&lt;BR /&gt;Multiple markers at this line
&lt;BR /&gt; - Syntax error on token ")", AssignmentOperator expected after 
&lt;BR /&gt; this token
&lt;BR /&gt; - The left-hand side of an assignment must be a variable
&lt;BR /&gt;I don't understand. Doesn't this expression return an int?
&lt;BR /&gt;Thanks for any help,
&lt;BR /&gt;Jim Long</description>
      <pubDate>Sat, 16 Nov 2024 14:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265849#M45256</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T14:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: String to int conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265850#M45257</link>
      <description>Hi Jim,&lt;BR /&gt;where did you entered that code? In a tMap?&lt;BR /&gt;Bye&lt;BR /&gt;Volker</description>
      <pubDate>Thu, 12 Feb 2009 21:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265850#M45257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-12T21:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: String to int conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265851#M45258</link>
      <description>Hello Volker,
&lt;BR /&gt;Yes, this is in a tMap. Name.SECURITY_LEVEL is a number String (i.e. "1", "3", "9"). The new schema has an integer for this field. The transformation is simple, yet I am mystified by the error message I am getting.
&lt;BR /&gt;Thanks,
&lt;BR /&gt; Jim</description>
      <pubDate>Thu, 12 Feb 2009 23:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265851#M45258</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-02-12T23:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: String to int conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265852#M45259</link>
      <description>Hello Volker, 
&lt;BR /&gt;I opened my project again and looked at the tMap. I am getting a new error message now. My expression is: 
&lt;BR /&gt;Integer.parseInt(Name.SECURITY_LEVEL) 
&lt;BR /&gt;The message I am getting is: 
&lt;BR /&gt;This method must return a result of type int. 
&lt;BR /&gt;parseInt is a public static int. 
&lt;BR /&gt;Thanks, 
&lt;BR /&gt;Jim Long</description>
      <pubDate>Thu, 12 Feb 2009 23:21:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265852#M45259</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-02-12T23:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: String to int conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265853#M45260</link>
      <description>Hi,&lt;BR /&gt;I can see you have this error "Exception in component tRowGenerator_1" so the error might be even before the tMap component.&lt;BR /&gt;You're right, this method returns an Integer. The tmap should look like this.</description>
      <pubDate>Thu, 12 Feb 2009 23:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265853#M45260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-12T23:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: String to int conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265854#M45261</link>
      <description>Hello Volker,&lt;BR /&gt;....hmmm.&lt;BR /&gt;This is the transformation I have entered. I will pull the data out into a tLogRow to see what is coming out of the ODBC data source. I will let you know what I discover.&lt;BR /&gt;Thanks,&lt;BR /&gt;Jim Long</description>
      <pubDate>Fri, 13 Feb 2009 00:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265854#M45261</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-02-13T00:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: String to int conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265855#M45262</link>
      <description>Hello Volker,
&lt;BR /&gt;I pulled the data into into a tLogRow and I am getting the same result. However, even through the expression builder reports an error, the function seems to convert the String to an Integer just fine.
&lt;BR /&gt;Let me know if you learn anything else.
&lt;BR /&gt;Thanks,
&lt;BR /&gt;Jim Long</description>
      <pubDate>Fri, 13 Feb 2009 03:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265855#M45262</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-02-13T03:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: String to int conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265856#M45263</link>
      <description>Hi Jim, 
&lt;BR /&gt;a) you code looks correct. 
&lt;BR /&gt;b) the example of nhaumont too. So if you use it the same way it should work. 
&lt;BR /&gt;If the error still exists, please give us the following two information: 
&lt;BR /&gt;- The generated code around the error. You'll have a line number where the error occurs, switch to the code view and copy some line berore and after this line number. 
&lt;BR /&gt;- Give us a screen shot of the actual component where it happens. Search the code upwards to next comment to see the component name 
&lt;BR /&gt;Bye 
&lt;BR /&gt;Volker Brehm</description>
      <pubDate>Fri, 13 Feb 2009 05:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265856#M45263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-13T05:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: String to int conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265857#M45264</link>
      <description>Hello, 
&lt;BR /&gt;as nhaumont suggested, your error is not in the tMap but in the tRowGenerator_1. 
&lt;BR /&gt;Can you post a screenshot of it. 
&lt;BR /&gt;regards, 
&lt;BR /&gt;benjamin</description>
      <pubDate>Fri, 13 Feb 2009 10:00:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265857#M45264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-13T10:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: String to int conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265858#M45265</link>
      <description>Hi benjamin, hi nhaumont, 
&lt;BR /&gt;I think the message "Exception in component tRowGenerator_1" is related to the created class in the code (not the component). So it should happen in every component and to take a look into the code is the only way to be sure. 
&lt;BR /&gt;Bye 
&lt;BR /&gt;Volker</description>
      <pubDate>Fri, 13 Feb 2009 13:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265858#M45265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-13T13:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: String to int conversion</title>
      <link>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265859#M45266</link>
      <description>Hello, 
  &lt;BR /&gt;Was any solution to this problem ever found? I am experiencing the same problem... any advice appreciated. Based on the responses above, I am attaching an image of the tMap and the file with tRowGenerator_1 code. 
  &lt;BR /&gt;Thanks, 
  &lt;BR /&gt;Jeremy 
  &lt;BR /&gt;EDIT: it did not let me attach the code, so pasting it in here. file Expression_builder_RowGenerator2.java: 
  &lt;BR /&gt; 
  &lt;BR /&gt;// ============================================================================ 
  &lt;BR /&gt;// 
  &lt;BR /&gt;// Copyright (c) 2005-2010, Talend Inc. 
  &lt;BR /&gt;// 
  &lt;BR /&gt;// This source code has been automatically generated by_Talend Open Studio for Data Integration 
  &lt;BR /&gt;// / JobDesigner (CodeGenerator version 5.0.2.r78327) 
  &lt;BR /&gt;// You can find more information about Talend products at 
  &lt;A href="http://www.talend.com"&gt;www.talend.com&lt;/A&gt;. 
  &lt;BR /&gt;// You may distribute this code under the terms of the GNU LGPL license 
  &lt;BR /&gt;// . &amp;lt;
 &lt;BR /&gt;&lt;BR /&gt;To see the whole post, download it &lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MdDq"&gt;here&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009MdDq"&gt;OriginalPost.pdf&lt;/A&gt;</description>
      <pubDate>Thu, 30 Aug 2012 15:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/String-to-int-conversion/m-p/2265859#M45266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-30T15:57:04Z</dc:date>
    </item>
  </channel>
</rss>

