<?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 How is a QVD header formed? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-is-a-QVD-header-formed/m-p/187811#M51340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;We've been having some issues with our QVD extracts running when they should not. We have a check in place to see if they have already run today:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Let vLastRun = date(QvdCreateTime('D:\Qlikview\Core\QVDs\TH_FI.qvd'),DD-MMM-YYYY);&lt;BR /&gt;let vNowDate = date(now(),DD-MMM-YYYY);&lt;BR /&gt;Let vLastRun = if(isnull(vLastRun),date(now()-2,DD-MMM-YYYY),vLastRun);&lt;BR /&gt;TRACE $(vLastRun);&lt;BR /&gt;IF $(vLastRun) = $(vNowDate) THEN&lt;BR /&gt; TRACE Data extract has already run today;&lt;BR /&gt; EXIT script;&lt;BR /&gt;ELSE&lt;BR /&gt; TRACE Data extract has not yet run today;&lt;BR /&gt;END IF&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;However, on very rare occasions, whats happening is the vLastRun is coming through as null, (even though the QVD definitely exists) and so the extract is re-running. The QVD certainly exists, we have other processes that depend on it that run fine, so the only reason I can imagine that it gets a null is because the header of the QVD is not written properly, so it cant get the 'QvdCreateTime' properly. Does anyone have any information on how I could I could investigate the issue, eg, how and when the headers are formed? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Sep 2010 16:36:25 GMT</pubDate>
    <dc:creator>richnorris</dc:creator>
    <dc:date>2010-09-03T16:36:25Z</dc:date>
    <item>
      <title>How is a QVD header formed?</title>
      <link>https://community.qlik.com/t5/QlikView/How-is-a-QVD-header-formed/m-p/187811#M51340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;We've been having some issues with our QVD extracts running when they should not. We have a check in place to see if they have already run today:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;Let vLastRun = date(QvdCreateTime('D:\Qlikview\Core\QVDs\TH_FI.qvd'),DD-MMM-YYYY);&lt;BR /&gt;let vNowDate = date(now(),DD-MMM-YYYY);&lt;BR /&gt;Let vLastRun = if(isnull(vLastRun),date(now()-2,DD-MMM-YYYY),vLastRun);&lt;BR /&gt;TRACE $(vLastRun);&lt;BR /&gt;IF $(vLastRun) = $(vNowDate) THEN&lt;BR /&gt; TRACE Data extract has already run today;&lt;BR /&gt; EXIT script;&lt;BR /&gt;ELSE&lt;BR /&gt; TRACE Data extract has not yet run today;&lt;BR /&gt;END IF&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;However, on very rare occasions, whats happening is the vLastRun is coming through as null, (even though the QVD definitely exists) and so the extract is re-running. The QVD certainly exists, we have other processes that depend on it that run fine, so the only reason I can imagine that it gets a null is because the header of the QVD is not written properly, so it cant get the 'QvdCreateTime' properly. Does anyone have any information on how I could I could investigate the issue, eg, how and when the headers are formed? Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Sep 2010 16:36:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-is-a-QVD-header-formed/m-p/187811#M51340</guid>
      <dc:creator>richnorris</dc:creator>
      <dc:date>2010-09-03T16:36:25Z</dc:date>
    </item>
  </channel>
</rss>

