<?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: java.sql.SQLException: Unable to convert between [B and TIMESTAMP. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLException-Unable-to-convert-between-B-and-TIMESTAMP/m-p/2336786#M105196</link>
    <description>Sorry Eric. Check the &amp;lt;talendType&amp;gt; for id_Date under &amp;lt;talendToDbTypes&amp;gt;, you might have to remove the entry for TIMESTAMP there. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;	&amp;lt;talendType type="id_Date"&amp;gt;&lt;BR /&gt;		&amp;lt;dbType type="DATETIME" default="true" /&amp;gt;&lt;BR /&gt;		&amp;lt;dbType type="SMALLDATETIME" /&amp;gt;&lt;BR /&gt;	&amp;lt;/talendType&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;- Brian</description>
    <pubDate>Fri, 03 Apr 2009 20:57:40 GMT</pubDate>
    <dc:creator>briansms</dc:creator>
    <dc:date>2009-04-03T20:57:40Z</dc:date>
    <item>
      <title>java.sql.SQLException: Unable to convert between [B and TIMESTAMP.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLException-Unable-to-convert-between-B-and-TIMESTAMP/m-p/2336783#M105193</link>
      <description>Talend throws the following error in a 2 step job.&lt;BR /&gt;&lt;PRE&gt;java.sql.SQLException: Unable to convert between [B and TIMESTAMP.&lt;/PRE&gt;&lt;BR /&gt;The job is:&lt;BR /&gt;&lt;PRE&gt;MSSqlInput --&amp;gt; tLogRow&lt;/PRE&gt;&lt;BR /&gt;The source is MS SQL Server 2005, and several columns in the table are defined as DATETIME -- to which Talend tries to assign a Date type.&lt;BR /&gt;What am I doing wrong?</description>
      <pubDate>Sat, 16 Nov 2024 14:00:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLException-Unable-to-convert-between-B-and-TIMESTAMP/m-p/2336783#M105193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: java.sql.SQLException: Unable to convert between [B and TIMESTAMP.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLException-Unable-to-convert-between-B-and-TIMESTAMP/m-p/2336784#M105194</link>
      <description>Hi Eric,
&lt;BR /&gt;You're not doing anything wrong, rather Talend is incorrectly tries to map a MS SQL timestamp field to a datetime, which it shouldn't. You need to change the mapping_MSSQL.xml file (Preferences &amp;gt; Talend &amp;gt; Metadata of TalendType), under the &amp;lt;TalendToDbTypes&amp;gt; and &amp;lt;dbToTalendTypes&amp;gt; nodes.
&lt;BR /&gt;Change the &amp;lt;TalendToDbTypes&amp;gt; node for the id_String mapping to add dbType of TIMESTAMP
&lt;BR /&gt;
&lt;PRE&gt;			&amp;lt;talendType type="id_String"&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="VARCHAR" default="true" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="NVARCHAR" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="NCHAR" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="NTEXT" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="TEXT" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="TIMESTAMP" /&amp;gt;&lt;BR /&gt;				&amp;lt;/talendType&amp;gt;&lt;/PRE&gt;
&lt;BR /&gt;The change the &amp;lt;dbToTalendTypes&amp;gt; for TIMESTAMP:
&lt;BR /&gt;
&lt;PRE&gt;				&amp;lt;dbType type="TIMESTAMP"&amp;gt;&lt;BR /&gt;					&amp;lt;talendType type="id_String" default="true" /&amp;gt;&lt;BR /&gt;				&amp;lt;/dbType&amp;gt;&lt;/PRE&gt;
&lt;BR /&gt;- Brian</description>
      <pubDate>Fri, 03 Apr 2009 18:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLException-Unable-to-convert-between-B-and-TIMESTAMP/m-p/2336784#M105194</guid>
      <dc:creator>briansms</dc:creator>
      <dc:date>2009-04-03T18:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: java.sql.SQLException: Unable to convert between [B and TIMESTAMP.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLException-Unable-to-convert-between-B-and-TIMESTAMP/m-p/2336785#M105195</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Change the &amp;lt;TalendToDbTypes&amp;gt; node for the id_String mapping to add dbType of TIMESTAMP&lt;BR /&gt;&lt;PRE&gt;			&amp;lt;talendType type="id_String"&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="VARCHAR" default="true" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="NVARCHAR" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="NCHAR" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="NTEXT" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="TEXT" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="TIMESTAMP" /&amp;gt;&lt;BR /&gt;				&amp;lt;/talendType&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;The change the &amp;lt;dbToTalendTypes&amp;gt; for TIMESTAMP:&lt;BR /&gt;&lt;PRE&gt;				&amp;lt;dbType type="TIMESTAMP"&amp;gt;&lt;BR /&gt;					&amp;lt;talendType type="id_String" default="true" /&amp;gt;&lt;BR /&gt;				&amp;lt;/dbType&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;I have added the TIMESTAMP dbType and modified the dbType entries as illustrated above, but Talend is not updating the schema. After changing the xml file I have clicked the "Reset DB Types" button in the Schema, I have removed the instance of the MSSQL Input object from the job and replaced it, and I have restarted Talend -- and the DATE datatypes have still not updated to String. 
&lt;BR /&gt;The two entries in mapping_MSSQL.xml now look like this: 
&lt;BR /&gt; 
&lt;PRE&gt;				&amp;lt;talendType type="id_String"&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="VARCHAR" default="true" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="NVARCHAR" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="NCHAR" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="NTEXT" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="TEXT" /&amp;gt;&lt;BR /&gt;					&amp;lt;dbType type="TIMESTAMP" /&amp;gt;&lt;BR /&gt;				&amp;lt;/talendType&amp;gt;&lt;BR /&gt;				&amp;lt;dbType type="TIMESTAMP"&amp;gt;&lt;BR /&gt;					&amp;lt;talendType type="id_String" default="true" /&amp;gt;&lt;BR /&gt;				&amp;lt;/dbType&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;Is there something else I need to do?</description>
      <pubDate>Fri, 03 Apr 2009 20:08:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLException-Unable-to-convert-between-B-and-TIMESTAMP/m-p/2336785#M105195</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-03T20:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: java.sql.SQLException: Unable to convert between [B and TIMESTAMP.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLException-Unable-to-convert-between-B-and-TIMESTAMP/m-p/2336786#M105196</link>
      <description>Sorry Eric. Check the &amp;lt;talendType&amp;gt; for id_Date under &amp;lt;talendToDbTypes&amp;gt;, you might have to remove the entry for TIMESTAMP there. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;PRE&gt;	&amp;lt;talendType type="id_Date"&amp;gt;&lt;BR /&gt;		&amp;lt;dbType type="DATETIME" default="true" /&amp;gt;&lt;BR /&gt;		&amp;lt;dbType type="SMALLDATETIME" /&amp;gt;&lt;BR /&gt;	&amp;lt;/talendType&amp;gt;&lt;/PRE&gt; 
&lt;BR /&gt;- Brian</description>
      <pubDate>Fri, 03 Apr 2009 20:57:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLException-Unable-to-convert-between-B-and-TIMESTAMP/m-p/2336786#M105196</guid>
      <dc:creator>briansms</dc:creator>
      <dc:date>2009-04-03T20:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: java.sql.SQLException: Unable to convert between [B and TIMESTAMP.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLException-Unable-to-convert-between-B-and-TIMESTAMP/m-p/2336787#M105197</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Sorry Eric. Check the &amp;lt;talendType&amp;gt; for id_Date under &amp;lt;talendToDbTypes&amp;gt;, you might have to remove the entry for TIMESTAMP there.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Got it. Thanks.
&lt;BR /&gt;FYI -- "Reset DB Types" on the Schema in the Repository still didn't work. I actually had to delete the Table Schema from the repository and re-add it from the DB (Retreive Schema).</description>
      <pubDate>Fri, 03 Apr 2009 21:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-sql-SQLException-Unable-to-convert-between-B-and-TIMESTAMP/m-p/2336787#M105197</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-03T21:47:32Z</dc:date>
    </item>
  </channel>
</rss>

