<?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 Set ErrorMode and &amp;quot;General Script Error in statement handling&amp;quot; in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-ErrorMode-and-quot-General-Script-Error-in-statement/m-p/2098441#M89945</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;sometime, not often, I get the "General Script Error in statement handling" when we make a URL call.&lt;/P&gt;
&lt;P&gt;We are trying to manage this error including the "set ErrorMode=0" to make script continue also when we catch this error. But It seems this is not working properly as you can see from the following part of the script. We've set&amp;nbsp;ErrorMode=0 but the script exited with error.&lt;/P&gt;
&lt;PRE&gt; 20230729T163516.365+0200 0193 set ErrorMode=0&lt;BR /&gt;20230729T163516.365+0200 0194 TaskExecutionStatus:&lt;BR /&gt;20230729T163516.365+0200 0195 SQL SELECT&lt;BR /&gt;20230729T163516.365+0200 0196 "id" ,&lt;BR /&gt;20230729T163516.365+0200 0197 "status" &lt;BR /&gt;20230729T163516.365+0200 0198 FROM JSON (wrap off) "data" PK "__KEY_data"&lt;BR /&gt;20230729T163516.365+0200 0199 WITH CONNECTION( URL "https://xxx.yyy.com:4993/api/v1/tasks/[some_other_params[)&lt;BR /&gt;20230729T163516.527+0200 General Script Error in statement handling&lt;BR /&gt;20230729T163516.527+0200 Execution Failed&lt;BR /&gt;20230729T163516.551+0200 Execution finished.&lt;/PRE&gt;
&lt;P&gt;Do you have any idea why the script exited even if the&amp;nbsp;set ErrorMode=0 ?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Sun, 30 Jul 2023 08:51:43 GMT</pubDate>
    <dc:creator>PierfrancescoGirolami</dc:creator>
    <dc:date>2023-07-30T08:51:43Z</dc:date>
    <item>
      <title>Set ErrorMode and "General Script Error in statement handling"</title>
      <link>https://community.qlik.com/t5/App-Development/Set-ErrorMode-and-quot-General-Script-Error-in-statement/m-p/2098441#M89945</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;sometime, not often, I get the "General Script Error in statement handling" when we make a URL call.&lt;/P&gt;
&lt;P&gt;We are trying to manage this error including the "set ErrorMode=0" to make script continue also when we catch this error. But It seems this is not working properly as you can see from the following part of the script. We've set&amp;nbsp;ErrorMode=0 but the script exited with error.&lt;/P&gt;
&lt;PRE&gt; 20230729T163516.365+0200 0193 set ErrorMode=0&lt;BR /&gt;20230729T163516.365+0200 0194 TaskExecutionStatus:&lt;BR /&gt;20230729T163516.365+0200 0195 SQL SELECT&lt;BR /&gt;20230729T163516.365+0200 0196 "id" ,&lt;BR /&gt;20230729T163516.365+0200 0197 "status" &lt;BR /&gt;20230729T163516.365+0200 0198 FROM JSON (wrap off) "data" PK "__KEY_data"&lt;BR /&gt;20230729T163516.365+0200 0199 WITH CONNECTION( URL "https://xxx.yyy.com:4993/api/v1/tasks/[some_other_params[)&lt;BR /&gt;20230729T163516.527+0200 General Script Error in statement handling&lt;BR /&gt;20230729T163516.527+0200 Execution Failed&lt;BR /&gt;20230729T163516.551+0200 Execution finished.&lt;/PRE&gt;
&lt;P&gt;Do you have any idea why the script exited even if the&amp;nbsp;set ErrorMode=0 ?&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2023 08:51:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-ErrorMode-and-quot-General-Script-Error-in-statement/m-p/2098441#M89945</guid>
      <dc:creator>PierfrancescoGirolami</dc:creator>
      <dc:date>2023-07-30T08:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set ErrorMode and "General Script Error in statement handling"</title>
      <link>https://community.qlik.com/t5/App-Development/Set-ErrorMode-and-quot-General-Script-Error-in-statement/m-p/2099097#M89986</link>
      <description>&lt;P&gt;I don't know why it happens but I could imagine that this may occur if the error didn't comes from the script-part - see the help-text:&lt;/P&gt;
&lt;H1 data-mc-conditions="Targets.NotToTranslate"&gt;ErrorMode&lt;/H1&gt;
&lt;P&gt;This error variable determines what action is to be taken by&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable CommonComponents.Qlik_Sense variable"&gt;Qlik Sense&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;when an error is encountered &lt;STRONG&gt;during&lt;/STRONG&gt; script execution.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This could mean that if the error comes from the outside - for example any security measure or temporary failure has prevented that Qlik could execute the script - no script error would occur which would be fetched from the error mode and therefore the load breaks.&lt;/P&gt;
&lt;P&gt;Another thought goes to the returned ScriptError - if this value is invalid/undefined the error mode itself may break and with it the entire script.&lt;/P&gt;
&lt;P&gt;If none from the R&amp;amp;D would shed some insights you will probably need some workarounds - maybe by outsourcing this part into a separate task and if it failed only this task died but not the following chain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 13:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-ErrorMode-and-quot-General-Script-Error-in-statement/m-p/2099097#M89986</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2023-08-01T13:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set ErrorMode and "General Script Error in statement handling"</title>
      <link>https://community.qlik.com/t5/App-Development/Set-ErrorMode-and-quot-General-Script-Error-in-statement/m-p/2506649#M104222</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/148745"&gt;@PierfrancescoGirolami&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I am facing the same problem. Did you find a solution for your use case?&lt;/P&gt;
&lt;P&gt;From time to time, I get the &lt;SPAN class="lia-message-unread lia-message-unread-windows"&gt;"General Script Error in statement handling" message from the Qlik Sense app that triggers the QNP REST API methods and the script does not stop as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-message-unread lia-message-unread-windows"&gt;So far, I haven't figured out a robust and resilient solution via Qlik script. Even though it works for other use cases when I force an error.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-message-unread lia-message-unread-windows"&gt;Thank you for your attention.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-message-unread lia-message-unread-windows"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-message-unread lia-message-unread-windows"&gt;Huberto&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 16:29:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-ErrorMode-and-quot-General-Script-Error-in-statement/m-p/2506649#M104222</guid>
      <dc:creator>Huberto_Computop</dc:creator>
      <dc:date>2025-02-19T16:29:34Z</dc:date>
    </item>
  </channel>
</rss>

