<?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: [resolved] Compare date tMysqlInput to tOracle in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206756#M6678</link>
    <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi&lt;BR /&gt;Please take a close look at the date format you gave in your tOracleInput component and compare this with the one you provide in your tMySqlInput component.&lt;BR /&gt;UPDATEDATETIME &amp;gt; to_date('" globalMap.get("row2.UPDATEDATETIME") "','&lt;B&gt;dd-MM-yyyy hh24:mi:ss&lt;/B&gt;') (must be Oracle notation)&lt;BR /&gt;compared to&lt;BR /&gt;"&lt;B&gt;yyyy-MM-dd hh:mm:ss&lt;/B&gt;" (Java notation)&lt;BR /&gt;The correct Oracle notation would be &lt;B&gt;DD-MM-YYYY HH24:MI&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9p6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134116iFBD5D7F21624A744/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9p6.png" alt="0683p000009M9p6.png" /&gt;&lt;/span&gt;S&lt;/B&gt; and the matching Java notation would be &lt;B&gt;dd-MM-yyyy hh:mm:ss.&lt;/B&gt;&lt;BR /&gt;I am not sure if this is everything you need to resolve this. A type conversion between date and string may ne necessary as well.&lt;BR /&gt;Regards, Joachim&lt;BR /&gt;PS: you posted this issue twice. Could you please close the other one? It's&amp;nbsp;&lt;A href="https://www.talendforge.org/forum/viewtopic.php?id=54211" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/viewtopic.php?id=54211&lt;/A&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Joe, 
&lt;BR /&gt;thnx for your help. 
&lt;BR /&gt;Unfortunatley doesn't work. I try with&amp;nbsp;to_date('" globalMap.get("row1.PXUPDATEDATETIME") "','yyyy-MM-dd hh24:mi:ss') 
&lt;BR /&gt;but I have another error:&amp;nbsp;ORA-01830: date format picture ends before converting entire input string 
&lt;BR /&gt;ps. 
&lt;BR /&gt;Yes, I'm sorry. I'm getting close the other &amp;nbsp;post.&amp;nbsp;</description>
    <pubDate>Mon, 28 Nov 2016 10:44:33 GMT</pubDate>
    <dc:creator>chichibio</dc:creator>
    <dc:date>2016-11-28T10:44:33Z</dc:date>
    <item>
      <title>[resolved] Compare date tMysqlInput to tOracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206753#M6675</link>
      <description>Hi at all, 
&lt;BR /&gt;I have a query in tOracleInput :&amp;nbsp; 
&lt;BR /&gt;select * from tablea join... 
&lt;BR /&gt;WHERE UPDATEDATETIME &amp;gt; to_date('"+globalMap.get("row2.UPDATEDATETIME")+"','dd-MM-yyyy hh24:mi:ss') 
&lt;BR /&gt;I take max(updatedatetime) from tableA --&amp;gt;store in variable--&amp;gt; and compare max(updatedatetime) of mysql with oracle in condition query. 
&lt;BR /&gt;So my flow is: 
&lt;BR /&gt;tMysqlInput--&amp;gt;tFlowToIterate--&amp;gt;tOracleInput--&amp;gt;tMap--&amp;gt;tMysqlOutput 
&lt;BR /&gt;My error: 
&lt;BR /&gt;Exception in component tOracleInput_1 
&lt;BR /&gt;java.sql.SQLDataException: ORA-01861: literal does not match format string 
&lt;BR /&gt;at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:79) 
&lt;BR /&gt;at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112) 
&lt;BR /&gt;at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173) 
&lt;BR /&gt;at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455) 
&lt;BR /&gt;at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413) 
&lt;BR /&gt;at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030) 
&lt;BR /&gt;at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183) 
&lt;BR /&gt;at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:774) 
&lt;BR /&gt;at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:849) 
&lt;BR /&gt;at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186) 
&lt;BR /&gt;at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377) 
&lt;BR /&gt;at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386) 
&lt;BR /&gt;at migra_da_oracle_804.uso_variabili_0_1.uso_variabili.tMysqlInput_1Process(uso_variabili.java:1534) 
&lt;BR /&gt;at migra_da_oracle_804.uso_variabili_0_1.uso_variabili.runJobInTOS(uso_variabili.java:2294) 
&lt;BR /&gt;at migra_da_oracle_804.uso_variabili_0_1.uso_variabili.main(uso_variabili.java:2151) 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Job uso_variabili ended at 17:00 25/11/2016. 
&lt;BR /&gt;where is my error? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCUT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132424i2B965B30070F86E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCUT.png" alt="0683p000009MCUT.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;format max(updatedate) on mysql: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBzO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142605iE23AD6A5BB173239/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBzO.png" alt="0683p000009MBzO.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;thnx at all!</description>
      <pubDate>Fri, 25 Nov 2016 16:38:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206753#M6675</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2016-11-25T16:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Compare date tMysqlInput to tOracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206754#M6676</link>
      <description>Hi 
&lt;BR /&gt;Please take a close look at the date format you gave in your tOracleInput component and compare this with the one you provide in your tMySqlInput component. 
&lt;BR /&gt;UPDATEDATETIME &amp;gt; to_date('" globalMap.get("row2.UPDATEDATETIME") "',' 
&lt;B&gt;dd-MM-yyyy hh24:mi:ss&lt;/B&gt;') (must be Oracle notation) 
&lt;BR /&gt;compared to 
&lt;BR /&gt;" 
&lt;B&gt;yyyy-MM-dd hh:mm:ss&lt;/B&gt;" (Java notation) 
&lt;BR /&gt;The correct Oracle notation would be 
&lt;B&gt;DD-MM-YYYY HH24:MI&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9p6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134116iFBD5D7F21624A744/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9p6.png" alt="0683p000009M9p6.png" /&gt;&lt;/span&gt;S&lt;/B&gt; and the matching Java notation would be 
&lt;B&gt;dd-MM-yyyy hh:mm:ss.&lt;/B&gt; 
&lt;BR /&gt;I am not sure if this is everything you need to resolve this. A type conversion between date and string may ne necessary as well. 
&lt;BR /&gt;Regards, Joachim 
&lt;BR /&gt;PS: you posted this issue twice. Could you please close the other one? It's&amp;nbsp; 
&lt;A href="https://www.talendforge.org/forum/viewtopic.php?id=54211" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/viewtopic.php?id=54211&lt;/A&gt;</description>
      <pubDate>Fri, 25 Nov 2016 16:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206754#M6676</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2016-11-25T16:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Compare date tMysqlInput to tOracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206755#M6677</link>
      <description>correct form must be something like :
&lt;BR /&gt;
&lt;PRE&gt;UPDATEDATETIME &amp;gt; to_date('"+TalendDate.formatDate("dd-MM-yyyy HH:mm:ss",globalMap.get("row2.UPDATEDATETIME"))+"','dd-MM-yyyy hh24:mi:ss')&lt;/PRE&gt;
&lt;BR /&gt;it mean UDATEDATETIME - have date format as on attached picture</description>
      <pubDate>Sat, 26 Nov 2016 04:11:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206755#M6677</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-11-26T04:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Compare date tMysqlInput to tOracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206756#M6678</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Hi&lt;BR /&gt;Please take a close look at the date format you gave in your tOracleInput component and compare this with the one you provide in your tMySqlInput component.&lt;BR /&gt;UPDATEDATETIME &amp;gt; to_date('" globalMap.get("row2.UPDATEDATETIME") "','&lt;B&gt;dd-MM-yyyy hh24:mi:ss&lt;/B&gt;') (must be Oracle notation)&lt;BR /&gt;compared to&lt;BR /&gt;"&lt;B&gt;yyyy-MM-dd hh:mm:ss&lt;/B&gt;" (Java notation)&lt;BR /&gt;The correct Oracle notation would be &lt;B&gt;DD-MM-YYYY HH24:MI&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9p6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134116iFBD5D7F21624A744/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9p6.png" alt="0683p000009M9p6.png" /&gt;&lt;/span&gt;S&lt;/B&gt; and the matching Java notation would be &lt;B&gt;dd-MM-yyyy hh:mm:ss.&lt;/B&gt;&lt;BR /&gt;I am not sure if this is everything you need to resolve this. A type conversion between date and string may ne necessary as well.&lt;BR /&gt;Regards, Joachim&lt;BR /&gt;PS: you posted this issue twice. Could you please close the other one? It's&amp;nbsp;&lt;A href="https://www.talendforge.org/forum/viewtopic.php?id=54211" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/forum/viewtopic.php?id=54211&lt;/A&gt;&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Joe, 
&lt;BR /&gt;thnx for your help. 
&lt;BR /&gt;Unfortunatley doesn't work. I try with&amp;nbsp;to_date('" globalMap.get("row1.PXUPDATEDATETIME") "','yyyy-MM-dd hh24:mi:ss') 
&lt;BR /&gt;but I have another error:&amp;nbsp;ORA-01830: date format picture ends before converting entire input string 
&lt;BR /&gt;ps. 
&lt;BR /&gt;Yes, I'm sorry. I'm getting close the other &amp;nbsp;post.&amp;nbsp;</description>
      <pubDate>Mon, 28 Nov 2016 10:44:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206756#M6678</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2016-11-28T10:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Compare date tMysqlInput to tOracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206757#M6679</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;correct form must be something like :&lt;BR /&gt;&lt;PRE&gt;UPDATEDATETIME &amp;gt; to_date('"+TalendDate.formatDate("dd-MM-yyyy HH:mm:ss",globalMap.get("row2.UPDATEDATETIME"))+"','dd-MM-yyyy hh24:mi:ss')&lt;/PRE&gt;&lt;BR /&gt;it mean UDATEDATETIME - have date format as on attached picture&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Vapukov, 
&lt;BR /&gt;with your sintax I have another tipe of error: 
&lt;BR /&gt;the method formatDate(String,Date) in the type talendDate is not applicable for the arguments (String,Object) 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Thnnk you so much 
&lt;BR /&gt;I need help :s&amp;nbsp;</description>
      <pubDate>Mon, 28 Nov 2016 10:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206757#M6679</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2016-11-28T10:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Compare date tMysqlInput to tOracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206758#M6680</link>
      <description>check the data types - it mean somewhere before You mark UPDATEDATETIME as Object</description>
      <pubDate>Mon, 28 Nov 2016 13:31:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206758#M6680</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2016-11-28T13:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Compare date tMysqlInput to tOracle</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206759#M6681</link>
      <description>Hi...finally I'm resolved. 
&lt;BR /&gt;is necessary define string my result query : max(updatedatetime)&amp;nbsp; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCUY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148272i8239DD37D122957A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCUY.png" alt="0683p000009MCUY.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;and in where condition : 
&lt;BR /&gt;PXUPDATEDATETIME &amp;gt; to_date('"+globalMap.get("row1.UPDATEDATETIME")+"','yyyy-mm-dd hh24:mi:ss') 
&lt;BR /&gt;thanx anyone to helped me! 
&lt;BR /&gt;best regard</description>
      <pubDate>Mon, 28 Nov 2016 15:04:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Compare-date-tMysqlInput-to-tOracle/m-p/2206759#M6681</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2016-11-28T15:04:32Z</dc:date>
    </item>
  </channel>
</rss>

