<?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: Qlik Sense Date Format Issue_ORACLE in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1772931#M5660</link>
    <description>&lt;P&gt;Thank you, Steve. I tried using CAST function but whatever syntax I tried is not working. Maybe I am not doing it right in oracle. I tried “Substr” it’s working but not getting the expected format. I would appreciate if you could point/help me with format&lt;/P&gt;&lt;P&gt;Syntax used for CAST: (tried multiple other variants)&lt;BR /&gt;CAST(Formated Time as Date )&lt;/P&gt;&lt;P&gt;Substr syntax:&lt;/P&gt;&lt;P&gt;Substr(Formated Time,1,20) as Formated Time&lt;/P&gt;&lt;P&gt;Format after Substr:&lt;/P&gt;&lt;P&gt;01-APR-16&lt;/P&gt;&lt;P&gt;Expected format:&lt;/P&gt;&lt;P&gt;01/04/2016&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 16:53:36 GMT</pubDate>
    <dc:creator>carloswilly</dc:creator>
    <dc:date>2021-01-08T16:53:36Z</dc:date>
    <item>
      <title>Qlik Sense Date Format Issue_ORACLE</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1772597#M5657</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;Happy New Year!. I am new to qlik development and ran into a strange issue. I have researched on the internet but unfortunately cannot make it work.&amp;nbsp; If you get a chance, please help.&lt;/P&gt;&lt;P&gt;I am trying to load data from Siebel/Oracle db into qlik.&amp;nbsp; When I try to load the data into qlik I am getting “Error: QVX_UNEXPECTED_END_OF_DATA: SQL##f - SqlState: 22007, ErrorCode: 0, ErrorMsg: [Oracle][ODBC]Invalid datetime format” error.&lt;/P&gt;&lt;P&gt;I commented out all the fields and figured out one date filed is causing the issue&lt;/P&gt;&lt;P&gt;Ran the query against the db using querying tool and it runs fine. Exported the data to a.csv file and was able to load in to qlik without issues.&amp;nbsp; I am not sure what’s going wrong with qlik. I really appreciate any help on this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 16:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1772597#M5657</guid>
      <dc:creator>carloswilly</dc:creator>
      <dc:date>2021-01-07T16:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Date Format Issue_ORACLE</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1772631#M5658</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/132675"&gt;@carloswilly&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error message looks to me like it is being generated by Oracle, rather than Qlik, and I'm therefore surprised that it works okay when copied into Oracle.&lt;/P&gt;&lt;P&gt;Do you have a preceding load on the query, or is it just a straight select from Oracle?&lt;/P&gt;&lt;P&gt;Can you try casting the field to a string in the SQL statement, a preceding load will then be able to convert that string back to a date on the Qlik side.&lt;/P&gt;&lt;P&gt;Is there any comparison or where statements in the Oracle query?&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 17:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1772631#M5658</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2021-01-07T17:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Date Format Issue_ORACLE</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1772649#M5659</link>
      <description>&lt;P&gt;Hi Steve,&lt;/P&gt;&lt;P&gt;Thank you very much for the response.&amp;nbsp; I tried with both straight select&amp;nbsp; from oracle and preceding load as well&amp;nbsp; but getting the same error message.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no comparison.&lt;/P&gt;&lt;P&gt;I will try using the cast function and see if it's works. Thank you&lt;/P&gt;&lt;P&gt;Carlos,&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 18:00:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1772649#M5659</guid>
      <dc:creator>carloswilly</dc:creator>
      <dc:date>2021-01-07T18:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Date Format Issue_ORACLE</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1772931#M5660</link>
      <description>&lt;P&gt;Thank you, Steve. I tried using CAST function but whatever syntax I tried is not working. Maybe I am not doing it right in oracle. I tried “Substr” it’s working but not getting the expected format. I would appreciate if you could point/help me with format&lt;/P&gt;&lt;P&gt;Syntax used for CAST: (tried multiple other variants)&lt;BR /&gt;CAST(Formated Time as Date )&lt;/P&gt;&lt;P&gt;Substr syntax:&lt;/P&gt;&lt;P&gt;Substr(Formated Time,1,20) as Formated Time&lt;/P&gt;&lt;P&gt;Format after Substr:&lt;/P&gt;&lt;P&gt;01-APR-16&lt;/P&gt;&lt;P&gt;Expected format:&lt;/P&gt;&lt;P&gt;01/04/2016&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 16:53:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1772931#M5660</guid>
      <dc:creator>carloswilly</dc:creator>
      <dc:date>2021-01-08T16:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Date Format Issue_ORACLE</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1772932#M5661</link>
      <description>&lt;P&gt;Attached the excel with format after substr for reference&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 16:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1772932#M5661</guid>
      <dc:creator>carloswilly</dc:creator>
      <dc:date>2021-01-08T16:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Date Format Issue_ORACLE</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1773013#M5663</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/132675"&gt;@carloswilly&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm surprised by the Oracle fieldname&amp;nbsp;&lt;STRONG&gt;Formatted Time&lt;/STRONG&gt;, as I wouldn't expect a space to be allowed. Have you changed the field name for the post?&lt;/P&gt;&lt;P&gt;With the cast, you don't want to cast to Date, rather cast to a string which can then be dealt with in Qlik code.&lt;/P&gt;&lt;P&gt;It doesn't matter what format you get back from Oracle as a string, as Qlik can fix it up in the preceding load. For example, if you have the format you show as being after the substr you can do this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(Date#([Formatted Time], 'DD-MMM-YY'), 'DD/MM/YYYY') as [Formatted Time],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;Date#&lt;/STRONG&gt; function turns a string into a number (or a Dual to be more precise) and then the&amp;nbsp;&lt;STRONG&gt;Date&lt;/STRONG&gt; function formats that number how you want to see it.&lt;/P&gt;&lt;P&gt;The substr function causes you code to work as it will do an implicit cast to string, as you are doing a string function on a date field.&lt;/P&gt;&lt;P&gt;Hope that makes sense?&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 23:00:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1773013#M5663</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2021-01-08T23:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Date Format Issue_ORACLE</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1773085#M5664</link>
      <description>&lt;P&gt;Thank you very much Steve. It worked and makes perfect sense, thank you for explaining how Date % function works.&lt;/P&gt;&lt;P&gt;Carlos&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jan 2021 18:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Sense-Date-Format-Issue-ORACLE/m-p/1773085#M5664</guid>
      <dc:creator>carloswilly</dc:creator>
      <dc:date>2021-01-09T18:38:55Z</dc:date>
    </item>
  </channel>
</rss>

