<?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: FileName() Function Limitations? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608832#M683412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIR, these functions don't take a filename as argument, but will use the source file of the table load (not existing in your case). Use string functions on the variable like subfield or left/right etc. instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2014 23:45:14 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2014-02-19T23:45:14Z</dc:date>
    <item>
      <title>FileName() Function Limitations?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608824#M683404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try running the following LOAD in Qlikview:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Images:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;FileBaseName() as BaseName,&lt;/P&gt;&lt;P&gt;FileName() as ImageFile,&lt;/P&gt;&lt;P&gt;FileExtension() as Extension &lt;/P&gt;&lt;P&gt;From D:\QlikView\Images\*;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Against this folder:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-02-19_1055.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53485_2014-02-19_1055.png" style="width: 620px; height: 204px;" /&gt;&lt;/P&gt;&lt;P&gt;and i get the following result:&amp;nbsp; SO my Question is: Can filename function not read anything besides .jpg adn .xls files? Why is it missing so many files?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-02-19_1056.png" class="jive-image" height="262" src="https://community.qlik.com/legacyfs/online/53507_2014-02-19_1056.png" style="width: 616.7303370786517px; height: 262px;" width="617" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 18:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608824#M683404</guid>
      <dc:creator />
      <dc:date>2014-02-19T18:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: FileName() Function Limitations?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608825#M683405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the LOAD statement itself is to load data files or image files (bundle).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 18:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608825#M683405</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-02-19T18:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: FileName() Function Limitations?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608826#M683406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can't reproduce your issue, using your code I get a lot of file extensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;air&lt;/P&gt;&lt;P&gt;cmd&lt;/P&gt;&lt;P&gt;csv&l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R EACH file in FILELIST instead of the wildcard search in the FROM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 18:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608826#M683406</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-19T18:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: FileName() Function Limitations?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608827#M683407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially I am trying to build a template where you could drop image files and they will display by looking up certain named files and place them in the right place.&amp;nbsp; Then I call the image in a text object like '$(vLogoFile)'. Right now it works for any image as long as it is a .jpg, but the pull doesn't recognize .png or .gif files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So i didnt think i need to bundle the actual images just look up and reference the names and paths, but do you think bundling would give better results?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Images:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;FileBaseName() as BaseName,&lt;/P&gt;&lt;P&gt;FileName() as ImageFile,&lt;/P&gt;&lt;P&gt;FileExtension() as Extension &lt;/P&gt;&lt;P&gt;From D:\QlikView\Images\*;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vLogoFile =&amp;nbsp; lookup('ImageFile', 'BaseName','TitleBarImage');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 20:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608827#M683407</guid>
      <dc:creator />
      <dc:date>2014-02-19T20:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: FileName() Function Limitations?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608828#M683408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Strange that you couldnt replicate but in noticed the only image type extension coming up in your list is jpg, JPEG, and jpeg.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;No png, no gif, no bitmap etc, maybe they are not supported?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try the FOR EACH in FILELIST and see if that makes it any better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 20:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608828#M683408</guid>
      <dc:creator />
      <dc:date>2014-02-19T20:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: FileName() Function Limitations?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608829#M683409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would use bundle as a last load instead. Then you can move or deploy the QVW with no disconnected image.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 20:55:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608829#M683409</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2014-02-19T20:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: FileName() Function Limitations?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608830#M683410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How may rows did you get? Wen I try your code against a folder with 22 files, I get all extensions -- but 36K rows. The default format spec is "(txt)" so each file may generate multiple rows whilst the LOAD is searching for newline chars. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case of the missing files, I'll bet something that looked like an EOF was encountered before any "row" was read. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any case, your hunch is right. This is not a valid technique to collect filenames from a directory. For that, use FOR EACH IN FILELIST() as you suggested. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 22:36:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608830#M683410</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-19T22:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: FileName() Function Limitations?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608831#M683411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea why i would get not get results for all the functions ( I think they are valid QV functions):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FOR Each File in filelist ('D:\QlikView\Images\*')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'$(File)' as Name, &lt;/P&gt;&lt;P&gt;FileSize( '$(File)' ) as Size, &lt;/P&gt;&lt;P&gt;FileTime( '$(File)' ) as FileTime,&lt;/P&gt;&lt;P&gt;FileBaseName( '$(File)' ) as BaseName,&lt;/P&gt;&lt;P&gt;FileName( '$(File)' ) as ImageFile,&lt;/P&gt;&lt;P&gt;FileExtension( '$(File)' ) as Extension &lt;/P&gt;&lt;P&gt;autogenerate 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT File&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Returns:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2014-02-19_1055.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/53503_2014-02-19_1055.png" style="width: 620px; height: 320px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 23:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608831#M683411</guid>
      <dc:creator />
      <dc:date>2014-02-19T23:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: FileName() Function Limitations?</title>
      <link>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608832#M683412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AFAIR, these functions don't take a filename as argument, but will use the source file of the table load (not existing in your case). Use string functions on the variable like subfield or left/right etc. instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 23:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FileName-Function-Limitations/m-p/608832#M683412</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-02-19T23:45:14Z</dc:date>
    </item>
  </channel>
</rss>

