<?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: Date problem in QV10 working on previous version in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271836#M101863</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried date#() with several formats as well, still the same error message &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2011 07:08:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-25T07:08:30Z</dc:date>
    <item>
      <title>Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271832#M101859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a script loading from an oracle table and data load is limited by start date and end date. This script has been (and still is) working perfectly fine on Qlikview 8.20 (yeah I know, old version &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;). When transferring this to the newer QV10 server, I get "ORA-01861: literal does not match format string" error. It is the very same script, and I can cope it from the newer server to the old one, and the script works perfect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas what I can do to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let StartDate = date('2010-01-01','YYYY-MM-DD');&lt;BR /&gt;Let EndDate = date(today(),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpLoad:&lt;BR /&gt;LOAD &lt;BR /&gt;"TRANSACTION_DATE";&lt;BR /&gt;SQL SELECT &lt;BR /&gt;"TRANSACTION_DATE"&lt;BR /&gt;FROM MY_TABLE&lt;/P&gt;&lt;P&gt;WHERE("TRANSACTION_DATE"&amp;gt;= '$(StartDate)'&lt;BR /&gt;AND "TRANSACTION_DATE"&amp;lt; '$(EndDate)' );&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;BR&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 14:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271832#M101859</guid>
      <dc:creator />
      <dc:date>2011-10-24T14:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271833#M101860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess is that $(StartDate) is not being parsed properly. Add this line just below the LET lines, just to see if the date has the proper format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;TRACE $(StartDate);&lt;/P&gt;&lt;P&gt;TRACE $(EndDate);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know the result. You might need to change your date format. If the driver to connect to the Oracle database has not changed, is the only problem I'd see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="font-size: 12px; outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BI Consultant&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="font-size: 12px; outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2011 15:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271833#M101860</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-24T15:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271834#M101861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi and thank you for your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reslut looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;Connected&lt;BR /&gt;2010-01-01&lt;BR /&gt;2011-10-25&lt;/P&gt;&lt;P&gt;--- Script Finished --- &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I could also mention that I have tried several formats of StartDate and EndDate, for example 'YYYYMMDD', 'YYYY-MM-DD hh:mm:ss' etc etc. I have also tried Timestap instead of Date function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When loading a few records from the table without any limitation (commenting the where clause), the TRANSACTION_DATE fied gives following format &lt;/P&gt;&lt;P&gt;2006-12-10 12:30:34.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way in Qlikview checking whether the field is date or varchar or similar, to find out if it could have a leading space or so? This is just a long shot, I have basically no idea how to solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 06:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271834#M101861</guid>
      <dc:creator />
      <dc:date>2011-10-25T06:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271835#M101862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hi try with date#(...) for both variables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 06:51:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271835#M101862</guid>
      <dc:creator />
      <dc:date>2011-10-25T06:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271836#M101863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried date#() with several formats as well, still the same error message &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 07:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271836#M101863</guid>
      <dc:creator />
      <dc:date>2011-10-25T07:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271837#M101864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let StartDate = date('2010-01-01','YYYY-MM-DD');&lt;BR /&gt;Let EndDate = date(today(),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpLoad:&lt;BR /&gt;LOAD &lt;BR /&gt;"TRANSACTION_DATE";&lt;BR /&gt;SQL SELECT &lt;BR /&gt;"TRANSACTION_DATE"&lt;BR /&gt;FROM MY_TABLE&lt;/P&gt;&lt;P&gt;WHERE("TRANSACTION_DATE"&amp;gt;= '(StartDate)'&lt;BR /&gt;AND "TRANSACTION_DATE"&amp;lt; '(EndDate)' );&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 07:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271837#M101864</guid>
      <dc:creator />
      <dc:date>2011-10-25T07:18:10Z</dc:date>
    </item>
    <item>
      <title>Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271838#M101865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the script now ended in "ORA-01858: a non-numeric character was found where a numeric was expected".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 07:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271838#M101865</guid>
      <dc:creator />
      <dc:date>2011-10-25T07:34:54Z</dc:date>
    </item>
    <item>
      <title>Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271839#M101866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; what is the TRANSACTION_DATE format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 07:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271839#M101866</guid>
      <dc:creator />
      <dc:date>2011-10-25T07:37:56Z</dc:date>
    </item>
    <item>
      <title>Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271840#M101867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not access PL/SQL at the moment, and thus not check the data type of the field TRANSACTION_DATE right now. As mentioned above, if I load some records from the table without any limitation (commented where clause), I get the format of&lt;/P&gt;&lt;P&gt;2006-12-10 12:30:34&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is just the Qlikview presented format. Is there any way to check the data type of the field via Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 07:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271840#M101867</guid>
      <dc:creator />
      <dc:date>2011-10-25T07:47:28Z</dc:date>
    </item>
    <item>
      <title>Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271841#M101868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpLoad:&lt;BR /&gt;LOAD &lt;BR /&gt;makedate(subfield(TRANSACTION_DATE,'-',1),subfield(TRANSACTION_DATE,'-',2),subfield(TRANSACTION_DATE,'-',3)) as TRANSACTION_DATE&lt;/P&gt;&lt;P&gt;WHERE &lt;/P&gt;&lt;P&gt;makedate(subfield(TRANSACTION_DATE,'-',1),subfield(TRANSACTION_DATE,'-',2),subfield(TRANSACTION_DATE,'-',3))&amp;gt;= makedate(2010,01,01)&lt;BR /&gt;AND &lt;/P&gt;&lt;P&gt;makedate(subfield(TRANSACTION_DATE,'-',1),subfield(TRANSACTION_DATE,'-',2),subfield(TRANSACTION_DATE,'-',3))&amp;lt; today();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;BR /&gt;"TRANSACTION_DATE"&lt;BR /&gt;FROM MY_TABLE;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 08:05:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271841#M101868</guid>
      <dc:creator />
      <dc:date>2011-10-25T08:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271842#M101869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This Oracle issue is due to parsing error in your script. The StartDate and EndDate format type is not matching to Oracles. I am not sure why this is occuring in one version but not the other. If you generate log (document properties-&amp;gt; Generate Log file) in both the versions we can compare the SQLs they are passing to Oracle and find the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its always best to user SQL without custom formats. The following code will work if your QVS and Oracle are in the same timezone. If not incorporate the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let DateDiff = num(date(today(),'YYYY-MM-DD')-date('2010-01-01','YYYY-MM-DD'));&lt;/P&gt;&lt;P&gt;tmpLoad:&lt;BR /&gt;LOAD &lt;BR /&gt;"TRANSACTION_DATE";&lt;BR /&gt;SQL SELECT &lt;BR /&gt;"TRANSACTION_DATE"&lt;BR /&gt;FROM MY_TABLE&lt;BR /&gt;WHERE("TRANSACTION_DATE"&amp;gt;= sysdate-'$(DateDiff)'&lt;BR /&gt;AND "TRANSACTION_DATE"&amp;lt; sysdate );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 08:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271842#M101869</guid>
      <dc:creator />
      <dc:date>2011-10-25T08:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271843#M101870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these are the log files, first from the old server, second is from the new server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;2011-10-25 11:21:27: 0015&amp;nbsp; Let StartDate = date('2010-01-01','YYYY-MM-DD')&lt;BR /&gt;2011-10-25 11:21:27: 0016&amp;nbsp; Let EndDate = date(today(),'YYYY-MM-DD')&lt;BR /&gt;2011-10-25 11:21:27: 0019&amp;nbsp; tmpLoad:&lt;BR /&gt;2011-10-25 11:21:27: 0020&amp;nbsp; LOAD &lt;BR /&gt;2011-10-25 11:21:27: 0021&amp;nbsp; "TRANSACTION_DATE"&lt;BR /&gt;2011-10-25 11:21:27: 0022&amp;nbsp; SQL SELECT &lt;BR /&gt;2011-10-25 11:21:27: 0023&amp;nbsp; "TRANSACTION_DATE"&lt;BR /&gt;2011-10-25 11:21:27: 0024&amp;nbsp; FROM MY_TABLE&lt;BR /&gt;2011-10-25 11:21:27: 0025&amp;nbsp; WHERE("TRANSACTION_DATE"&amp;gt;= '2010-01-01'&lt;BR /&gt;2011-10-25 11:21:27: 0026&amp;nbsp; AND "TRANSACTION_DATE"&amp;lt; '2011-10-25'&lt;BR /&gt;2011-10-25 11:21:27: 0027&amp;nbsp; )&lt;BR /&gt;2011-10-25 11:21:30:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 fields found: TRANSACTION_DATE, 10 lines fetched&lt;BR /&gt;2011-10-25 11:21:33:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2011-10-25 11:14:26: 0015&amp;nbsp; Let StartDate = date('2010-01-01','YYYY-MM-DD')&lt;BR /&gt;2011-10-25 11:14:26: 0016&amp;nbsp; Let EndDate = date(today(),'YYYY-MM-DD')&lt;BR /&gt;2011-10-25 11:14:26: 0020&amp;nbsp; tmpLoad:&lt;BR /&gt;2011-10-25 11:14:26: 0021&amp;nbsp; LOAD&lt;BR /&gt;2011-10-25 11:14:26: 0022&amp;nbsp; "TRANSACTION_DATE"&lt;BR /&gt;2011-10-25 11:14:26: 0023&amp;nbsp; SQL SELECT &lt;BR /&gt;2011-10-25 11:14:26: 0024&amp;nbsp; "TRANSACTION_DATE"&lt;BR /&gt;2011-10-25 11:14:26: 0025&amp;nbsp; FROM MY_TABLE&lt;BR /&gt;2011-10-25 11:14:26: 0026&amp;nbsp; WHERE("TRANSACTION_DATE"&amp;gt;= '2010-01-01'&lt;BR /&gt;2011-10-25 11:14:26: 0027&amp;nbsp; AND "TRANSACTION_DATE"&amp;lt; '2011-10-25')&lt;/P&gt;&lt;P&gt;2011-10-25 11:14:27:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error: SQL##f - SqlState: S1000, ErrorCode: 1861, ErrorMsg: [Oracle][ODBC][Ora]ORA-01861: literal does not match format string&lt;/P&gt;&lt;P&gt;2011-10-25 11:14:30:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution finished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Howerver, the script you posted seems to work perfectly fine. I will incorporate that with the full load and match the results from the different servers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 09:29:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271843#M101870</guid>
      <dc:creator />
      <dc:date>2011-10-25T09:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271844#M101871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; ok let me know if it work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 09:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271844#M101871</guid>
      <dc:creator />
      <dc:date>2011-10-25T09:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271845#M101872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when validating the full load from 2010 untill today, I get the exact same valuse on the old and the new server. Many thanks for the help! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/love.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script used on the new server is now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpLoad:&lt;/P&gt;&lt;P&gt;Let DateDiff = num(date(today(),'YYYY-MM-DD')-date('2010-01-01','YYYY-MM-DD'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tmpLoad:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;"TRANSACTION_DATE";&lt;/P&gt;&lt;P&gt;SQL SELECT &lt;/P&gt;&lt;P&gt;"TRANSACTION_DATE"&lt;/P&gt;&lt;P&gt;FROM MY_TABLE&lt;/P&gt;&lt;P&gt;WHERE("TRANSACTION_DATE"&amp;gt;= sysdate-'$(DateDiff)'&lt;/P&gt;&lt;P&gt;AND "TRANSACTION_DATE"&amp;lt; sysdate );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only "problem" that still persists is that sysdate refers to a time stamp. The applicatione is created so that a data load is extracting data to qvd-files every night with data between start date and end date. The data for current date is updated in another application via event driven load. On the previous server I was limiting the nightly data extract to midnight the day before, for instance 24th of October, and the data for 25th of October was loaded by the user at any time during the day via the event. If I load data until sysdate and then update with data for current date, I will eventually get double data for current date, both from QVD and from direct database load at event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to truncate sysdate to let the load stop at midnight?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 15:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271845#M101872</guid>
      <dc:creator />
      <dc:date>2011-10-25T15:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271846#M101873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following in your WHERE statement in the SQL to Oracle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;WHERE TO_CHAR(TRANSACTION_DATE, 'YYYY-MM-DD') &amp;gt;= '2010-01-01'&lt;/P&gt;&lt;P&gt;AND TO_CHAR(TRANSACTION_DATE, 'YYYY-MM-DD') &amp;lt; '$(=Date(Today(), 'YYYY-MM-DD'))';&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can LET the Date(Today()) part in a variable if that suits you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/people/mabaeyens" style="outline-style: none; padding-top: 1px; padding-bottom: 1px; padding-left: 17px; color: #007fc0; zoom: 1; background-position: no-repeat no-repeat;"&gt;Miguel Angel Baeyens&lt;/A&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;BI Consultant&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&lt;A class="jive-link-external-small" href="http://www.grupocomex.com/" style="outline-style: none; color: #007fc0;"&gt;Comex Grupo Ibérica&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 16:37:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271846#M101873</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2011-10-25T16:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271847#M101874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the following in your second condition instead of sysdate. It flags off data at midnight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;decode(to_char(sysdate,'HH24'),'01',0,sysdate)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Kiran. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2011 18:06:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271847#M101874</guid>
      <dc:creator />
      <dc:date>2011-10-25T18:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271848#M101875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sorry for bringing this up again, but I haven't had the time the past week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My WHERE condition now says&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;WHERE("TRANSACTION_DATE"&amp;gt;= sysdate-'$(DateDiff)'&lt;/P&gt;&lt;P&gt;AND "TRANSACTION_DATE"&amp;lt; decode(to_char(sysdate,'HH24'),'01',0,sysdate) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This now ends up in error message "ORA-00932: inconsistent datatypes: expected NUMBER got DATE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 08:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271848#M101875</guid>
      <dc:creator />
      <dc:date>2011-11-07T08:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271849#M101876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;"TRANSACTION_DATE"&amp;lt;=&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;decode(to_char(sysdate,'HH24'),'01',&lt;/CODE&gt;&lt;CODE class="jive-code"&gt;&lt;/CODE&gt;TRUNC(sysdate)-1&lt;CODE class="jive-code"&gt;,&lt;/CODE&gt;TRUNC(sysdate)&lt;CODE class="jive-code"&gt;) &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 09:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271849#M101876</guid>
      <dc:creator />
      <dc:date>2011-11-07T09:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271850#M101877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that seems to work like a charm, many thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 09:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271850#M101877</guid>
      <dc:creator />
      <dc:date>2011-11-07T09:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Date problem in QV10 working on previous version</title>
      <link>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271851#M101878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't validate the logic so be vigilant while implementing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 09:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-problem-in-QV10-working-on-previous-version/m-p/271851#M101878</guid>
      <dc:creator />
      <dc:date>2011-11-07T09:27:37Z</dc:date>
    </item>
  </channel>
</rss>

