<?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: Pulling a data from files in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pulling-a-data-from-files/m-p/1766358#M59280</link>
    <description>&lt;P&gt;You need to use a delta or incremental reload here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the next time you run the script add a&amp;nbsp; line of code to store the FileDetails table in a qvd after the loop:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Set Path='E:\Test\File_*.qvd';&lt;/P&gt;&lt;P&gt;FOR Each File in filelist((Path))&lt;/P&gt;&lt;P&gt;FileDetails:&lt;BR /&gt;Load FileTime('$(File)') as FileTime,&lt;BR /&gt;'$(File)' as PathName&lt;BR /&gt;AutoGenerate 1;&lt;BR /&gt;Next File;&lt;/P&gt;&lt;P&gt;Store FileDetails into ['E:\Test\FD.qvd'] (qvd);"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then amend the code so you read the qvd in before the loop and then in the loop do a Concatenate Load if a certain condition is met, such as the filetime being greater or equal to today and then at the end do not forget to leave in the new line of code to store the table to the qvd file:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Set Path='E:\Test\DM_*.qvd';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FileDetails:&lt;BR /&gt;Load&lt;BR /&gt;*&lt;BR /&gt;From ['E:\Test\FD.qvd'] (qvd);&lt;/P&gt;&lt;P&gt;FOR Each File in filelist((Path))&lt;/P&gt;&lt;P&gt;If NUM(FILETIME('$(File)')) &amp;gt; Num(Today()) Then&lt;/P&gt;&lt;P&gt;Concatenate(FileDetails)&lt;BR /&gt;Load FileTime('$(File)') as FileTime,&lt;BR /&gt;'$(File)' as PathName&lt;BR /&gt;AutoGenerate 1;&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;Next File;&lt;/P&gt;&lt;P&gt;Store FileDetails into ['E:\Test\FD.qvd'] (qvd);&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Let me know if this solves your problem.&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2020 15:48:22 GMT</pubDate>
    <dc:creator>paulselousyoriz</dc:creator>
    <dc:date>2020-12-04T15:48:22Z</dc:date>
    <item>
      <title>Pulling a data from files</title>
      <link>https://community.qlik.com/t5/App-Development/Pulling-a-data-from-files/m-p/1766350#M59278</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am using below script for pulling the data from particular path which is having excel files.T he excel files count are increasing day by day and below script is taking more and more time to get just the file details.&lt;/P&gt;&lt;P&gt;FOR Each File in filelist((Path))&lt;/P&gt;&lt;P&gt;FileDetails:&lt;BR /&gt;Load FileTime('$(File)') as FileTime,&lt;BR /&gt;'$(File)' as PathName&lt;BR /&gt;AutoGenerate 1;&lt;BR /&gt;Next File;&lt;/P&gt;&lt;P&gt;is there any alternate way to get all the data of excel files.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pulling-a-data-from-files/m-p/1766350#M59278</guid>
      <dc:creator>anagha9489</dc:creator>
      <dc:date>2024-11-16T01:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling a data from files</title>
      <link>https://community.qlik.com/t5/App-Development/Pulling-a-data-from-files/m-p/1766358#M59280</link>
      <description>&lt;P&gt;You need to use a delta or incremental reload here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the next time you run the script add a&amp;nbsp; line of code to store the FileDetails table in a qvd after the loop:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Set Path='E:\Test\File_*.qvd';&lt;/P&gt;&lt;P&gt;FOR Each File in filelist((Path))&lt;/P&gt;&lt;P&gt;FileDetails:&lt;BR /&gt;Load FileTime('$(File)') as FileTime,&lt;BR /&gt;'$(File)' as PathName&lt;BR /&gt;AutoGenerate 1;&lt;BR /&gt;Next File;&lt;/P&gt;&lt;P&gt;Store FileDetails into ['E:\Test\FD.qvd'] (qvd);"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then amend the code so you read the qvd in before the loop and then in the loop do a Concatenate Load if a certain condition is met, such as the filetime being greater or equal to today and then at the end do not forget to leave in the new line of code to store the table to the qvd file:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Set Path='E:\Test\DM_*.qvd';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;FileDetails:&lt;BR /&gt;Load&lt;BR /&gt;*&lt;BR /&gt;From ['E:\Test\FD.qvd'] (qvd);&lt;/P&gt;&lt;P&gt;FOR Each File in filelist((Path))&lt;/P&gt;&lt;P&gt;If NUM(FILETIME('$(File)')) &amp;gt; Num(Today()) Then&lt;/P&gt;&lt;P&gt;Concatenate(FileDetails)&lt;BR /&gt;Load FileTime('$(File)') as FileTime,&lt;BR /&gt;'$(File)' as PathName&lt;BR /&gt;AutoGenerate 1;&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;Next File;&lt;/P&gt;&lt;P&gt;Store FileDetails into ['E:\Test\FD.qvd'] (qvd);&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;Let me know if this solves your problem.&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 15:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pulling-a-data-from-files/m-p/1766358#M59280</guid>
      <dc:creator>paulselousyoriz</dc:creator>
      <dc:date>2020-12-04T15:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling a data from files</title>
      <link>https://community.qlik.com/t5/App-Development/Pulling-a-data-from-files/m-p/1769122#M59483</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;This is same what I am doing in the incremental script .But file functions like&amp;nbsp;&lt;SPAN&gt;FileTime('$(File)')&amp;nbsp; is taking time to get the file details. Is there any other way or any command by which i will get full list of files and its details like last modified time.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2020 02:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pulling-a-data-from-files/m-p/1769122#M59483</guid>
      <dc:creator>anagha9489</dc:creator>
      <dc:date>2020-12-17T02:47:41Z</dc:date>
    </item>
  </channel>
</rss>

