<?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 Load Script naming resident tables with FilePath in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Script-naming-resident-tables-with-FilePath/m-p/1448997#M818418</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;I'm using this load script to loop through a folder to load QVDs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each File in FileList ('..\..\QVD\*.qvd')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vTable):&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(File)&lt;/P&gt;&lt;P&gt;(qvd);&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;But, when I look at the loaded tables each table has the full filepath as its name.&amp;nbsp; Eg , Sales.QVD has been loaded as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'D:\Dev\Qlik\Apps\SalesForce\QVD\Sales'&amp;nbsp; where as I need the table loaded as 'Sales'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 5 more QVDs that I need to load from the QVD folder and the same is happening to each QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&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;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>prees959</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Load Script naming resident tables with FilePath</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-naming-resident-tables-with-FilePath/m-p/1448997#M818418</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;I'm using this load script to loop through a folder to load QVDs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each File in FileList ('..\..\QVD\*.qvd')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(vTable):&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(File)&lt;/P&gt;&lt;P&gt;(qvd);&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;But, when I look at the loaded tables each table has the full filepath as its name.&amp;nbsp; Eg , Sales.QVD has been loaded as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'D:\Dev\Qlik\Apps\SalesForce\QVD\Sales'&amp;nbsp; where as I need the table loaded as 'Sales'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 5 more QVDs that I need to load from the QVD folder and the same is happening to each QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help?&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;Phil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-naming-resident-tables-with-FilePath/m-p/1448997#M818418</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script naming resident tables with FilePath</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-naming-resident-tables-with-FilePath/m-p/1448998#M818420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looked that your variable vTable isn't valid and therefore qlik autogenerates the filename from the path. You could try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each File in FileList ('..\..\QVD\*.qvd')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;let vTable = subfield(subfield('$(File)', '\', -1), '.', 1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[$(vTable)]&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(File)&lt;/P&gt;&lt;P&gt;(qvd);&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;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 08:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-naming-resident-tables-with-FilePath/m-p/1448998#M818420</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-08-23T08:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script naming resident tables with FilePath</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-naming-resident-tables-with-FilePath/m-p/1448999#M818422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect - thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 10:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-naming-resident-tables-with-FilePath/m-p/1448999#M818422</guid>
      <dc:creator>prees959</dc:creator>
      <dc:date>2017-08-23T10:47:17Z</dc:date>
    </item>
  </channel>
</rss>

