<?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: loading data issues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/loading-data-issues/m-p/408828#M152026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shouldn't use both ' and [ and quoting symbols. ' is enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let file1='y:\path\file.xls'&lt;/P&gt;&lt;P&gt;let file2='y:\path\file1.xls'&lt;/P&gt;&lt;P&gt;let file3='y:\path\file2.xls'&lt;/P&gt;&lt;P&gt;let file4='y:\path\file3.xls'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFileName in file1, file2, file3, file4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * from [$(vFileName)] ... ;&lt;/P&gt;&lt;P&gt;Next vFileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...or skip the Let statements altogether:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFileName in 'y:\path\file.xls', 'y:\path\file1.xls', 'y:\path\file2.xls', 'y:\path\file3.xls'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * from [$(vFileName)] ... ;&lt;/P&gt;&lt;P&gt;Next vFileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and skip the hard-coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFileName in FileList('y:\path\*.xls')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * from [$(vFileName)] ... ;&lt;/P&gt;&lt;P&gt;Next vFileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Apr 2013 13:02:43 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-04-29T13:02:43Z</dc:date>
    <item>
      <title>loading data issues</title>
      <link>https://community.qlik.com/t5/QlikView/loading-data-issues/m-p/408825#M152023</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 want to check before loading data in qvw if the file is on teh shared drive or not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what is syntax of the if function in script and if not found give a pop up message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if file = true then&amp;nbsp;&amp;nbsp; ---------is this syntax corect as this is not working properly at my end like even if file is present or not it goes to "else statement"&lt;/P&gt;&lt;P&gt; load * from file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;msgbox " file not present yet" --------is this syntax correct as this is not working and giving an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif&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>Mon, 29 Apr 2013 10:14:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-data-issues/m-p/408825#M152023</guid>
      <dc:creator />
      <dc:date>2013-04-29T10:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: loading data issues</title>
      <link>https://community.qlik.com/t5/QlikView/loading-data-issues/m-p/408826#M152024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest a message-free execution, by using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFile in FileList('C.\path\Filename.csv')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * from [$(vFile)]&lt;/P&gt;&lt;P&gt;Next vFile&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a loop, but if you do not use any wildcards in the mask (the parameter of FileList()), then it will be like an existence test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 10:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-data-issues/m-p/408826#M152024</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-04-29T10:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: loading data issues</title>
      <link>https://community.qlik.com/t5/QlikView/loading-data-issues/m-p/408827#M152025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the response but i am not able to implement in my script. let me give you more color..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have 4 files with different names which i have defined in 4 different variables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let file1='&lt;Y&gt;'&lt;/Y&gt;&lt;/P&gt;&lt;P&gt;let file2='&lt;Y&gt;'&lt;/Y&gt;&lt;/P&gt;&lt;P&gt;let file3='&lt;Y&gt;'&lt;/Y&gt;&lt;/P&gt;&lt;P&gt;let file4='&lt;Y&gt;'&lt;/Y&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then i say &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load * from file1&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;load * from file2&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i write the above for loop in this scenario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 11:27:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-data-issues/m-p/408827#M152025</guid>
      <dc:creator />
      <dc:date>2013-04-29T11:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: loading data issues</title>
      <link>https://community.qlik.com/t5/QlikView/loading-data-issues/m-p/408828#M152026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You shouldn't use both ' and [ and quoting symbols. ' is enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let file1='y:\path\file.xls'&lt;/P&gt;&lt;P&gt;let file2='y:\path\file1.xls'&lt;/P&gt;&lt;P&gt;let file3='y:\path\file2.xls'&lt;/P&gt;&lt;P&gt;let file4='y:\path\file3.xls'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFileName in file1, file2, file3, file4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * from [$(vFileName)] ... ;&lt;/P&gt;&lt;P&gt;Next vFileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...or skip the Let statements altogether:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFileName in 'y:\path\file.xls', 'y:\path\file1.xls', 'y:\path\file2.xls', 'y:\path\file3.xls'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * from [$(vFileName)] ... ;&lt;/P&gt;&lt;P&gt;Next vFileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...and skip the hard-coding:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each vFileName in FileList('y:\path\*.xls')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load * from [$(vFileName)] ... ;&lt;/P&gt;&lt;P&gt;Next vFileName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 13:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-data-issues/m-p/408828#M152026</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-04-29T13:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: loading data issues</title>
      <link>https://community.qlik.com/t5/QlikView/loading-data-issues/m-p/408829#M152027</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 above syntax is helpful but not for this dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want if anyone of 4 files are not present, it should exit the for loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the reason is i ran the above syntax and as files for today were not present it ran 4 times and popped up error message saying files not present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please advise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2013 14:18:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-data-issues/m-p/408829#M152027</guid>
      <dc:creator />
      <dc:date>2013-04-29T14:18:24Z</dc:date>
    </item>
  </channel>
</rss>

