<?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: looping files using Variables and QVS in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/looping-files-using-Variables-and-QVS/m-p/557466#M693625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for identifying the difference in folder name. I have rectified it in the QVS, but I am still facing the same issue. "Execution failed". i guess its not getting inside the loop itself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your reply and time. really appriciate!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Jul 2013 06:29:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-07-10T06:29:49Z</dc:date>
    <item>
      <title>looping files using Variables and QVS</title>
      <link>https://community.qlik.com/t5/QlikView/looping-files-using-Variables-and-QVS/m-p/557464#M693623</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 am curretnly facing an issue whicle looping through multiple excel file using variable for Path, and the variables are defined in a QVS file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i use &lt;STRONG&gt;Code 1&lt;/STRONG&gt; and &lt;STRONG&gt;Code in QVS file&lt;/STRONG&gt; - its skipping the loop and shows "Execution failed". The connection through QVS connects fine, but its not getting into the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="xml" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13733844172926260" jivemacro_uid="_13733844172926260"&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13733844277737783" jivemacro_uid="_13733844277737783"&gt;&lt;P&gt;&lt;STRONG&gt;CODE 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;$(Include=..\..\..\Include\EMEA\EMEA_Q2C_MDF\Connection.qvs); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; FOR each File in filelist ('$(vPathActivity)')&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;CrossTable(FundName, FundData, 97)&lt;/P&gt;&lt;P&gt;Activity:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(File)] (ooxml, embedded labels);&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;STRONG&gt;Code in QVS file&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;set errorMode=0;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT32 TO [Provider=ADsDSOObject;Encrypt Password=False;Data Source=\\16.16.224.41\\Q2C_MDF;Mode=Read;Bind Flags=0;ADSI Flag=-2147483648];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vPathFinance = '\\16.16.224.41\QV_InputFiles\Q2C_MDF\Finance\Finance.xlsx';&lt;/P&gt;&lt;P&gt;let vPathActivity = '\\16.16.224.41\QV_InputFiles\Q2C_MDF\Activity\*.xlsx';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ScriptErrorCount &amp;gt;0 then&lt;/P&gt;&lt;P&gt;let ScriptErrorCount =0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; OLEDB CONNECT32 TO [Provider=ADsDSOObject;Encrypt Password=False;Data Source=\\16.17.84.41\\Q2C_MDF;Mode=Read;Bind Flags=0;ADSI Flag=-2147483648];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; let vPathFinance = '\\16.17.84.41\QV_InputFiles\Q2C_MDF\Finance\Finance.xlsx';&lt;/P&gt;&lt;P&gt;let vPathActivity = '\\16.17.84.41\QV_InputFiles\Q2C_MDF\Activity\*.xlsx';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; end if&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If i use this code using direct path it works fine&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CODE 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR each File in filelist ('\\16.16.224.41\QV_Input_Files\Q2C_MDF\Activity\*.xlsx')&lt;/P&gt;&lt;P&gt;CrossTable(FundName, FundData, 97)&lt;/P&gt;&lt;P&gt;Activity:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM [$(File)] (ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is very much appriciated.!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subhashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 15:44:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looping-files-using-Variables-and-QVS/m-p/557464#M693623</guid>
      <dc:creator />
      <dc:date>2013-07-09T15:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: looping files using Variables and QVS</title>
      <link>https://community.qlik.com/t5/QlikView/looping-files-using-Variables-and-QVS/m-p/557465#M693624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're using two different paths:&lt;/P&gt;&lt;P&gt;\\16.16.224.41\QV_&lt;STRONG style="color: #ff0000;"&gt;InputFiles&lt;/STRONG&gt;\Q2C_MDF\Activity\*.xlsx&lt;/P&gt;&lt;P&gt;\\16.16.224.41\QV_&lt;STRONG style="color: #0000ff;"&gt;Input_Files&lt;/STRONG&gt;\Q2C_MDF\Activity\*.xlsx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jul 2013 16:35:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looping-files-using-Variables-and-QVS/m-p/557465#M693624</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-09T16:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: looping files using Variables and QVS</title>
      <link>https://community.qlik.com/t5/QlikView/looping-files-using-Variables-and-QVS/m-p/557466#M693625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for identifying the difference in folder name. I have rectified it in the QVS, but I am still facing the same issue. "Execution failed". i guess its not getting inside the loop itself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your reply and time. really appriciate!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jul 2013 06:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/looping-files-using-Variables-and-QVS/m-p/557466#M693625</guid>
      <dc:creator />
      <dc:date>2013-07-10T06:29:49Z</dc:date>
    </item>
  </channel>
</rss>

