<?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: File import problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322226#M409525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, but thank for the help. I think i will exclude this for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Apr 2017 12:29:22 GMT</pubDate>
    <dc:creator>stevietm</dc:creator>
    <dc:date>2017-04-26T12:29:22Z</dc:date>
    <item>
      <title>File import problem</title>
      <link>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322219#M409518</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 have a bit of a problem with my script where i want to pull only 2016 data for the current month. I have a set of 4 data files that i get daily. Exp DNI_Daily_&lt;SPAN style="font-size: 13.3333px;"&gt;RICA&lt;/SPAN&gt;_YYYYMMDD, ERZ&lt;SPAN style="font-size: 13.3333px;"&gt;_Daily_&lt;SPAN style="font-size: 13.3333px;"&gt;RICA&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;_&lt;/SPAN&gt;YYY-MMDD&lt;/SPAN&gt;, TSPC&lt;SPAN style="font-size: 13.3333px;"&gt;_Daily_&lt;SPAN style="font-size: 13.3333px;"&gt;RICA&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;_&lt;/SPAN&gt;YYYYMMDD&lt;/SPAN&gt; and Tropical&lt;SPAN style="font-size: 13.3333px;"&gt;_Daily_&lt;SPAN style="font-size: 13.3333px;"&gt;RICA&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;_&lt;/SPAN&gt;YYYYMMDD&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;All are txt files. See below script i use to import current month and last year same month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;File i import&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LET vReportMonth = text(Date(Today()-3,'YYYYMM'));&lt;/P&gt;&lt;P&gt;LET vReportMonth2016 = text(Date(Today()-364,'YYYYMM'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;This script is the same for my 2017 import and it runs fine. Also i use this script on the other txt files for 2016 as well and it also runs fine. Its only on this file that i get the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5 as ICCID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as RICAS,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alt(Date(Date#(@7,'YYYY-MM-DD'),'YYYY-MM-DD'),Date(Date#(@7,'YYYY/MM/DD'),'YYYY-MM-DD'))AS DATE_KEY,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alt(Date(Date#(@7,'YYYY-MM-DD'),'YYYY-MM-DD'),Date(Date#(@7,'YYYY/MM/DD'),'YYYY-MM-DD'))AS RicaDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day( alt(Date(Date#(@7,'YYYY-MM-DD'),'YYYY-MM-DD'),Date(Date#(@7,'YYYY/MM/DD'),'YYYY-MM-DD'))) as Day&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\..\..\QVData\DNIRetailDaily\DNI_DAILY_RICA_$(vReportMonth2016)*.txt]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is '|', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Error i get&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;File not found error&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Cannot open file: 'D:\QlikView\QVData\DNIRetailDaily\DNI_DAILY_RICA_201604*.txt'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;System error: Filesystem::FindImpl FindFirst call: Incorrect function: "D:\QlikView\QVData\DNIRetailDaily"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;Concatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;LOAD&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @5 as ICCID, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1 as RICAS,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alt(Date(Date#(@7,'YYYY-MM-DD'),'YYYY-MM-DD'),Date(Date#(@7,'YYYY/MM/DD'),'YYYY-MM-DD'))AS DATE_KEY,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alt(Date(Date#(@7,'YYYY-MM-DD'),'YYYY-MM-DD'),Date(Date#(@7,'YYYY/MM/DD'),'YYYY-MM-DD'))AS RicaDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @9 as Client,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day( alt(Date(Date#(@7,'YYYY-MM-DD'),'YYYY-MM-DD'),Date(Date#(@7,'YYYY/MM/DD'),'YYYY-MM-DD'))) as Day&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;FROM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;[..\..\..\QVData\DNIRetailDaily\DNI_DAILY_RICA_201604*.txt]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;(txt, codepage is 1252, no labels, delimiter is '|', msq)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;STM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 11:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322219#M409518</guid>
      <dc:creator>stevietm</dc:creator>
      <dc:date>2017-04-26T11:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: File import problem</title>
      <link>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322220#M409519</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;if this is Your filename DNI_Daily_&lt;SPAN style="font-size: 13.33px;"&gt;RICA&lt;/SPAN&gt;_YYYY-MM-DD, this &lt;SPAN style="color: #ff0000;"&gt;DNI_DAILY_RICA_201604*.txt wont match.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Maybe keep the format in Your variable:&lt;/P&gt;&lt;P&gt;LET vReportMonth2016 = text(Date(Today()-364,'YYYY-MM'));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 11:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322220#M409519</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-04-26T11:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: File import problem</title>
      <link>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322221#M409520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry all file names are YYYYMMDD with no dash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 11:51:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322221#M409520</guid>
      <dc:creator>stevietm</dc:creator>
      <dc:date>2017-04-26T11:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: File import problem</title>
      <link>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322222#M409521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then I Guess that this filename also is a typo? DNI_&lt;STRONG&gt;Daily&lt;/STRONG&gt;_&lt;SPAN style="font-size: 13.33px;"&gt;RICA&lt;/SPAN&gt;_YYYYMMDD&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;DNI_DAILY_RICA_201604*.txt &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 12:03:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322222#M409521</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-04-26T12:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: File import problem</title>
      <link>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322223#M409522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fixed but still the same problem. I dont understand the error as all 4 files are the same except that the date format in the file will differ, and still the others for 2016 works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 12:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322223#M409522</guid>
      <dc:creator>stevietm</dc:creator>
      <dc:date>2017-04-26T12:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: File import problem</title>
      <link>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322224#M409523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or i am just missing something small and stupid somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the load of one of the other files&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usage &amp;lt;&amp;lt; TROPICAL_DAILY_RICA_20160429 70 950 120 Lines fetched&lt;/P&gt;&lt;P&gt;Usage &amp;lt;&amp;lt; TROPICAL_DAILY_RICA_20160430 70 952 033 Lines fetched&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 12:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322224#M409523</guid>
      <dc:creator>stevietm</dc:creator>
      <dc:date>2017-04-26T12:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: File import problem</title>
      <link>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322225#M409524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[..\..\..\QVData\DNIRetailDaily\DNI_DAILY_RICA_'$(vReportMonth2016)'*.txt]&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is '|', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;add ' around the variable '$(vReportMonth2016)'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 12:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322225#M409524</guid>
      <dc:creator>stabben23</dc:creator>
      <dc:date>2017-04-26T12:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: File import problem</title>
      <link>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322226#M409525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope, but thank for the help. I think i will exclude this for now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Apr 2017 12:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1322226#M409525</guid>
      <dc:creator>stevietm</dc:creator>
      <dc:date>2017-04-26T12:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: File import problem</title>
      <link>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1586524#M443251</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I know this post is a bit old. But&amp;nbsp; I have another option for you to look into - especially if the Date format of the files differ.&lt;/P&gt;&lt;P&gt;What you could do is to load the files in a loop.&lt;/P&gt;&lt;P&gt;Start by opening a loop:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;STRONG&gt;for&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT size="2" color="#0000ff"&gt;Each&lt;/FONT&gt;&lt;FONT size="2"&gt; zFile &lt;/FONT&gt;&lt;FONT size="2" color="#0000ff"&gt;in&lt;/FONT&gt; &lt;FONT size="2" color="#0000ff"&gt;FileList&lt;/FONT&gt;&lt;FONT size="2"&gt;('..\..\..\QVData\DNIRetailDaily\DNI_DAILY_RICA_*.txt') &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Now you have a variable (zFile) that contains the correct filename. Then load the data with the normal script but with: &lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;STRONG&gt;FROM ['$(zFile)']&lt;/STRONG&gt;&amp;nbsp; to use the variable for the filename. The whole path should be included in the variable.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;End the loop with:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff"&gt;&lt;STRONG&gt;next&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt; zFile; &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;This should solve the problems with the format of dates that differs from file to file.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Pieter&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 06:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/File-import-problem/m-p/1586524#M443251</guid>
      <dc:creator>pieterkup</dc:creator>
      <dc:date>2019-05-30T06:41:48Z</dc:date>
    </item>
  </channel>
</rss>

