<?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 Qlik Sense Saas - Need to perform a folder scan (excel files) in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Saas-Need-to-perform-a-folder-scan-excel-files/m-p/1888524#M73211</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have been working in Qlikview running a loop that scan all my excel files inside a folder and add them to a list for further use... However, this code does not work in my Qlik Sense Saas cloud solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I moved all my files to a Onedrive directory, created a connection, but the code fails.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="espen31415_0-1643876975783.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71509i20F93BE694AA39E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="espen31415_0-1643876975783.png" alt="espen31415_0-1643876975783.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my script:&lt;/P&gt;
&lt;P&gt;Set vConcatenate = ;&lt;/P&gt;
&lt;P&gt;FinanceplanList:&lt;BR /&gt;LOAD&lt;BR /&gt;'' As %FileStamp,&lt;BR /&gt;'' AS FSource,&lt;BR /&gt;'' As FName,&lt;BR /&gt;'' As FTime,&lt;BR /&gt;'' As _Processed&lt;BR /&gt;AUTOGENERATE 0;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;sub ScanFolder (Root)&lt;/P&gt;
&lt;P&gt;for each FileExtension in 'xls*'&lt;/P&gt;
&lt;P&gt;for each FoundFile in filelist( Root &amp;amp; '/*.' &amp;amp; FileExtension)&lt;BR /&gt;FileName = Mid(FoundFile, Len(Root)+2, Len(FoundFile)-Len(Root)-6) //trying to pick the filename without path and extension&lt;BR /&gt;&lt;BR /&gt;If WildMatch(FileName, '*5 yrs financeplan new version*') Then //Searching for financeplan&lt;/P&gt;
&lt;P&gt;FinanceplanList:&lt;BR /&gt;LOAD &lt;BR /&gt;'$(FoundFile)' as FSource,&lt;BR /&gt;FileName() &amp;amp; ' - ' &amp;amp; Timestamp(FileTime(), 'dd.MM.yyyy hh:mm:ss') As %FileStamp, &lt;BR /&gt;FileName() As FName,&lt;BR /&gt;FileTime() As FTime,&lt;BR /&gt;'0' As _Processed&lt;BR /&gt;From '$(FoundFile)';&lt;BR /&gt;//AUTOGENERATE 1;&lt;BR /&gt;Set vConcatenate = Concatenate;&lt;BR /&gt;End If&lt;BR /&gt;next FoundFile&lt;BR /&gt;next FileExtension&lt;/P&gt;
&lt;P&gt;for each SubDirectory in dirlist( Root &amp;amp; '/*' )&lt;BR /&gt;call ScanFolder(SubDirectory)&lt;BR /&gt;next SubDirectory&lt;BR /&gt;end sub&lt;/P&gt;
&lt;P&gt;Call ScanFolder('$(vFinanceFolder)');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Store FinanceplanList Into '$(vL.ExtractPath)FinanceplanList.qvd' &lt;BR /&gt;(qvd)&lt;BR /&gt;;&lt;BR /&gt;Drop tables FinanceplanList&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;I would be happy if anyone could guide me in the right direction here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards E&lt;/P&gt;</description>
    <pubDate>Thu, 03 Feb 2022 08:32:48 GMT</pubDate>
    <dc:creator>espen31415</dc:creator>
    <dc:date>2022-02-03T08:32:48Z</dc:date>
    <item>
      <title>Qlik Sense Saas - Need to perform a folder scan (excel files)</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Saas-Need-to-perform-a-folder-scan-excel-files/m-p/1888524#M73211</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have been working in Qlikview running a loop that scan all my excel files inside a folder and add them to a list for further use... However, this code does not work in my Qlik Sense Saas cloud solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I moved all my files to a Onedrive directory, created a connection, but the code fails.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="espen31415_0-1643876975783.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/71509i20F93BE694AA39E4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="espen31415_0-1643876975783.png" alt="espen31415_0-1643876975783.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is my script:&lt;/P&gt;
&lt;P&gt;Set vConcatenate = ;&lt;/P&gt;
&lt;P&gt;FinanceplanList:&lt;BR /&gt;LOAD&lt;BR /&gt;'' As %FileStamp,&lt;BR /&gt;'' AS FSource,&lt;BR /&gt;'' As FName,&lt;BR /&gt;'' As FTime,&lt;BR /&gt;'' As _Processed&lt;BR /&gt;AUTOGENERATE 0;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;sub ScanFolder (Root)&lt;/P&gt;
&lt;P&gt;for each FileExtension in 'xls*'&lt;/P&gt;
&lt;P&gt;for each FoundFile in filelist( Root &amp;amp; '/*.' &amp;amp; FileExtension)&lt;BR /&gt;FileName = Mid(FoundFile, Len(Root)+2, Len(FoundFile)-Len(Root)-6) //trying to pick the filename without path and extension&lt;BR /&gt;&lt;BR /&gt;If WildMatch(FileName, '*5 yrs financeplan new version*') Then //Searching for financeplan&lt;/P&gt;
&lt;P&gt;FinanceplanList:&lt;BR /&gt;LOAD &lt;BR /&gt;'$(FoundFile)' as FSource,&lt;BR /&gt;FileName() &amp;amp; ' - ' &amp;amp; Timestamp(FileTime(), 'dd.MM.yyyy hh:mm:ss') As %FileStamp, &lt;BR /&gt;FileName() As FName,&lt;BR /&gt;FileTime() As FTime,&lt;BR /&gt;'0' As _Processed&lt;BR /&gt;From '$(FoundFile)';&lt;BR /&gt;//AUTOGENERATE 1;&lt;BR /&gt;Set vConcatenate = Concatenate;&lt;BR /&gt;End If&lt;BR /&gt;next FoundFile&lt;BR /&gt;next FileExtension&lt;/P&gt;
&lt;P&gt;for each SubDirectory in dirlist( Root &amp;amp; '/*' )&lt;BR /&gt;call ScanFolder(SubDirectory)&lt;BR /&gt;next SubDirectory&lt;BR /&gt;end sub&lt;/P&gt;
&lt;P&gt;Call ScanFolder('$(vFinanceFolder)');&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Store FinanceplanList Into '$(vL.ExtractPath)FinanceplanList.qvd' &lt;BR /&gt;(qvd)&lt;BR /&gt;;&lt;BR /&gt;Drop tables FinanceplanList&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;I would be happy if anyone could guide me in the right direction here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards E&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 08:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Saas-Need-to-perform-a-folder-scan-excel-files/m-p/1888524#M73211</guid>
      <dc:creator>espen31415</dc:creator>
      <dc:date>2022-02-03T08:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Qlik Sense Saas - Need to perform a folder scan (excel files)</title>
      <link>https://community.qlik.com/t5/App-Development/Qlik-Sense-Saas-Need-to-perform-a-folder-scan-excel-files/m-p/1897224#M74065</link>
      <description>&lt;P&gt;Hi there espen31415,&lt;/P&gt;
&lt;P&gt;Maybe this blog post can help you solve your issues:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/Looping-through-cloud-based-file-data-using-a-metadata-connector/ba-p/1796499" target="_blank"&gt;Looping through cloud-based file data using a meta... - Qlik Community - 1796499&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please take into account that you can't save files in OneDrive from Qlik Sense:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/Web_Storage_Provider_Connectors_help/Content/Connectors_StorageProvider/Storage%20provider%20connectors/OneDrive-storage-provider-connector.htm" target="_blank"&gt;OneDrive ‒ Qlik Connectors&lt;/A&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_b954cb1b68cddcSebb_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;H2 id="anchor-5" tabindex="-1"&gt;Limitations and known issues&lt;/H2&gt;
&lt;P&gt;When authoring load scripts for use with the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN data-mc-conditions="Targets.NotToTranslate"&gt;OneDrive&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Web Storage Provider Connector, there are specific limitations to be aware of.&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN data-mc-conditions="Targets.NotToTranslate"&gt;STORE&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;command is not supported (due to an API limitation around total file size).&lt;/LI&gt;
&lt;LI&gt;You cannot use a wildcard or masking syntax to only return files matching a specific pattern.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Sebb&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 15:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Qlik-Sense-Saas-Need-to-perform-a-folder-scan-excel-files/m-p/1897224#M74065</guid>
      <dc:creator>SBDataspark</dc:creator>
      <dc:date>2022-02-24T15:34:21Z</dc:date>
    </item>
  </channel>
</rss>

