<?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 problem with a load of multiple files from multiple folders in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-a-load-of-multiple-files-from-multiple-folders/m-p/250028#M94962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Rakesh and apologies for the late reply to your correct answer, this worked !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2012 14:17:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-19T14:17:07Z</dc:date>
    <item>
      <title>problem with a load of multiple files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-load-of-multiple-files-from-multiple-folders/m-p/250026#M94960</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;This code fragment is designed to load multiple csv files of a pattern &lt;SPAN style="font-family: Courier New;"&gt;*XBWDO603* &lt;/SPAN&gt;from a list of subfolders. It is happy to load numeric folders e.g. &lt;SPAN style="font-family: Courier New;"&gt;20110711, 20110718 &lt;/SPAN&gt;but generates an error "Syntax error, missing/misplaced FROM" with folder &lt;SPAN style="font-family: Courier New;"&gt;20110705R&lt;/SPAN&gt;.&amp;nbsp; Rename the folder to be numeric &lt;SPAN style="font-family: Courier New;"&gt;20110705 &lt;/SPAN&gt;and the code works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone got an idea why this might be ?&amp;nbsp; I am using QV v9.00.7778.9 SR7 x64 ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;// Set the current directory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;directory 'c:\data';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;// bluefile folders to load&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;set FolderScope = '20110705R','20110711','20110718','20110725','20110801';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FOR each FilePath in $(FolderScope);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; LOAD $(FilePath) &amp;amp; '\' &amp;amp; filename() as source,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; @1, @2,&amp;nbsp; @3,&amp;nbsp; @4 as @4,&amp;nbsp; @5,&amp;nbsp; @6,&amp;nbsp; @7,&amp;nbsp; @8,&amp;nbsp; @9,&amp;nbsp; @10,&amp;nbsp; @11,&amp;nbsp; @12,&amp;nbsp;&amp;nbsp; @13,&amp;nbsp; @14,&amp;nbsp;&amp;nbsp; @15,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left(@8,4) as year,&amp;nbsp; mid(@8,5,2) as month,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 &amp;amp; @3 &amp;amp; @4 &amp;amp; @5 &amp;amp; @6 &amp;amp; @7 &amp;amp; @8 &amp;amp; @9 &amp;amp; @10 &amp;amp; @11 as unikey,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(@4='0012077225','DIRECT','NORMAL') as channel&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp; FROM [&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;$(FilePath)\*XBWDO603*] &lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;(txt, codepage is 1252, no labels, delimiter is '|', msq);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;NEXT FilePath;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="mcePaste" id="_mcePaste" style="position: absolute; width: 1px; height: 1px; overflow: hidden; top: 0px; left: -10000px;"&gt;﻿&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 15:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-load-of-multiple-files-from-multiple-folders/m-p/250026#M94960</guid>
      <dc:creator />
      <dc:date>2011-08-04T15:51:32Z</dc:date>
    </item>
    <item>
      <title>problem with a load of multiple files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-load-of-multiple-files-from-multiple-folders/m-p/250027#M94961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try wrapping $(Filepath) with single quotes in first line of LOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD '$(FilePath)' &amp;amp; '\' &amp;amp; filename() as source,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;.....&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Aug 2011 15:56:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-load-of-multiple-files-from-multiple-folders/m-p/250027#M94961</guid>
      <dc:creator>disqr_rm</dc:creator>
      <dc:date>2011-08-07T15:56:31Z</dc:date>
    </item>
    <item>
      <title>problem with a load of multiple files from multiple folders</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-a-load-of-multiple-files-from-multiple-folders/m-p/250028#M94962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks Rakesh and apologies for the late reply to your correct answer, this worked !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thnx&lt;/P&gt;&lt;P&gt;Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2012 14:17:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-a-load-of-multiple-files-from-multiple-folders/m-p/250028#M94962</guid>
      <dc:creator />
      <dc:date>2012-01-19T14:17:07Z</dc:date>
    </item>
  </channel>
</rss>

