<?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: Dynamic column error on date data type in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-error-on-date-data-type/m-p/2250236#M34543</link>
    <description>&lt;P&gt;Sorry, I meant tOracleOutput.&amp;nbsp; I've tried modifying date formats but it seems like its trying to insert all the data as varchar2 which will not work.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Feb 2019 14:44:20 GMT</pubDate>
    <dc:creator>mbennitt</dc:creator>
    <dc:date>2019-02-07T14:44:20Z</dc:date>
    <item>
      <title>Dynamic column error on date data type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-error-on-date-data-type/m-p/2250234#M34541</link>
      <description>&lt;P&gt;I'm working on a generic Talend job that will allow us to process hundreds of tables.&amp;nbsp; The goal is to take the CSV files from S3 and insert the data into each Oracle table.&amp;nbsp; Since each table can have different columns and different data types this process needs to be completely dynamic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My current process is tS3Get -&amp;gt; tFileInputDelimieted -&amp;gt; tMap -&amp;gt; tOracleOutput&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The issue occurs in the last component when inserting data into Oracle. I am getting "ORA-01861: literal does not match format string".&amp;nbsp; I believe the issue occurs when trying to insert into the data field. When looking at the schema for the tOracleOutput I have one column for results, type of Dynamic, and it forces me to pick a type for DB Type which defaults to varchar2 (highlighted in orange).&amp;nbsp; I believe that it's trying to force a varchar2 into a date field which obviously won't work.&amp;nbsp; I thought dynamic worked with any and all columns and can flow freely no matter what data types they are.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Things I've tried:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Changing the date format in the tMap to different combinations.&lt;/P&gt;
&lt;P&gt;2) Dropping and creating the table in Oracle.&amp;nbsp; This works but defines every single column as a varchar2 which is not correct.&amp;nbsp; We have several different data types including date fields that need to maintain their data type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:38:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-error-on-date-data-type/m-p/2250234#M34541</guid>
      <dc:creator>mbennitt</dc:creator>
      <dc:date>2024-11-16T06:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic column error on date data type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-error-on-date-data-type/m-p/2250235#M34542</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;My question is - why for insert data you use tOracleInput ? and not tOracleOutput.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be check with function isDate :&lt;/P&gt;&lt;PRE&gt;System.out.println(TalendDate.isDate("2010-02-09 00:00:00","yyyy-MM-dd HH:mm:ss"));&lt;/PRE&gt;&lt;P&gt;and convert if needed..&amp;nbsp;maybe it will help you&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 14:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-error-on-date-data-type/m-p/2250235#M34542</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-07T14:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic column error on date data type</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-error-on-date-data-type/m-p/2250236#M34543</link>
      <description>&lt;P&gt;Sorry, I meant tOracleOutput.&amp;nbsp; I've tried modifying date formats but it seems like its trying to insert all the data as varchar2 which will not work.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 14:44:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-column-error-on-date-data-type/m-p/2250236#M34543</guid>
      <dc:creator>mbennitt</dc:creator>
      <dc:date>2019-02-07T14:44:20Z</dc:date>
    </item>
  </channel>
</rss>

