<?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: QVD Exists Check in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006086#M341714</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome. I suggest marking Stefan's answer as correct and close the thread down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Dec 2015 23:09:28 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-30T23:09:28Z</dc:date>
    <item>
      <title>QVD Exists Check</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006080#M341708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to check if the qvd exists, using the &lt;SPAN style="font-size: 13.3333px;"&gt;QVDCreateTime function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am facing an error-&amp;nbsp; it executes with zero&amp;nbsp; lines fetched....&lt;/P&gt;&lt;P&gt;My script is below:&lt;/P&gt;&lt;P&gt;SET vPathQVD ='\\fillup\Qlikview\'&lt;/P&gt;&lt;P&gt;SET vStartYear = Year(Today())-3;&amp;nbsp; &lt;/P&gt;&lt;P&gt;SET vEndYear = Year(Today())+1;&lt;/P&gt;&lt;P&gt;SET vHIEndYear =Year(Today())+1 ;&lt;/P&gt;&lt;P&gt;SET vHDateYear = Year(Today())-3;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR vYearQVD = $(vStartYear) to $(vHIEndYear) step 1 &lt;/P&gt;&lt;P&gt; LET vQVDfile =&amp;nbsp; vPathQVD &amp;amp; 'Hotel Inv '&amp;amp; vYearQVD &amp;amp; '.QVD';&lt;/P&gt;&lt;P&gt; LET vListQVDExists = NOT isnull(QVDCreateTime('$(vQVDfile)'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF $(vListQVDExists) THEN &lt;/P&gt;&lt;P&gt;[Hotel Inv]:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM [$(vQVDfile)] (qvd)&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE&amp;nbsp; [HDate] &amp;gt;= '$(&lt;SPAN style="font-size: 13.3333px;"&gt;vHDateYea&lt;/SPAN&gt;r)';//'2013'; &lt;/P&gt;&lt;P&gt;ENDIF;&lt;/P&gt;&lt;P&gt;NEXT; //end of load loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 21:34:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006080#M341708</guid>
      <dc:creator>naziralala</dc:creator>
      <dc:date>2015-12-30T21:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Exists Check</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006081#M341709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Try this approach may be for checking:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;SET vPathQVD ='\\fillup\Qlikview\'&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;SET vStartYear = Year(Today())-3; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;SET vEndYear = Year(Today())+1;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;SET vHIEndYear =Year(Today())+1 ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;SET vHDateYear = Year(Today())-3;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;FOR vYearQVD = $(vStartYear) to $(vHIEndYear) step 1&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET vQVDfile =&amp;nbsp; vPathQVD &amp;amp; 'Hotel Inv '&amp;amp; vYearQVD &amp;amp; '.QVD';&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LET &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vListQVDExists &lt;/SPAN&gt;= If(FileSize(&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;vQVDfile&lt;/STRONG&gt;) &amp;gt; 0, -1, 0);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #575757;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF $(&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vListQVDExists&lt;/STRONG&gt;) then&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 21:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006081#M341709</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-30T21:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Exists Check</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006082#M341710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try stepping through the code using Debug mode in script editor. Check that every variable is evaluated and set correctly to expected value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should use LET instead SET here:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET vStartYear = Year(Today())-3; &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET vEndYear = Year(Today())+1;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET vHIEndYear =Year(Today())+1 ;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET vHDateYear = Year(Today())-3;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 21:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006082#M341710</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-12-30T21:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Exists Check</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006083#M341711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.. Same result...0 lines fetched...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 21:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006083#M341711</guid>
      <dc:creator>naziralala</dc:creator>
      <dc:date>2015-12-30T21:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Exists Check</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006084#M341712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was a good suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found one of the variables not being assigned a value...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 22:32:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006084#M341712</guid>
      <dc:creator>naziralala</dc:creator>
      <dc:date>2015-12-30T22:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Exists Check</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006085#M341713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It worked with the variable getting its value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 22:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006085#M341713</guid>
      <dc:creator>naziralala</dc:creator>
      <dc:date>2015-12-30T22:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: QVD Exists Check</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006086#M341714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome. I suggest marking Stefan's answer as correct and close the thread down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 23:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-Exists-Check/m-p/1006086#M341714</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-30T23:09:28Z</dc:date>
    </item>
  </channel>
</rss>

