<?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 FileList works differently between Sense and Cloud in Move to Qlik Cloud Analytics</title>
    <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/FileList-works-differently-between-Sense-and-Cloud/m-p/2520108#M2718</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;We're migrating our Qlik Sense apps to our new Qlik Cloud tenant and noticed a different behaviour for the FileList() function in a for each loop : it now lists every file located in a subfolder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example let's suppose this directory :&lt;/P&gt;&lt;P&gt;\DATA\APP1\FILE1.qvd&lt;/P&gt;&lt;P&gt;\DATA\APP1\FILE2.qvd&lt;/P&gt;&lt;P&gt;\DATA\APP1\&lt;FONT face="arial,helvetica,sans-serif"&gt;BACKUP&lt;/FONT&gt;\FILE1.qvd&lt;/P&gt;&lt;P&gt;\DATA\APP1\BACKUP\FILE2.qvd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Qlik Sense, using the command &lt;FONT face="courier new,courier"&gt;FOR EACH File IN FILELIST('lib://DATA\APP1\*.qvd')&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;only the first 2 files were looped through.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In Qlik Cloud, the equivalent command&amp;nbsp;&lt;FONT face="courier new,courier"&gt;FOR EACH File IN FILELIST('lib://DataSpace:DATA\APP1\*.qvd')&lt;/FONT&gt;&amp;nbsp;loops through the first 2 but also the other 2 files located in the BACKUP subfolder.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Is this the intended behaviour ? I couldn't find any mention of it on Qlik Help.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;We've found a solution that would be to add a check on the file name containing "/" =&amp;gt; if it does it means we're on a subfolder. But does anyone know if there's a simpler solution ? Maybe a simple parameter on the FileList function needs to be added ?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks for your help !&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jan 2026 10:45:26 GMT</pubDate>
    <dc:creator>fabio_c</dc:creator>
    <dc:date>2026-01-27T10:45:26Z</dc:date>
    <item>
      <title>FileList works differently between Sense and Cloud</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/FileList-works-differently-between-Sense-and-Cloud/m-p/2520108#M2718</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;We're migrating our Qlik Sense apps to our new Qlik Cloud tenant and noticed a different behaviour for the FileList() function in a for each loop : it now lists every file located in a subfolder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example let's suppose this directory :&lt;/P&gt;&lt;P&gt;\DATA\APP1\FILE1.qvd&lt;/P&gt;&lt;P&gt;\DATA\APP1\FILE2.qvd&lt;/P&gt;&lt;P&gt;\DATA\APP1\&lt;FONT face="arial,helvetica,sans-serif"&gt;BACKUP&lt;/FONT&gt;\FILE1.qvd&lt;/P&gt;&lt;P&gt;\DATA\APP1\BACKUP\FILE2.qvd&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Qlik Sense, using the command &lt;FONT face="courier new,courier"&gt;FOR EACH File IN FILELIST('lib://DATA\APP1\*.qvd')&amp;nbsp;&lt;FONT face="arial,helvetica,sans-serif"&gt;only the first 2 files were looped through.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;In Qlik Cloud, the equivalent command&amp;nbsp;&lt;FONT face="courier new,courier"&gt;FOR EACH File IN FILELIST('lib://DataSpace:DATA\APP1\*.qvd')&lt;/FONT&gt;&amp;nbsp;loops through the first 2 but also the other 2 files located in the BACKUP subfolder.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Is this the intended behaviour ? I couldn't find any mention of it on Qlik Help.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;We've found a solution that would be to add a check on the file name containing "/" =&amp;gt; if it does it means we're on a subfolder. But does anyone know if there's a simpler solution ? Maybe a simple parameter on the FileList function needs to be added ?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Thanks for your help !&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 10:45:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/FileList-works-differently-between-Sense-and-Cloud/m-p/2520108#M2718</guid>
      <dc:creator>fabio_c</dc:creator>
      <dc:date>2026-01-27T10:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: FileList works differently between Sense and Cloud</title>
      <link>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/FileList-works-differently-between-Sense-and-Cloud/m-p/2520646#M2737</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/239581"&gt;@fabio_c&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my opition, the easiest way is to count how many backslashes are in the FileName string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for each File in filelist ('lib:&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;//&lt;/STRONG&gt;&lt;/FONT&gt;Exemplo:DataFiles&lt;FONT color="#FF0000"&gt;/&lt;/FONT&gt;*.*')&lt;BR /&gt;&lt;BR /&gt;LET FileSlash = Len(File) - Len(Replace(File, '/', ''));&lt;BR /&gt;&lt;BR /&gt;if FileSlash &amp;lt;= 3 then&lt;BR /&gt;Dados:&lt;BR /&gt;LOAD&lt;BR /&gt;'$(File)' as Name,&lt;BR /&gt;Round(FileSize( '$(File)' )/1024/1024,2) as SizeMB,&lt;BR /&gt;FileTime( '$(File)' ) as FileTime&lt;BR /&gt;autogenerate 1;&lt;BR /&gt;end if;&lt;BR /&gt;next File&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bye!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 01:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Move-to-Qlik-Cloud-Analytics/FileList-works-differently-between-Sense-and-Cloud/m-p/2520646#M2737</guid>
      <dc:creator>rafaelencinas</dc:creator>
      <dc:date>2025-06-10T01:11:58Z</dc:date>
    </item>
  </channel>
</rss>

