<?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 Filesize() returns values when NULL is expected in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filesize-returns-values-when-NULL-is-expected/m-p/2120678#M1224587</link>
    <description>&lt;P&gt;I have one application containing a script that checks the filesize of an qvs file.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Filesize('/initlink.qvs')&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;There is no initlink.qvs file in the application folder and I expect the result to be null() (or zero). I do have a initlink.qvs file in another folder ..\..\initlink.qvs, but that should not affect my output.&lt;/P&gt;
&lt;P&gt;When opening and running it using a shared network adress \\servername\folder\subfolder\application\ then the function returns null()&lt;/P&gt;
&lt;P&gt;When opening an running the script using the local drive adress E:\Qlikview\folder\subfolder\application\ then I get the value 5048.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20230921_004340_Gallery.jpg" style="width: 2196px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/116707i90AA441299C2B808/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_20230921_004340_Gallery.jpg" alt="Screenshot_20230921_004340_Gallery.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;I am using the exact same instance of QlikView Desktop installed on a QlikView Server in both my script executions.&lt;/P&gt;
&lt;P&gt;I believe this expression returned null() running from both locations earlier this week, but something has changed and I dont understand why.&lt;/P&gt;
&lt;P&gt;Have you seen this behaviour before? What can be the reason for this behaviour?&amp;nbsp; How can I solve this without making&amp;nbsp; any changes to the script.&lt;/P&gt;
&lt;P&gt;- Vegar&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2023 22:48:59 GMT</pubDate>
    <dc:creator>Vegar</dc:creator>
    <dc:date>2023-09-20T22:48:59Z</dc:date>
    <item>
      <title>Filesize() returns values when NULL is expected</title>
      <link>https://community.qlik.com/t5/QlikView/Filesize-returns-values-when-NULL-is-expected/m-p/2120678#M1224587</link>
      <description>&lt;P&gt;I have one application containing a script that checks the filesize of an qvs file.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Filesize('/initlink.qvs')&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;There is no initlink.qvs file in the application folder and I expect the result to be null() (or zero). I do have a initlink.qvs file in another folder ..\..\initlink.qvs, but that should not affect my output.&lt;/P&gt;
&lt;P&gt;When opening and running it using a shared network adress \\servername\folder\subfolder\application\ then the function returns null()&lt;/P&gt;
&lt;P&gt;When opening an running the script using the local drive adress E:\Qlikview\folder\subfolder\application\ then I get the value 5048.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20230921_004340_Gallery.jpg" style="width: 2196px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/116707i90AA441299C2B808/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_20230921_004340_Gallery.jpg" alt="Screenshot_20230921_004340_Gallery.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;I am using the exact same instance of QlikView Desktop installed on a QlikView Server in both my script executions.&lt;/P&gt;
&lt;P&gt;I believe this expression returned null() running from both locations earlier this week, but something has changed and I dont understand why.&lt;/P&gt;
&lt;P&gt;Have you seen this behaviour before? What can be the reason for this behaviour?&amp;nbsp; How can I solve this without making&amp;nbsp; any changes to the script.&lt;/P&gt;
&lt;P&gt;- Vegar&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 22:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filesize-returns-values-when-NULL-is-expected/m-p/2120678#M1224587</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2023-09-20T22:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filesize() returns values when NULL is expected</title>
      <link>https://community.qlik.com/t5/QlikView/Filesize-returns-values-when-NULL-is-expected/m-p/2120873#M1224593</link>
      <description>&lt;P&gt;Issue solved. I'll explain for future reference.&lt;/P&gt;
&lt;P&gt;I've missunderstood how Qlik interpreted the path that I used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;Filesize('/InitLink.qvs')&lt;/FONT&gt; will point to the root of the drive that I am on. So when calling this function from the application &lt;SPAN&gt;&lt;FONT face="courier new,courier" size="2"&gt;E:\Qlikview\folder\subfolder\application\MyApp.qvw&lt;/FONT&gt;&amp;nbsp;I will not be taking the filesize of &lt;FONT face="courier new,courier" size="2"&gt;E:\Qlikview\folder\subfolder\application\InitLink.qvs&lt;/FONT&gt;, but the filesize of &lt;FONT face="courier new,courier" size="2"&gt;"E:\InitLink.qvd"&lt;/FONT&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Similar using a network address. Running the script from&amp;nbsp;&amp;nbsp;&lt;FONT face="courier new,courier" size="2"&gt;\\servername\folder\subfolder\application\MyApp.qvw&amp;nbsp;&lt;/FONT&gt;the &lt;FONT face="courier new,courier" size="2"&gt;Filesize('/InitLink.qvs')&lt;/FONT&gt; will look for the size of&amp;nbsp;&lt;FONT face="courier new,courier" size="2"&gt;\\servername\InitLink.qvs&lt;/FONT&gt;&amp;nbsp;and not&amp;nbsp;&lt;FONT face="courier new,courier" size="2"&gt;\\servername\folder\subfolder\application\InitLink.qvs.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We had accidentally put a InitLink.qvs file on E:/ which initiated&amp;nbsp;this confusion.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2023 09:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filesize-returns-values-when-NULL-is-expected/m-p/2120873#M1224593</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2023-09-21T09:39:00Z</dc:date>
    </item>
  </channel>
</rss>

