<?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: Test if file exists for files on FTP in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831679#M655683</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I understand that must make how &lt;STRONG style="color: #8b8b8b; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Yuri Nicolett &lt;/STRONG&gt;&lt;SPAN style="color: #8b8b8b; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;said. &lt;SPAN style="font-size: 13.3333330154419px;"&gt;After, develop check file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 18:33:52 GMT</pubDate>
    <dc:creator>jonas_rezende</dc:creator>
    <dc:date>2015-06-16T18:33:52Z</dc:date>
    <item>
      <title>Test if file exists for files on FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831670#M655672</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;The files I want are on FTP, so I can't use asterisk to load them. The file name rule is Logs_YYYY_MM_DD. I used date as variable and loop through to get files in the past 7 days, the problem is I am not able to check if a file exists before load it. I tried filesize but that wouldn't work for ftp files, any suggestions please? Thanks! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 13:51:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831670#M655672</guid>
      <dc:creator />
      <dc:date>2015-06-16T13:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Test if file exists for files on FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831671#M655673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it's easier to copy all files into a local folder and load from them. Have also a look here: &lt;A href="https://community.qlik.com/message/455356"&gt;Re: For Each File in Filelist - FTP load is not working?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 13:58:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831671#M655673</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2015-06-16T13:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: Test if file exists for files on FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831672#M655674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you share the script how you reading the files , that will be helpful to answer your question&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 13:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831672#M655674</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-06-16T13:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Test if file exists for files on FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831673#M655675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry that's not an option&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831673#M655675</guid>
      <dc:creator />
      <dc:date>2015-06-16T14:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Test if file exists for files on FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831674#M655676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend to use something else than the load scripts own FTP transfer. You can use built in Windows features like ftp.exe - the command line ftp client that is part of Windows. You can use Powershell which is part of Windows too and via the .NET Framework you can do FTP easily. There are very good open source solutions too like WinScp, Wget and CURL which are free and well documented. With all these you can script your FTP reliably and get remote directory listings too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you are in a hurry and needs only a one-off solution you could stick to QlikView Load Script FTP - but I abandoned it myself for lack of flexibility, reliability and more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831674#M655676</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2015-06-16T14:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Test if file exists for files on FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831675#M655678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let vNumberOfDays = 7;&amp;nbsp; &lt;/P&gt;&lt;P&gt;For vI = 1 to $(vNumberOfDays)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; LET vFileDate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;=date(today()-vI, 'MMDDYYYY');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; LET vFileName='[$(vPath)/logs_$(vFileDate).csv]';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp; ==&amp;gt; Want to check existence here &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Log_$(vFileDate):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM $(vFileName)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; STORE Log_$(vFileDate) INTO $(vQVD)/Log_$(vFileDate).qvd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DROP TABLE Log_$(vFileDate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next vI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831675#M655678</guid>
      <dc:creator />
      <dc:date>2015-06-16T14:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Test if file exists for files on FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831676#M655679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a script to download all files to local directory then create a structure to find all files in this directory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:13:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831676#M655679</guid>
      <dc:creator>nicolett_yuri</dc:creator>
      <dc:date>2015-06-16T14:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: Test if file exists for files on FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831677#M655680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jessica.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your wish is check the existence of files, will could make so before any action:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SWITCH IsNull(filetime('$(Path)\$(v_file).txt'))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; CASE -1 //Not Exists&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="line-height: 1.5em; font-size: 10pt;"&gt;&amp;nbsp; [Insert code here!]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; CASE 0 // Exists&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; [Insert code here!]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; DEFAULT //Define messenge or variable.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; END Switch;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 14:50:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831677#M655680</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2015-06-16T14:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Test if file exists for files on FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831678#M655682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but FileTime doesn't work for FTP files when I tried...any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 15:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831678#M655682</guid>
      <dc:creator />
      <dc:date>2015-06-16T15:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Test if file exists for files on FTP</title>
      <link>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831679#M655683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Hi.&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I understand that must make how &lt;STRONG style="color: #8b8b8b; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Yuri Nicolett &lt;/STRONG&gt;&lt;SPAN style="color: #8b8b8b; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;said. &lt;SPAN style="font-size: 13.3333330154419px;"&gt;After, develop check file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 18:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Test-if-file-exists-for-files-on-FTP/m-p/831679#M655683</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2015-06-16T18:33:52Z</dc:date>
    </item>
  </channel>
</rss>

