<?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: Log file question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020399#M924891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried the TRACE command.&amp;nbsp; This won't help.&amp;nbsp; It actually wrote my IF message and the ELSE message inside the&lt;/P&gt;&lt;P&gt;IF END IF in the log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2016 16:00:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-12T16:00:20Z</dc:date>
    <item>
      <title>Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020395#M924881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question about the log file.&amp;nbsp; Here are 3 lines I extracted from my log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4/12/2016 5:30:01 AM: 0048&amp;nbsp; IF (NOT isNull(qvdCreateTime('..\DEV'))) THEN&lt;/P&gt;&lt;P&gt;4/12/2016 5:30:01 AM: 0051&amp;nbsp;&amp;nbsp;&amp;nbsp; ODBC CONNECT*XUserId*XPassword*&lt;/P&gt;&lt;P&gt;4/12/2016 5:30:01 AM: 0052&amp;nbsp; END IF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my app, I have this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vDefaultEnv = '..\DEV';&lt;/P&gt;&lt;P&gt;IF (NOT isNull(qvdCreateTime('$(vDefaultEnv)'))) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp; $(Include=..\oracle1.qvs);&lt;/P&gt;&lt;P&gt;ELSE &lt;/P&gt;&lt;P&gt;&amp;nbsp; $(Include=..\oracle12.qvs);&lt;/P&gt;&lt;P&gt;END IF &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just by looking at the log, it almost seems like it executed the IF and not the ELSE.&amp;nbsp; But based on the result I got, I think executed&lt;/P&gt;&lt;P&gt;the ELSE.&amp;nbsp; Can someone explain to me what the log means as seen?&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, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020395#M924881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020396#M924883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I think it executed the Else statement since the line number is 51 (3 below the if statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 15:15:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020396#M924883</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-12T15:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020397#M924886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't even notice there was actually a line number.&amp;nbsp; So I just scripted out the app.&amp;nbsp; The 051 matches the ELSE.&lt;/P&gt;&lt;P&gt;I guess the way the log was presented by QV is a little misleading visually.&amp;nbsp; At first glance, I thought it ran the IF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 15:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020397#M924886</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-12T15:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020398#M924888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would agree that this looks confusing.&lt;/P&gt;&lt;P&gt;At least I can't see a reason why the END IF line is logged, and the ELSE line isn't.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a side note, if you want to debug these kind of issues, you could also add a TRACE statement to see which path is getting executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SET vDefaultEnv = '..\DEV';&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;IF (NOT isNull(qvdCreateTime('$(vDefaultEnv)'))) THEN&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; $(Include=..\oracle1.qvs);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; TRACE THEN path is executed;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ELSE&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; $(Include=..\oracle12.qvs);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; &lt;STRONG&gt;TRACE ELSE path is executed;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;END IF&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 15:48:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020398#M924888</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-12T15:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020399#M924891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tried the TRACE command.&amp;nbsp; This won't help.&amp;nbsp; It actually wrote my IF message and the ELSE message inside the&lt;/P&gt;&lt;P&gt;IF END IF in the log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 16:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020399#M924891</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-12T16:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020400#M924894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if I understood your last post, could you post your log snippet?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 16:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020400#M924894</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-12T16:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020401#M924897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got the trace to work.&amp;nbsp; It's good to know we can send debug messages out to the log.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020401#M924897</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-12T17:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020402#M924900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you got what you are looking for (or at least got you close to what you wanted), please close the thread by marking correct and helpful responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:25:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020402#M924900</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-12T17:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020403#M924903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems to be your variable &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;vDefaultEnv &lt;/SPAN&gt; don't have QVD Name &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020403#M924903</guid>
      <dc:creator />
      <dc:date>2016-04-12T17:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020404#M924906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using qvdCreateTime() to check for a file not the QVD.&amp;nbsp; I don't think QV has a function to check if a file&lt;/P&gt;&lt;P&gt;exists.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:43:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020404#M924906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-12T17:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020405#M924908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QVDCreateTime() is checking for the XML header entry of a QVD file, so probably won't work with other files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use FileTime() instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dathu.qv probably meant to say that your file path used in QVDCreateTime() is not directing to any file, just to a folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:47:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020405#M924908</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-12T17:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Log file question</title>
      <link>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020406#M924911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DEV is a file.&amp;nbsp; It has not extension.&amp;nbsp; &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2016 17:53:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Log-file-question/m-p/1020406#M924911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-12T17:53:03Z</dc:date>
    </item>
  </channel>
</rss>

