<?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 tMysqlSCDELT fails to insert and update rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMysqlSCDELT-fails-to-insert-and-update-rows/m-p/2275057#M51539</link>
    <description>&lt;P&gt;tMysqlSCDELT component fails to insert and update rows to the destination table, as the date format used in the component is not aligned with Mysql default date format.&lt;/P&gt; 
&lt;P&gt;It is supposed to be YYYY-MM-DD, although the component tries to pass it in the format of DD-MM-YYYY, thus the insertion/update fails.&lt;BR /&gt;The scenario was tested based on the example for postgresql (components were switched to mysql version):&lt;BR /&gt;&lt;A href="https://help.talend.com/reader/vfw2NwIrrNsiOsXIVOrdvA/0xr4RBLn6wT0~kw9KOhEAQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/vfw2NwIrrNsiOsXIVOrdvA/0xr4RBLn6wT0~kw9KOhEAQ&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;here is the statement passed to database:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;/* [tDBSCDELT_1] new rows sql */&lt;BR /&gt;INSERT INTO `employee_scd`&lt;BR /&gt;(`id`&lt;BR /&gt;, `name`&lt;BR /&gt;, `role`&lt;BR /&gt;, `salary`&lt;BR /&gt;, `start_date`&lt;BR /&gt;, `end_date`&lt;BR /&gt;, `active_status`&lt;BR /&gt;, `version`)&lt;BR /&gt;SELECT t.`id`&lt;BR /&gt;, t.`name`&lt;BR /&gt;, t.`role`&lt;BR /&gt;, t.`salary`&lt;BR /&gt;, '07-08-2019'&amp;nbsp; &amp;nbsp;/* FORMAT INCOMPATIBLE WITH MYSQL */&lt;BR /&gt;, NULL&lt;BR /&gt;, 1&lt;BR /&gt;, 1&lt;BR /&gt;FROM `employee` t&lt;BR /&gt;LEFT JOIN `employee_scd` d&lt;BR /&gt;ON d.`id` = t.`id`&lt;BR /&gt;WHERE ( d.`id` IS NULL)&lt;BR /&gt;;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;from the code page once can see that the date is explicitly converted to the wrong format:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;changeDateTime_tDBSCDELT_3_begin = routines.system.DBDateParser.getDBDateParser("mysql_id")&lt;BR /&gt;.getDateString("mysql_id", "DATETIME", (Long) start_Hash.get("tDBSCDELT_3"), "dd-MM-yyyy");&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there any way to fix the formatting issue? Or just abandon the component and create own process?&lt;BR /&gt;&lt;BR /&gt;Talend&amp;nbsp;Version: 7.2.1&lt;/P&gt;</description>
    <pubDate>Wed, 07 Aug 2019 10:05:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-07T10:05:16Z</dc:date>
    <item>
      <title>tMysqlSCDELT fails to insert and update rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMysqlSCDELT-fails-to-insert-and-update-rows/m-p/2275057#M51539</link>
      <description>&lt;P&gt;tMysqlSCDELT component fails to insert and update rows to the destination table, as the date format used in the component is not aligned with Mysql default date format.&lt;/P&gt; 
&lt;P&gt;It is supposed to be YYYY-MM-DD, although the component tries to pass it in the format of DD-MM-YYYY, thus the insertion/update fails.&lt;BR /&gt;The scenario was tested based on the example for postgresql (components were switched to mysql version):&lt;BR /&gt;&lt;A href="https://help.talend.com/reader/vfw2NwIrrNsiOsXIVOrdvA/0xr4RBLn6wT0~kw9KOhEAQ" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/vfw2NwIrrNsiOsXIVOrdvA/0xr4RBLn6wT0~kw9KOhEAQ&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;here is the statement passed to database:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;/* [tDBSCDELT_1] new rows sql */&lt;BR /&gt;INSERT INTO `employee_scd`&lt;BR /&gt;(`id`&lt;BR /&gt;, `name`&lt;BR /&gt;, `role`&lt;BR /&gt;, `salary`&lt;BR /&gt;, `start_date`&lt;BR /&gt;, `end_date`&lt;BR /&gt;, `active_status`&lt;BR /&gt;, `version`)&lt;BR /&gt;SELECT t.`id`&lt;BR /&gt;, t.`name`&lt;BR /&gt;, t.`role`&lt;BR /&gt;, t.`salary`&lt;BR /&gt;, '07-08-2019'&amp;nbsp; &amp;nbsp;/* FORMAT INCOMPATIBLE WITH MYSQL */&lt;BR /&gt;, NULL&lt;BR /&gt;, 1&lt;BR /&gt;, 1&lt;BR /&gt;FROM `employee` t&lt;BR /&gt;LEFT JOIN `employee_scd` d&lt;BR /&gt;ON d.`id` = t.`id`&lt;BR /&gt;WHERE ( d.`id` IS NULL)&lt;BR /&gt;;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;from the code page once can see that the date is explicitly converted to the wrong format:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;changeDateTime_tDBSCDELT_3_begin = routines.system.DBDateParser.getDBDateParser("mysql_id")&lt;BR /&gt;.getDateString("mysql_id", "DATETIME", (Long) start_Hash.get("tDBSCDELT_3"), "dd-MM-yyyy");&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there any way to fix the formatting issue? Or just abandon the component and create own process?&lt;BR /&gt;&lt;BR /&gt;Talend&amp;nbsp;Version: 7.2.1&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 10:05:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMysqlSCDELT-fails-to-insert-and-update-rows/m-p/2275057#M51539</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-07T10:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: tMysqlSCDELT fails to insert and update rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMysqlSCDELT-fails-to-insert-and-update-rows/m-p/2275058#M51540</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Could you please refer to this article to see if it helps?&lt;/P&gt; 
&lt;P&gt;&lt;A title="https://community.talend.com/t5/Migration-Configuration-and/Conversion-of-Oracle-SCD-to-Oracle-ELT-SCD-does-not-work/ta-p/156172" href="https://community.qlik.com/s/article/ka03p0000006EOlAAM" target="_self"&gt;https://community.talend.com/t5/Migration-Configuration-and/Conversion-of-Oracle-SCD-to-Oracle-ELT-SCD-does-not-work/ta-p/156172&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2019 09:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMysqlSCDELT-fails-to-insert-and-update-rows/m-p/2275058#M51540</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-14T09:27:26Z</dc:date>
    </item>
  </channel>
</rss>

