<?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 Error variables in Qlik Sense server unexpected result in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Error-variables-in-Qlik-Sense-server-unexpected-result/m-p/885618#M3047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get more control with the "exceptions" in qlik sense and manage it using the error variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've placed the ErrorMode = 0 and it's working, but when I've got an error the system variables are not updating in the right value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a simple test. Code below:&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;LOAD * from [lib://QVDIncFolder (analytics_sense_system)/Test-FB93F7E9-1C98-4024-A387-A67FC7FAFC1D\abc.qvd] (QVD);&lt;BR /&gt;LET vTest = ScriptErrorCount;&lt;/P&gt;&lt;P&gt;if ScriptErrorCount &amp;gt; 0 then&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;P&gt;//no file; &lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The debug screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85795_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see in the previous screenshot, the abc.qvd file doesn't exist in the folder so I expect some value in the ScriptErrorCount or ScriptError, but It hadn't happened, so the code never is going into the if section to manage the exception. In debug mode every error variable is empty or zero&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2015 11:27:22 GMT</pubDate>
    <dc:creator>josecardenas</dc:creator>
    <dc:date>2015-05-06T11:27:22Z</dc:date>
    <item>
      <title>Error variables in Qlik Sense server unexpected result</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Error-variables-in-Qlik-Sense-server-unexpected-result/m-p/885618#M3047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everybody.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get more control with the "exceptions" in qlik sense and manage it using the error variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've placed the ErrorMode = 0 and it's working, but when I've got an error the system variables are not updating in the right value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a simple test. Code below:&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;LOAD * from [lib://QVDIncFolder (analytics_sense_system)/Test-FB93F7E9-1C98-4024-A387-A67FC7FAFC1D\abc.qvd] (QVD);&lt;BR /&gt;LET vTest = ScriptErrorCount;&lt;/P&gt;&lt;P&gt;if ScriptErrorCount &amp;gt; 0 then&lt;/P&gt;&lt;P&gt;exit script;&lt;/P&gt;&lt;P&gt;//no file; &lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The debug screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/85795_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;As you can see in the previous screenshot, the abc.qvd file doesn't exist in the folder so I expect some value in the ScriptErrorCount or ScriptError, but It hadn't happened, so the code never is going into the if section to manage the exception. In debug mode every error variable is empty or zero&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2015 11:27:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Error-variables-in-Qlik-Sense-server-unexpected-result/m-p/885618#M3047</guid>
      <dc:creator>josecardenas</dc:creator>
      <dc:date>2015-05-06T11:27:22Z</dc:date>
    </item>
  </channel>
</rss>

