<?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: The value supplied cannot be converted to INTEGER in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303665#M75516</link>
    <description>hi,&lt;BR /&gt;Thanks for the reply. The error has been resolved after changing the select query, but while trying to insert into the target table. I need to apply substring on one of the column which I have mapped like&lt;BR /&gt;row1.DB_LOOKUP_PAY_PROVIDER.substring(0,24) in the tmap.&lt;BR /&gt;While execution I m getting the below error. &lt;BR /&gt;Exception in component tMap_1&lt;BR /&gt;java.lang.StringIndexOutOfBoundsException: String index out of range: 24&lt;BR /&gt;	at java.lang.String.substring(Unknown Source)&lt;BR /&gt;	at edw.psp_dim_0_1.PSP_DIM.tMSSqlInput_1Process(PSP_DIM.java:1015)&lt;BR /&gt;	at edw.psp_dim_0_1.PSP_DIM.runJobInTOS(PSP_DIM.java:1460)&lt;BR /&gt;	at edw.psp_dim_0_1.PSP_DIM.main(PSP_DIM.java:1328)&lt;BR /&gt;Kindly suggest.&lt;BR /&gt;Thanks&lt;BR /&gt;Siva</description>
    <pubDate>Tue, 29 May 2012 10:04:00 GMT</pubDate>
    <dc:creator>sivaa_m</dc:creator>
    <dc:date>2012-05-29T10:04:00Z</dc:date>
    <item>
      <title>The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303655#M75506</link>
      <description>Hi experts,
&lt;BR /&gt;I m new to Talend. I m currently working on the DW project. Through online tutorial I have learnt how to do mapping using tmap. I need to insert data from the mssql table to another mssql table. From source only four columns need to be inserted into the target table. All are varchar columns. First tried to view the data of the source through tLogRow, while execution I m getting the below error
&lt;BR /&gt;Exception in component tMSSqlInput_1
&lt;BR /&gt;java.sql.SQLException: The value supplied cannot be converted to INTEGER.
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.Support.convert(Support.java:653)
&lt;BR /&gt; at net.sourceforge.jtds.jdbc.JtdsResultSet.getInt(JtdsResultSet.java:641)
&lt;BR /&gt; at edw.psp_dim_0_1.PSP_DIM.tMSSqlInput_1Process(PSP_DIM.java:778)
&lt;BR /&gt; at edw.psp_dim_0_1.PSP_DIM.runJobInTOS(PSP_DIM.java:1268)
&lt;BR /&gt; at edw.psp_dim_0_1.PSP_DIM.main(PSP_DIM.java:1136)
&lt;BR /&gt;As there are no integer column, I could find why this error has occurred. Kindly do the needful. I have attached the screenshot for further use.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Siva</description>
      <pubDate>Mon, 28 May 2012 08:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303655#M75506</guid>
      <dc:creator>sivaa_m</dc:creator>
      <dc:date>2012-05-28T08:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303656#M75507</link>
      <description>Hi Siva
&lt;BR /&gt;Welcome to Talend Community!
&lt;BR /&gt;I see a yellow warning at the right top corner of tMSSQLInput. Hover your mouse on this warning. Is there any hint?
&lt;BR /&gt;Some of the tMSSQLInput settings must be wrong. You might retrieve schema from metadata-&amp;gt;DB connections. It's a more easier way.
&lt;BR /&gt;Regards,
&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 28 May 2012 08:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303656#M75507</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-28T08:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303657#M75508</link>
      <description>Hi,&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;I checked the warning, but no hint got displayed in the tooltip for the MSSqlInput. Please find the attached screenshot.&lt;BR /&gt;Thanks&lt;BR /&gt;Siva</description>
      <pubDate>Mon, 28 May 2012 10:26:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303657#M75508</guid>
      <dc:creator>sivaa_m</dc:creator>
      <dc:date>2012-05-28T10:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303658#M75509</link>
      <description>Hi Siva&lt;BR /&gt;Maybe the query of tMSSQLInput is different from the schema of this component.&lt;BR /&gt;You'd better check it. Or retrieve schema from metadata-&amp;gt; DB Connection.&lt;BR /&gt;Regards,&lt;BR /&gt;Pedro</description>
      <pubDate>Mon, 28 May 2012 10:30:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303658#M75509</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-28T10:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303659#M75510</link>
      <description>Are you trying to get string data into an integer column?</description>
      <pubDate>Mon, 28 May 2012 10:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303659#M75510</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-05-28T10:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303660#M75511</link>
      <description>Hi Pedro,&lt;BR /&gt;I retrieved the schema from the metadata -&amp;gt; DB Connections only. Please find the attached select query used in the MSSqlInput.&lt;BR /&gt;SELECT PSP_STAGE.DB_LOOKUP_PAY_PROVIDER,&lt;BR /&gt;		PSP_STAGE.TXN_TYPE,&lt;BR /&gt;		PSP_STAGE.CREDIT_CARD,&lt;BR /&gt;		PSP_STAGE.ANALYST_GROUPING&lt;BR /&gt;FROM	PSP_STAGE&lt;BR /&gt;these are columns which i need to get inserted into the target, there are also other columns in the PSP_STAGE table, which are not used, whether bcoz of it, the error is occurring.&lt;BR /&gt;Kindly suggest.&lt;BR /&gt;Thanks&lt;BR /&gt;Siva</description>
      <pubDate>Mon, 28 May 2012 11:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303660#M75511</guid>
      <dc:creator>sivaa_m</dc:creator>
      <dc:date>2012-05-28T11:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303661#M75512</link>
      <description>But are you reading a string into an integer? What does the schema look like?&lt;BR /&gt;Does your schema match the query?</description>
      <pubDate>Mon, 28 May 2012 11:44:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303661#M75512</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-05-28T11:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303662#M75513</link>
      <description>Hey,&lt;BR /&gt;Could you please post the schema of your "PSP_STAGE" component in talend and the datatypes of the table PSP_STAGE?&lt;BR /&gt;Regards,&lt;BR /&gt;Madhao</description>
      <pubDate>Mon, 28 May 2012 11:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303662#M75513</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-28T11:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303663#M75514</link>
      <description>Hi,&lt;BR /&gt;Please find the attached screenshot of the PSP_STAGE schema definition.&lt;BR /&gt;Thanks&lt;BR /&gt;Siva</description>
      <pubDate>Mon, 28 May 2012 11:58:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303663#M75514</guid>
      <dc:creator>sivaa_m</dc:creator>
      <dc:date>2012-05-28T11:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303664#M75515</link>
      <description>Well there's the answer. Your schema doesn't match the query. Click on the guess schema button.</description>
      <pubDate>Mon, 28 May 2012 12:00:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303664#M75515</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-05-28T12:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303665#M75516</link>
      <description>hi,&lt;BR /&gt;Thanks for the reply. The error has been resolved after changing the select query, but while trying to insert into the target table. I need to apply substring on one of the column which I have mapped like&lt;BR /&gt;row1.DB_LOOKUP_PAY_PROVIDER.substring(0,24) in the tmap.&lt;BR /&gt;While execution I m getting the below error. &lt;BR /&gt;Exception in component tMap_1&lt;BR /&gt;java.lang.StringIndexOutOfBoundsException: String index out of range: 24&lt;BR /&gt;	at java.lang.String.substring(Unknown Source)&lt;BR /&gt;	at edw.psp_dim_0_1.PSP_DIM.tMSSqlInput_1Process(PSP_DIM.java:1015)&lt;BR /&gt;	at edw.psp_dim_0_1.PSP_DIM.runJobInTOS(PSP_DIM.java:1460)&lt;BR /&gt;	at edw.psp_dim_0_1.PSP_DIM.main(PSP_DIM.java:1328)&lt;BR /&gt;Kindly suggest.&lt;BR /&gt;Thanks&lt;BR /&gt;Siva</description>
      <pubDate>Tue, 29 May 2012 10:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303665#M75516</guid>
      <dc:creator>sivaa_m</dc:creator>
      <dc:date>2012-05-29T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303666#M75517</link>
      <description>try using the Long data type instead of the Integer. It can handle larger numbers.</description>
      <pubDate>Tue, 29 May 2012 17:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303666#M75517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-05-29T17:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: The value supplied cannot be converted to INTEGER</title>
      <link>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303667#M75518</link>
      <description>That's because your string is less than 24 characters.</description>
      <pubDate>Wed, 30 May 2012 09:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/The-value-supplied-cannot-be-converted-to-INTEGER/m-p/2303667#M75518</guid>
      <dc:creator>janhess</dc:creator>
      <dc:date>2012-05-30T09:06:48Z</dc:date>
    </item>
  </channel>
</rss>

