<?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: using date with sybase in Installing and Upgrading</title>
    <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398520#M8963</link>
    <description>Sybase and MS SQL Server have a silly way to store date/time. The precision is... 3 milliseconds!
&lt;BR /&gt;Just try running "select getdate()" several times:
&lt;BR /&gt; 2007-07-18 19:44:48.330
&lt;BR /&gt; 2007-07-18 19:45:22.053
&lt;BR /&gt; 2007-07-18 19:45:27.880
&lt;BR /&gt; 2007-07-18 19:45:45.266
&lt;BR /&gt; 2007-07-18 19:45:52.236
&lt;BR /&gt; ...
&lt;BR /&gt;You can notice that the timestamp always ends with 0, 3 or 6. Other values are illegal.
&lt;BR /&gt;So the safe thing to do is to round up a date/time to 10 milliseconds, at least.
&lt;BR /&gt; 
&lt;BR /&gt; 2007-07-18 19:45:52.237526 =&amp;gt; illegal
&lt;BR /&gt; 2007-07-18 19:45:52.237 =&amp;gt; illegal
&lt;BR /&gt; 2007-07-18 19:45:52.230 =&amp;gt; OK
&lt;BR /&gt; 2007-07-18 19:45:52 =&amp;gt; OK</description>
    <pubDate>Wed, 18 Jul 2007 19:19:54 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2007-07-18T19:19:54Z</dc:date>
    <item>
      <title>using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398518#M8961</link>
      <description>hello,
&lt;BR /&gt;I'm trying to use Date from Sybase table.
&lt;BR /&gt;When running i have the error :
&lt;BR /&gt; disconnected
&lt;BR /&gt;Exception in component tSybaseInput_1
&lt;BR /&gt;java.sql.SQLException: JZ009: L'erreur suivante a été détectée pendant la conversion : java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
&lt;BR /&gt; at com.sybase.jdbc3.jdbc.ErrorMessage.raiseError(Unknown Source)
&lt;BR /&gt; at com.sybase.jdbc3.jdbc.Convert.objectToTimestamp(Unknown Source)
&lt;BR /&gt; at com.sybase.jdbc3.jdbc.Convert.objectToDateObject(Unknown Source)
&lt;BR /&gt; at com.sybase.jdbc3.tds.TdsJdbcInputStream.getDateObject(Unknown Source)
&lt;BR /&gt; at com.sybase.jdbc3.jdbc.SybResultSet.getTimestamp(Unknown Source)
&lt;BR /&gt; at defi2_bis.alimentation_defi_001.Alimentation_Defi_001.tSybaseInput_1Process(Alimentation_Defi_001.java:2264)
&lt;BR /&gt; at defi2_bis.alimentation_defi_001.Alimentation_Defi_001.tSybaseInput_2Process(Alimentation_Defi_001.java:436)
&lt;BR /&gt; at defi2_bis.alimentation_defi_001.Alimentation_Defi_001.main(Alimentation_Defi_001.java:2441)
&lt;BR /&gt;the code is :
&lt;BR /&gt; if (rs_tSybaseInput_1.getTimestamp(4) != null) {
&lt;BR /&gt; row5.DateDebutValidite = new java.util.Date(
&lt;BR /&gt; rs_tSybaseInput_1.getTimestamp(4).getTime());
&lt;BR /&gt; } else {
&lt;BR /&gt; row5.DateDebutValidite = null;
&lt;BR /&gt; }
&lt;BR /&gt;
&lt;BR /&gt;this append on a lookup table ( row5 ), and ( for instance ) i don(t use the date column for any test..
&lt;BR /&gt;is it a specific problem with SYBASE ?
&lt;BR /&gt;How is possible to convert the data ?
&lt;BR /&gt;thank you for your help.</description>
      <pubDate>Sat, 16 Nov 2024 14:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398518#M8961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398519#M8962</link>
      <description>Hi,
&lt;BR /&gt;Do you need Nano seconds precision ?
&lt;BR /&gt;Because you can modify your timestamp format : "yyyy-mm-dd hh:mm:ss"
&lt;BR /&gt;Normally it works.
&lt;BR /&gt;I'm trying some tests and i am searching a bug fix. 
&lt;BR /&gt;Maybe this is a 
&lt;A href="http://forum.java.sun.com/thread.jspa?threadID=306120&amp;amp;messageID=1220406" target="_blank" rel="nofollow noopener noreferrer"&gt;java bug&lt;/A&gt;.
&lt;BR /&gt;Regards.</description>
      <pubDate>Wed, 18 Jul 2007 18:29:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398519#M8962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-18T18:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398520#M8963</link>
      <description>Sybase and MS SQL Server have a silly way to store date/time. The precision is... 3 milliseconds!
&lt;BR /&gt;Just try running "select getdate()" several times:
&lt;BR /&gt; 2007-07-18 19:44:48.330
&lt;BR /&gt; 2007-07-18 19:45:22.053
&lt;BR /&gt; 2007-07-18 19:45:27.880
&lt;BR /&gt; 2007-07-18 19:45:45.266
&lt;BR /&gt; 2007-07-18 19:45:52.236
&lt;BR /&gt; ...
&lt;BR /&gt;You can notice that the timestamp always ends with 0, 3 or 6. Other values are illegal.
&lt;BR /&gt;So the safe thing to do is to round up a date/time to 10 milliseconds, at least.
&lt;BR /&gt; 
&lt;BR /&gt; 2007-07-18 19:45:52.237526 =&amp;gt; illegal
&lt;BR /&gt; 2007-07-18 19:45:52.237 =&amp;gt; illegal
&lt;BR /&gt; 2007-07-18 19:45:52.230 =&amp;gt; OK
&lt;BR /&gt; 2007-07-18 19:45:52 =&amp;gt; OK</description>
      <pubDate>Wed, 18 Jul 2007 19:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398520#M8963</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2007-07-18T19:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398521#M8964</link>
      <description>thank you.&lt;BR /&gt;Sometime the convert(datetime,xxx,103)  function is usefull to have a correct timestamp</description>
      <pubDate>Fri, 20 Jul 2007 10:21:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398521#M8964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-07-20T10:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398522#M8965</link>
      <description>Sorry to revive an old thread...but I'm facing the same issue. 
&lt;BR /&gt;I tried using CONVERT like Mouseman suggested in my MSSQLInput's SELECT Query, as well as cantoine's suggestion with removing microseconds. It isn't working. 
&lt;BR /&gt;Please someone help. 
&lt;BR /&gt;I'm using Talend Data Quality version: 4.0.1 
&lt;BR /&gt;Build id: r41260-20100427-0748 
&lt;BR /&gt;JDK and JRE 1.6. Release 22 
&lt;BR /&gt;Thank you.</description>
      <pubDate>Tue, 09 Nov 2010 03:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398522#M8965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-09T03:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398523#M8966</link>
      <description>Hello dministrator 
&lt;BR /&gt;Please describe your question with more info, what's the error message do you get? What's the data type? 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 09 Nov 2010 07:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398523#M8966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-09T07:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398524#M8967</link>
      <description>Thank you Shong.
&lt;BR /&gt;My data type in Talend Schema is Date. The corresponding column in MS SQL Server query is of DateTime type. 
&lt;BR /&gt;The exception I get is this like that of OP: 
&lt;BR /&gt;java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
&lt;BR /&gt;Since my goal is a CSV file, for now, I'm managing it by changing the schema's data type as String. 
&lt;BR /&gt;My job is very simple - the components I use are, a single tMSSQLInput with a SELECT query (without any joins) and it's output connected to tLogRow.</description>
      <pubDate>Tue, 09 Nov 2010 18:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398524#M8967</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-09T18:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398525#M8968</link>
      <description>Hi,
&lt;BR /&gt;I'm facing the same issue with talend Date type saying that : 
&lt;BR /&gt;
&lt;B&gt;java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss&lt;/B&gt;
&lt;BR /&gt;But when I put the said pattern i'm still getting the same exception
&lt;BR /&gt;I'm using the tOracleInput component and connect to a tMap component.
&lt;BR /&gt;My talend schema is Date and the corresponding column in Oracle is TIMESTAMP.
&lt;BR /&gt;The job is pretty much simple, Select all valid record in table_1 then insert the current records onto table_1_history then update the current record STAT_CODE and TIMESTAMP column and save it to a CSV file.
&lt;BR /&gt;TIS version : 4.1.2 r 53616
&lt;BR /&gt;OS : Win XP SP3
&lt;BR /&gt;Java Version : 1.6.0_22</description>
      <pubDate>Thu, 07 Apr 2011 04:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398525#M8968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-07T04:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398526#M8969</link>
      <description>Hi cypher
&lt;BR /&gt;What's data looks like in table?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 07 Apr 2011 04:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398526#M8969</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-07T04:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398527#M8970</link>
      <description>Hi Shong, 
&lt;BR /&gt;Thanks for the reply. 
&lt;BR /&gt;Here's some of the record that's need to be updated. 
&lt;BR /&gt; 
&lt;B&gt;Column Definition:&lt;/B&gt; 
&lt;BR /&gt;ACTVTY_CD (Varchar : PK), 
&lt;BR /&gt;ENDT_EFF_DT (Timestamp: PK), 
&lt;BR /&gt;REF_GROUP_CD (Varchar : PK), 
&lt;BR /&gt;STAT_CD (Varchar), 
&lt;BR /&gt;TIMESTAMP (Timestamp) 
&lt;BR /&gt; 
&lt;B&gt;Record(s):&lt;/B&gt; 
&lt;BR /&gt;ACT00152 2011-03-16 12:42:03.065 001000 P 2011-03-16 12:42:03.065 
&lt;BR /&gt;ACT00153 2011-03-16 12:42:03.081 001000 P 2011-03-16 12:42:03.081 
&lt;BR /&gt;ACT00160 2011-02-24 17:11:20.463 001000 P 2011-02-24 17:11:20.525 
&lt;BR /&gt;Only the TIMESTAMP column throws an error.</description>
      <pubDate>Thu, 07 Apr 2011 05:21:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398527#M8970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-07T05:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398528#M8971</link>
      <description>Hi cypher 
&lt;BR /&gt;How do you set the data pattern when you set the DB type as timestamp? "yyyy-MM-dd HH:mm:ss.SSS"? To work around it, you can read it as a string, and then parse the string to a Date on tMap, for example: TalendDate.parseDate("yyyy-MM-dd HH:mm:ss.SSS", row1.TIMESTAMP)
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 08 Apr 2011 07:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398528#M8971</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-08T07:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398529#M8972</link>
      <description>Hi Shong,
&lt;BR /&gt;I think we didn't set any date pattern when inserting to database. 
&lt;BR /&gt;I'll try the workaround you suggest and hopefully will work.
&lt;BR /&gt;Thanks a lot shong,</description>
      <pubDate>Fri, 08 Apr 2011 10:07:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398529#M8972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-08T10:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398530#M8973</link>
      <description>Hi
&lt;BR /&gt;Can you show us the the whole error message? on which component does the error occur? You said you use tOracleInput in previous post.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 08 Apr 2011 10:20:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398530#M8973</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-08T10:20:32Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398531#M8974</link>
      <description>Here the error message: 
&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;Exception in component tOracleInput_1&lt;BR /&gt;java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss&lt;BR /&gt; at java.sql.Timestamp.valueOf(Unknown Source)&lt;BR /&gt; at oracle.jdbc.driver.CharCommonAccessor.getTimestamp(CharCommonAccessor.java:486)&lt;BR /&gt; at oracle.jdbc.driver.T4CVarcharAccessor.getTimestamp(T4CVarcharAccessor.java:897)&lt;BR /&gt; at oracle.jdbc.driver.OracleResultSetImpl.getTimestamp(OracleResultSetImpl.java:1060)&lt;BR /&gt; at clpgas_talend.preprocessactivityclosing_0_1.preProcessActivityClosing.tOracleInput_1Process(preProcessActivityClosing.java:2683)&lt;BR /&gt; at clpgas_talend.preprocessactivityclosing_0_1.preProcessActivityClosing.tOracleConnection_1Process(preProcessActivityClosing.java:807)&lt;BR /&gt; at clpgas_talend.preprocessactivityclosing_0_1.preProcessActivityClosing.tJava_1Process(preProcessActivityClosing.java:691)&lt;BR /&gt; at clpgas_talend.preprocessactivityclosing_0_1.preProcessActivityClosing.runJobInTOS(preProcessActivityClosing.java:4906)&lt;BR /&gt; at clpgas_talend.preprocessactivityclosing_0_1.preProcessActivityClosing.runJob(preProcessActivityClosing.java:4601)&lt;BR /&gt; at clpgas_talend.activityclosing_0_1.activityClosing.tRunJob_5Process(activityClosing.java:4324)&lt;BR /&gt; at clpgas_talend.activityclosing_0_1.activityClosing.tJava_2Process(activityClosing.java:4130)&lt;BR /&gt; at clpgas_talend.activityclosing_0_1.activityClosing.tOracleConnection_1Process(activityClosing.java:6035)&lt;BR /&gt; at clpgas_talend.activityclosing_0_1.activityClosing.runJobInTOS(activityClosing.java:6541)&lt;BR /&gt; at clpgas_talend.activityclosing_0_1.activityClosing.main(activityClosing.java:6089)&lt;BR /&gt;Exception in component tRunJob_5&lt;BR /&gt;&lt;/B&gt;
&lt;BR /&gt;
&lt;B&gt;Here's my schema definition:&lt;/B&gt;
&lt;BR /&gt;ACTVTY_CD (varchar : PK)
&lt;BR /&gt;ENDT_EFF_DT (timestamp : PK)
&lt;BR /&gt;REF_GROUP_CD (varchar : PK)
&lt;BR /&gt;STAT_CD (varchar)
&lt;BR /&gt;TIMESTAMP (timestamp)
&lt;BR /&gt;DYNAMIC_FIELD (dynamic)
&lt;BR /&gt;
&lt;B&gt;Sample Query&lt;/B&gt; : SELECT * FROM TABLE_1;</description>
      <pubDate>Fri, 08 Apr 2011 10:28:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398531#M8974</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-08T10:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398532#M8975</link>
      <description>hii&lt;BR /&gt;when running i have this error &lt;BR /&gt;Démarrage du job chaine_logistique a 17:09 26/06/2011.&lt;BR /&gt; connecting to socket on port 3792&lt;BR /&gt; connected&lt;BR /&gt;Exception in component tMap_1&lt;BR /&gt;java.lang.NullPointerException&lt;BR /&gt;	at bi.chaine_logistique_0_1.chaine_logistique.tAccessInput_7Process(chaine_logistique.java:3884)&lt;BR /&gt;	at bi.chaine_logistique_0_1.chaine_logistique.runJobInTOS(chaine_logistique.java:6541)&lt;BR /&gt;	at bi.chaine_logistique_0_1.chaine_logistique.main(chaine_logistique.java:6412)&lt;BR /&gt; disconnected&lt;BR /&gt;Job chaine_logistique terminé à 17:09 26/06/2011. &lt;BR /&gt;plzz help</description>
      <pubDate>Sun, 26 Jun 2011 17:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398532#M8975</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-06-26T17:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398533#M8976</link>
      <description>Did you get the solution? I am facing the same issue.</description>
      <pubDate>Thu, 01 Mar 2012 06:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398533#M8976</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-03-01T06:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: using date with sybase</title>
      <link>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398534#M8977</link>
      <description>Please describe your question with more info, what's the error message do you get? What's the data type?
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;___________________________________________
&lt;BR /&gt;
&lt;A href="http://www.mmoggg.de/" target="_blank" rel="nofollow noopener noreferrer"&gt;wow gold&lt;/A&gt;|
&lt;A href="http://www.mmoggg.de/Diablo-3-gold/" target="_blank" rel="nofollow noopener noreferrer"&gt;diablo 3 gold&lt;/A&gt;</description>
      <pubDate>Mon, 10 Dec 2012 11:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Installing-and-Upgrading/using-date-with-sybase/m-p/2398534#M8977</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-12-10T11:50:27Z</dc:date>
    </item>
  </channel>
</rss>

