<?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 ErrorHandling on QlikSense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/ErrorHandling-on-QlikSense/m-p/1398124#M32417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;i would like to manage errors during loads, so i would like to create something similar to "On Error Call ..." and call a sub that manage the errors, for example create a txt with the error description...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only solution i've found is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15096110507628339 jive_text_macro" jivemacro_uid="_15096110507628339" modifiedtitle="true"&gt;
&lt;P&gt;Set ErrorMode=0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;load * from Error.qvd(qvd);&amp;nbsp; //&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Error.qvd doesn't exist so it will generate an error... this is an example...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if ScriptError&amp;lt;&amp;gt;'' then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call ErrorH&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;andling;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;end if&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i would like to avoid using the &lt;STRONG&gt;ErrorMode&lt;/STRONG&gt; variable because, in case of error/s, the script must stop.&lt;/P&gt;&lt;P&gt;I would like to put something similar to &lt;STRONG&gt;On Error Call ErrorHandling &lt;/STRONG&gt;at the beginning of the load and in case of error, the function is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2017 08:33:28 GMT</pubDate>
    <dc:creator>micheledenardi</dc:creator>
    <dc:date>2017-11-02T08:33:28Z</dc:date>
    <item>
      <title>ErrorHandling on QlikSense</title>
      <link>https://community.qlik.com/t5/App-Development/ErrorHandling-on-QlikSense/m-p/1398124#M32417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;i would like to manage errors during loads, so i would like to create something similar to "On Error Call ..." and call a sub that manage the errors, for example create a txt with the error description...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only solution i've found is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15096110507628339 jive_text_macro" jivemacro_uid="_15096110507628339" modifiedtitle="true"&gt;
&lt;P&gt;Set ErrorMode=0;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;load * from Error.qvd(qvd);&amp;nbsp; //&lt;SPAN style="color: rgba(0, 0, 0, 0); font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;Error.qvd doesn't exist so it will generate an error... this is an example...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if ScriptError&amp;lt;&amp;gt;'' then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Call ErrorH&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;andling;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;end if&lt;/P&gt;



&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i would like to avoid using the &lt;STRONG&gt;ErrorMode&lt;/STRONG&gt; variable because, in case of error/s, the script must stop.&lt;/P&gt;&lt;P&gt;I would like to put something similar to &lt;STRONG&gt;On Error Call ErrorHandling &lt;/STRONG&gt;at the beginning of the load and in case of error, the function is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas on how to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 08:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/ErrorHandling-on-QlikSense/m-p/1398124#M32417</guid>
      <dc:creator>micheledenardi</dc:creator>
      <dc:date>2017-11-02T08:33:28Z</dc:date>
    </item>
  </channel>
</rss>

