<?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: For...Next Loop through folder error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/For-Next-Loop-through-folder-error/m-p/108121#M16933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It runs just fine for me and I made no changes. You may have different values in your variables and/or different folder permissions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMHO this is an ideal case to use the QlikView Script Debugger. After each statement, it lets you check all variables vlaues before you use them (e.g. vFolder, file, and especially vPathFileDate) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2018 14:08:28 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2018-10-16T14:08:28Z</dc:date>
    <item>
      <title>For...Next Loop through folder error</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop-through-folder-error/m-p/108117#M16929</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;I'm using the following script to convert a load of CSV files to QVD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each file in FileList('$(vFolder)datafile*.csv')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Daily:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM $(file)&lt;/P&gt;&lt;P&gt;&amp;nbsp; (txt, utf8, embedded labels, delimiter is '|', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Let vPathFileDate = Date(Date#(left(subfield(subfield('$(file)','\', -1), '_', -1), 8), 'YYYYMMDD'), 'YYYY_MM_DD');&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; STORE &lt;SPAN style="font-size: 13.3333px;"&gt;Daily&lt;/SPAN&gt; INTO ..\..\Daily\Daily_$(vPathFileDate).QVD;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; DROP TABLE &lt;SPAN style="font-size: 13.3333px;"&gt;Daily&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Next file;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is running fine until it gets tot the end and I get a&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Script line error: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Next File&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help....?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 10:09:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop-through-folder-error/m-p/108117#M16929</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2018-10-16T10:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: For...Next Loop through folder error</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop-through-folder-error/m-p/108118#M16930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try removing the semicolon after next file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 11:49:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop-through-folder-error/m-p/108118#M16930</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-10-16T11:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: For...Next Loop through folder error</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop-through-folder-error/m-p/108119#M16931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do not think that the semicolon makes the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would rather check the spelling and/or rename the variable to vFile or the like&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 12:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop-through-folder-error/m-p/108119#M16931</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2018-10-16T12:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: For...Next Loop through folder error</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop-through-folder-error/m-p/108120#M16932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; Let vPathFileDate = Date#(Date#(left(subfield(subfield('$(file)','\', -1), '_', -1), 8), 'YYYYMMDD'), 'YYYY_MM_DD'); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 13:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop-through-folder-error/m-p/108120#M16932</guid>
      <dc:creator>nsetty</dc:creator>
      <dc:date>2018-10-16T13:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: For...Next Loop through folder error</title>
      <link>https://community.qlik.com/t5/QlikView/For-Next-Loop-through-folder-error/m-p/108121#M16933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It runs just fine for me and I made no changes. You may have different values in your variables and/or different folder permissions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMHO this is an ideal case to use the QlikView Script Debugger. After each statement, it lets you check all variables vlaues before you use them (e.g. vFolder, file, and especially vPathFileDate) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2018 14:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/For-Next-Loop-through-folder-error/m-p/108121#M16933</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-10-16T14:08:28Z</dc:date>
    </item>
  </channel>
</rss>

