<?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 ReloadTime() and now(0) not Working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748127#M660403</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been attempting to use the functions ReloadTIme() or now(0) which as far as I can tell are identical, to output the last successful reload time for exception reporting purposes, e.g. to warn users when the data is behind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my main qvws, neither function is working. Reloadtime() outputs nothing, while now(0) outputs 'day zero' (30/12/1899). I assume the only difference in outputs it due to their default formatting options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="79967" class="jive-image image-5" src="https://community.qlik.com/legacyfs/online/79967_pastedImage_6.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I most certainly have reloaded these files many times. In other existing documents, and in new test documents on the same system (Windows Server 2012 Standard) the functions work just fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="79957" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/79957_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Testing on a newly created which has never been reloaded or saved, I still get a result for now(0) which equals its creation time, though ReloadTime() is blank:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="79960" class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/79960_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guessed reload method could have something to do with it, as the two main documents that don't work (first screenshot above) are running on scheduled reloads. However, testing on other scheduled documents works fine and reload times are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? My other thought is that is could be because both documents' scheduled reload happened to fail today (which is why I was looking to add the checks), but if the method doesn't work when the documents fail then it completely defeats the purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 08:54:30 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-03-05T08:54:30Z</dc:date>
    <item>
      <title>ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748127#M660403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been attempting to use the functions ReloadTIme() or now(0) which as far as I can tell are identical, to output the last successful reload time for exception reporting purposes, e.g. to warn users when the data is behind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my main qvws, neither function is working. Reloadtime() outputs nothing, while now(0) outputs 'day zero' (30/12/1899). I assume the only difference in outputs it due to their default formatting options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="79967" class="jive-image image-5" src="https://community.qlik.com/legacyfs/online/79967_pastedImage_6.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I most certainly have reloaded these files many times. In other existing documents, and in new test documents on the same system (Windows Server 2012 Standard) the functions work just fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="79957" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/79957_pastedImage_2.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Testing on a newly created which has never been reloaded or saved, I still get a result for now(0) which equals its creation time, though ReloadTime() is blank:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="79960" class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/79960_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guessed reload method could have something to do with it, as the two main documents that don't work (first screenshot above) are running on scheduled reloads. However, testing on other scheduled documents works fine and reload times are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? My other thought is that is could be because both documents' scheduled reload happened to fail today (which is why I was looking to add the checks), but if the method doesn't work when the documents fail then it completely defeats the purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 08:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748127#M660403</guid>
      <dc:creator />
      <dc:date>2015-03-05T08:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748128#M660405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just as an aside - Now() is a server killer in my experience....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 08:56:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748128#M660405</guid>
      <dc:creator />
      <dc:date>2015-03-05T08:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748129#M660407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've heard that now(1), which is the default functionality of now() can be dangerous as it's the current system time and and refreshes every second or more frequently, so would agree with you there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I wouldn't expect now(0) to affect unless it's poorly implemented, since the value must only be reset at reload time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748129#M660407</guid>
      <dc:creator />
      <dc:date>2015-03-05T09:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748130#M660409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might be right, but I would still store it in a variable at reload time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vReloadTime = now(1); &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748130#M660409</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-03-05T09:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748131#M660410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If it's just to show the last time the app refreshed, use the Reload() direct into your expression/object. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748131#M660410</guid>
      <dc:creator />
      <dc:date>2015-03-05T09:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748132#M660412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my knowledge, 2 is the default for now() i.e. is now() and now(2) are same and 1 is the default parameter for today() function. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:15:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748132#M660412</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-03-05T09:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748133#M660414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Exactly which version of QlikView are you using - Version, release &amp;amp; build number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What result do you see if you use&lt;STRONG&gt; =reloadtime()&lt;/STRONG&gt; in a text object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748133#M660414</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-03-05T09:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748134#M660415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the help, the default timer_mode for now() is 1, today() defaults to timer_mode 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="now.jpg" class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79975_now.jpg" style="width: 620px; height: 224px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748134#M660415</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-03-05T09:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748135#M660417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good points about adding it to the script, seems better practice anyhow. But I still would be interested to see why the functions are not working in some cases, seems like a bug to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Colin: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Version is:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.qlik.com/legacyfs/online/79968_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I add reloadtime() to a text object in the documents where it wasn't working, the behaviour is the same, is shows up as blank, and now(0) in such documents as 30/12/1899 00:00:00&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748135#M660417</guid>
      <dc:creator />
      <dc:date>2015-03-05T09:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748136#M660418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is your reload using the standard server schedule or something else?&lt;/P&gt;&lt;P&gt;If a reload fails the document should remain "as-is" and retain the reload time from the last successful reload&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:38:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748136#M660418</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-03-05T09:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748137#M660420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Standard schedule, daily reload in this case, on QV Server, no publisher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was assuming that would be the behaviour too, so odd it's just blank.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll retest a scheduled reload with a deliberate failure forced a bit later and see what the result it. Scheduled reloads on new documents and some existing documents which reload every 5 min are working just fine for both the reloadtime() and now(0) functions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:42:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748137#M660420</guid>
      <dc:creator />
      <dc:date>2015-03-05T09:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748138#M660422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has the app ever reloaded successfully?&lt;/P&gt;&lt;P&gt;If you create a blank qvw and do not reload it, then reloadtime() returns blank, but once it has reloaded you see a time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748138#M660422</guid>
      <dc:creator>Colin-Albert</dc:creator>
      <dc:date>2015-03-05T09:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748139#M660424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Mike Swinn wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I've heard that now(1), which is the default functionality of now() can be dangerous as it's the current system time and and refreshes every second or more frequently, so would agree with you there.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am pretty certain that this caution only applies to the use of now and today in expressions in the front end. There is no such impact in script which executes synchronously so there is no polling involved. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With modern servers, I expect that now(1) on the front end should only have an impact if some complex calculations are being performed on large data sets (based on the value in now?). This caution has been around for years and hardware has improved considerably since then. Personally, I have never seen an issue - but that's just my experience.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 09:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748139#M660424</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-03-05T09:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748140#M660427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A href="https://community.qlik.com/qlik-users/139023"&gt;MikeSwinn&lt;/A&gt;, I'm facing the same issue with QV 11.20.12354.0409 (SR6 I believe) when using -prj folders. Once I delete -prj folders everything works fine. After creating them again reload time is lost. Seems like a bug to me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Apr 2015 13:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748140#M660427</guid>
      <dc:creator>juraj_misina</dc:creator>
      <dc:date>2015-04-21T13:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748141#M660430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting, that would explain the inconsistent behaviour between files. Agreed it's a bug.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2015 07:38:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748141#M660430</guid>
      <dc:creator />
      <dc:date>2015-04-22T07:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748142#M660433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I found same behavior on customer's Qlik document and I solved changing TimestampFormat system variable.&lt;/P&gt;&lt;P&gt;There was a mistake on TimestampFormat mask.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ely&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 13:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748142#M660433</guid>
      <dc:creator>elyM</dc:creator>
      <dc:date>2015-11-12T13:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: ReloadTime() and now(0) not Working</title>
      <link>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748143#M660434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's been some time but now I remembered, my issue was fixed I think with SR10.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 15:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ReloadTime-and-now-0-not-Working/m-p/748143#M660434</guid>
      <dc:creator>juraj_misina</dc:creator>
      <dc:date>2015-11-12T15:37:53Z</dc:date>
    </item>
  </channel>
</rss>

