<?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: How to check if multiple QVD's exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-check-if-multiple-QVD-s-exists/m-p/769018#M666219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the following before "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD 'D:\DATA\*_projectactuals.qvd'&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ERRORMODE = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will not prompt for any error while reloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 20 Dec 2014 12:11:19 GMT</pubDate>
    <dc:creator>vivek_niti</dc:creator>
    <dc:date>2014-12-20T12:11:19Z</dc:date>
    <item>
      <title>How to check if multiple QVD's exists</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-if-multiple-QVD-s-exists/m-p/769017#M666218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question and I hope someone can help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within a map I can have 0, 1, or multiple files with a name ending with 'projectactuals', so 123_projectactuals.qvd, 456_projectactuals, etc. Within a model-qvd I want to load these QVD's BUT ONLY IF THEY EXIST.&lt;/P&gt;&lt;P&gt;This means LOAD 'D:\DATA\*_projectactuals.qvd' will return an error when the file does not exist.So I want to check if files ending with 'projectactuals' exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use the following statement it works fine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vListQVDExistsProjectactuals&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;QVDCreateTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('D:\Data\123_Projectactuals.qvd'));&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vListQVDExistsProjectactuals)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;THEN LOAD...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However there can multiple files all ending with 'projectactuals' and the prefix '123' is random.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;vListQVDExistsProjectactuals&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NOT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;QVDCreateTime&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;('D:\Data\*_Projectactuals.qvd'));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;but that doesn't work as the variable probably wants to have 1 unique file name and the * (star) is within the quotes, so this doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 21:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-if-multiple-QVD-s-exists/m-p/769017#M666218</guid>
      <dc:creator>heij1421</dc:creator>
      <dc:date>2014-12-19T21:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if multiple QVD's exists</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-if-multiple-QVD-s-exists/m-p/769018#M666219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use the following before "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;LOAD 'D:\DATA\*_projectactuals.qvd'&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ERRORMODE = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will not prompt for any error while reloading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 12:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-if-multiple-QVD-s-exists/m-p/769018#M666219</guid>
      <dc:creator>vivek_niti</dc:creator>
      <dc:date>2014-12-20T12:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if multiple QVD's exists</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-if-multiple-QVD-s-exists/m-p/769019#M666220</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ERRORMODE = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;Count(DISTINCT FileName()) AS Files&lt;/P&gt;&lt;P&gt;FROM D:\DATA\*_projectactuals.qvd (qvd);&lt;/P&gt;&lt;P&gt;LET vFileCount = Alt(Peek('Files'), 0);&lt;/P&gt;&lt;P&gt;SET ERRORMODE =1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 20 Dec 2014 13:45:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-if-multiple-QVD-s-exists/m-p/769019#M666220</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-12-20T13:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if multiple QVD's exists</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-check-if-multiple-QVD-s-exists/m-p/769020#M666221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, this works. Thanks guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jan 2015 16:26:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-check-if-multiple-QVD-s-exists/m-p/769020#M666221</guid>
      <dc:creator>heij1421</dc:creator>
      <dc:date>2015-01-02T16:26:27Z</dc:date>
    </item>
  </channel>
</rss>

