<?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: ErrorMode not working with missing of single quote in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706337#M671763</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can see, it works the way it should. A missing single quote means that the parser sees &lt;EM&gt;the rest of the script&lt;/EM&gt; as part of the string that is being quoted. Which means that the last Let statement never is executed, because it is part of the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you run the script in the debugger, this is visible:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66951_Image2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you could wish that the parser should be "smart" enough to understand that it should skip up until the next semicolon, but then it wouldn't be possible to have semicolons in quoted strings...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 06:32:23 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2014-09-17T06:32:23Z</dc:date>
    <item>
      <title>ErrorMode not working with missing of single quote</title>
      <link>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706331#M671757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;I have a scenario, please refer to my below script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET ErrorMode = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employees:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpID, Name, Dept&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4405, James, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4408, David, Finance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4412, Bobby, HR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4420, Chan, Sales&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4438, Mike, Human Resource&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4456, Volker, Sales&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET vHRFilter = "Match(Dept,HR','Human Resource')";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HR_User:&lt;/P&gt;&lt;P&gt;LOAD EmpID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Name as HRUser&lt;/P&gt;&lt;P&gt;Resident Employees Where $(vHRFilter);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vError = Num(ScriptError) &amp;amp;' - '&amp;amp; ScriptErrorDetails;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also attached the same qlikview file here for your easy reference. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The actual Match case should be Match(Dept,'HR','Human Resource'); but for testing I purposely skipped the open single quote for HR. By right the SciprtErrorDetails should capture this error, but it is not. Is it a know QlikView issue? Any idea how to over come this kind of scenario? Does it need hot fixes from QlikTech Consultants?&lt;/P&gt;&lt;P&gt;All you valuable suggestions are most welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;/P&gt;&lt;P&gt;Shankar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 07:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706331#M671757</guid>
      <dc:creator />
      <dc:date>2014-09-16T07:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: ErrorMode not working with missing of single quote</title>
      <link>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706332#M671758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this from Qlikview help file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you give &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;SET ErrorMode = 0; then qlikview simply ignores error, if you want the error message then you need to set it as 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor590"&gt;&lt;/A&gt;&lt;A name="ErrorMode"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;ErrorMode&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;This variable determines what action is to be taken by QlikView when an error is encountered during script execution. By default (&lt;SPAN class="Bold"&gt;ErrorMode=1&lt;/SPAN&gt;) the script execution will halt and the user will be prompted for action (non-batch mode). By setting &lt;SPAN class="Bold"&gt;ErrorMode =0&lt;/SPAN&gt; QlikView will simply ignore the failure and continue script execution at the next script statement. By setting&lt;SPAN class="Bold"&gt; ErrorMode =2&lt;/SPAN&gt; QlikView will trigger an "Execution of script failed..." error message immediately on failure, without prompting the user for action beforehand. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 08:08:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706332#M671758</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-09-16T08:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: ErrorMode not working with missing of single quote</title>
      <link>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706333#M671759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the textbox, try like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;=&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333300; font-size: 8pt;"&gt;Num&lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;&lt;SPAN style="color: #ff00ff;"&gt;(&lt;/SPAN&gt;ScriptError)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;amp;'-'&amp;amp;&lt;/SPAN&gt;&lt;STRONG style=": ; color: #808080; font-size: 8pt;"&gt;&lt;EM&gt;ScriptErrorDetails &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 08:19:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706333#M671759</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-09-16T08:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: ErrorMode not working with missing of single quote</title>
      <link>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706334#M671760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;Thanks for your reply. I don't want QlikView to throw error, I need to handle the error. Am capturing the error text thru ScriptErrorDetails variable. For all other possible errors it is working fine. But when single quote is missing, this ScriptErrorDetails variable is not capturing the error. But when I check the log file, it is marked as error in the last line&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 09:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706334#M671760</guid>
      <dc:creator />
      <dc:date>2014-09-16T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: ErrorMode not working with missing of single quote</title>
      <link>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706335#M671761</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;it doesn't produce an error because set vVariable does not interprete&amp;nbsp; the string after the statement (there are exceptions like '$').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression:&lt;/P&gt;&lt;P&gt;Let vError = Num(ScriptError) &amp;amp;' - '&amp;amp; ScriptErrorDetails;&lt;/P&gt;&lt;P&gt;won't work as you do not evaluate the variables like num($(ScriptError)) but qlikview tries to ev. your expression due to let.&amp;nbsp; Also evaluating $(ScriptError) with num does not work as this will return Null-Value if you have text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 13:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706335#M671761</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-16T13:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: ErrorMode not working with missing of single quote</title>
      <link>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706336#M671762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gowri Shankar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure why it is not working, the statements after error is not executing may be somebody from Qlikview side help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/59295"&gt;Sara Leslie&lt;/A&gt; &lt;A href="https://community.qlik.com/qlik-users/4003"&gt;Henric Cronström&lt;/A&gt; please help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 01:59:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706336#M671762</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-09-17T01:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: ErrorMode not working with missing of single quote</title>
      <link>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706337#M671763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can see, it works the way it should. A missing single quote means that the parser sees &lt;EM&gt;the rest of the script&lt;/EM&gt; as part of the string that is being quoted. Which means that the last Let statement never is executed, because it is part of the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you run the script in the debugger, this is visible:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image2.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/66951_Image2.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course you could wish that the parser should be "smart" enough to understand that it should skip up until the next semicolon, but then it wouldn't be possible to have semicolons in quoted strings...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 06:32:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/ErrorMode-not-working-with-missing-of-single-quote/m-p/706337#M671763</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-09-17T06:32:23Z</dc:date>
    </item>
  </channel>
</rss>

