<?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: Multiple inputs join tMap into mysqloutput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Multiple-inputs-join-tMap-into-mysqloutput/m-p/2346688#M114064</link>
    <description>my screenshots didn't show up:</description>
    <pubDate>Mon, 18 Apr 2016 19:13:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-18T19:13:45Z</dc:date>
    <item>
      <title>Multiple inputs join tMap into mysqloutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-inputs-join-tMap-into-mysqloutput/m-p/2346687#M114063</link>
      <description>Hello everyone! 
&lt;BR /&gt;I'm new to Talend ETL, and i'm facing a few problems to make my job work. 
&lt;BR /&gt;Here's the problem: 
&lt;BR /&gt;&amp;nbsp;I have three inputs: 
&lt;BR /&gt; 
&lt;BR /&gt;an excel file that i've already used to insert the Company Name in a previous job; 
&lt;BR /&gt;a mysqlInput (company_size table) containing all the possible company sizes; 
&lt;BR /&gt;another mysqlInput (company table) with the inserted Company Name. 
&lt;BR /&gt; 
&lt;BR /&gt;This excel file, contains an estimated company size in a string (201-500 employees, for example), this size is escaped by a Java script to return the min and max size of the company. 
&lt;BR /&gt;Those sizes are used to return the&amp;nbsp;organisation_size_id from company_size table. 
&lt;BR /&gt;So, what i want to do is to insert into an&amp;nbsp;associative entity containing organisation_size_id and party_id (from company). 
&lt;BR /&gt;But i'm getting this error: 
&lt;BR /&gt; 
&lt;PRE&gt;Exception in component tMysqlInput_1&lt;BR /&gt;com.mysql.jdbc.exceptions.jdbc4.MySQLDataException: '4.294967295E9' in column '3' is outside valid range for the datatype INTEGER.&lt;BR /&gt;	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)&lt;BR /&gt;	at java.lang.reflect.Constructor.newInstance(Unknown Source)&lt;BR /&gt;	at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)&lt;BR /&gt;	at com.mysql.jdbc.Util.getInstance(Util.java:384)&lt;BR /&gt;	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1025)&lt;BR /&gt;	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)&lt;BR /&gt;	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:973)&lt;BR /&gt;	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:918)&lt;BR /&gt;	at com.mysql.jdbc.ResultSetImpl.throwRangeException(ResultSetImpl.java:7875)&lt;BR /&gt;	at com.mysql.jdbc.ResultSetImpl.parseIntAsDouble(ResultSetImpl.java:7037)&lt;BR /&gt;	at com.mysql.jdbc.ResultSetImpl.getInt(ResultSetImpl.java:2735)&lt;BR /&gt;	at organisation.c_organisationsize_0_1.c_OrganisationSize.tMysqlInput_1Process(c_OrganisationSize.java:2531)&lt;BR /&gt;	at organisation.c_organisationsize_0_1.c_OrganisationSize.tFileInputExcel_1Process(c_OrganisationSize.java:1052)&lt;BR /&gt;	at organisation.c_organisationsize_0_1.c_OrganisationSize.runJobInTOS(c_OrganisationSize.java:3640)&lt;BR /&gt;	at organisation.c_organisationsize_0_1.c_OrganisationSize.main(c_OrganisationSize.java:3497)&lt;/PRE&gt; 
&lt;BR /&gt;Code responsible for getting min and max size: 
&lt;BR /&gt; 
&lt;PRE&gt;	/**&lt;BR /&gt;	 * Try to escape the string to find min and max company size&lt;BR /&gt;	 * if minSize is true, returns min company size, else, max company size&lt;BR /&gt;	 * @param companySize&lt;BR /&gt;	 * @param minSize&lt;BR /&gt;	 * @return&lt;BR /&gt;	 */&lt;BR /&gt;	public static int getCompanySize( String companySize, boolean minSize ){&lt;BR /&gt;		int min = 0;&lt;BR /&gt;		int max = 0;&lt;BR /&gt;		&lt;BR /&gt;		if( companySize.isEmpty() )&lt;BR /&gt;			return 0;&lt;BR /&gt;		companySize = companySize.replaceAll("to", "-");&lt;BR /&gt;		if( companySize.indexOf('-') &amp;gt; 0 ){&lt;BR /&gt;			String[] sizes = companySize.split("-");&lt;BR /&gt;			min = Integer.parseInt(sizes);&lt;BR /&gt;			max = Integer.parseInt(sizes);&lt;BR /&gt;		} else {&lt;BR /&gt;			return Integer.parseInt(companySize);&lt;BR /&gt;		}&lt;BR /&gt;		&lt;BR /&gt;		if( minSize )&lt;BR /&gt;			return min;&lt;BR /&gt;		return max;&lt;BR /&gt;	}&lt;/PRE&gt; 
&lt;BR /&gt; &amp;nbsp; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt; 
&lt;IMG src="https://community.qlik.com/" /&gt; 
&lt;BR /&gt;Can anyone help me please? Thanks!&amp;nbsp;</description>
      <pubDate>Mon, 18 Apr 2016 19:11:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-inputs-join-tMap-into-mysqloutput/m-p/2346687#M114063</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-18T19:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple inputs join tMap into mysqloutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-inputs-join-tMap-into-mysqloutput/m-p/2346688#M114064</link>
      <description>my screenshots didn't show up:</description>
      <pubDate>Mon, 18 Apr 2016 19:13:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-inputs-join-tMap-into-mysqloutput/m-p/2346688#M114064</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-18T19:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple inputs join tMap into mysqloutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Multiple-inputs-join-tMap-into-mysqloutput/m-p/2346689#M114065</link>
      <description>I resolved the problem, i inserted an unsigned integer&amp;nbsp;value in my lookup mysql table and Talend couldn't understand as Integer, so i just changed&amp;nbsp;4294967295&amp;nbsp;to 10001, and it works now. 
&lt;BR /&gt;Job&amp;nbsp;done!&amp;nbsp; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 19 Apr 2016 18:34:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Multiple-inputs-join-tMap-into-mysqloutput/m-p/2346689#M114065</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-19T18:34:32Z</dc:date>
    </item>
  </channel>
</rss>

