<?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 External task return error code in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317880#M1277547</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;I have an external task which suppose to do the following:&lt;/P&gt;&lt;P&gt;Batch file &lt;/P&gt;&lt;P&gt;- Check existence of file on DMZ server&lt;/P&gt;&lt;P&gt;If file exist, continue execution of dependent tasks&lt;/P&gt;&lt;P&gt;If file does not exist, exit with error. retry in 5 minutes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following command to explicitly throw an error :&lt;/P&gt;&lt;P&gt;EXIT /B -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In reality the tasks ends with warning instead of error and precedes with the rest of the tasks in the execution thread. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea's ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dror&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="-chrome-auto-translate-plugin-dialog" style="opacity: 1 !important; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: transparent !important; position: absolute !important; top: 0px; left: 0px; overflow-x: visible !important; overflow-y: visible !important; z-index: 999999 !important; text-align: left !important; display: none; background-position: initial initial !important; background-repeat: initial initial !important; padding: 0px !important; margin: 0px !important;"&gt;&lt;DIV style="max-width: 300px !important; color: #fafafa !important; opacity: 0.8 !important; border-color: #000000 !important; border-width: 0px !important; background-color: #363636 !important; font-size: 16px !important; padding: 8px !important; overflow: visible !important; background-image: -webkit-gradient(linear, left top, right bottom, color-stop(0%, #000), color-stop(50%, #363636), color-stop(100%, #000)); z-index: 999999 !important; text-align: left  !important;"&gt;&lt;DIV class="translate"&gt; &lt;/DIV&gt;&lt;DIV class="additional"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;IMG src="http://www.google.com/uds/css/small-logo.png" style="position: absolute !important; z-index: -1 !important; right: 1px !important; top: -20px !important; cursor: pointer !important; background-color: rgba(200, 200, 200, 0.3) !important; padding: 3px 5px 0 !important; margin: 0 !important;" /&gt;HiHHi&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator />
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>External task return error code</title>
      <link>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317880#M1277547</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;I have an external task which suppose to do the following:&lt;/P&gt;&lt;P&gt;Batch file &lt;/P&gt;&lt;P&gt;- Check existence of file on DMZ server&lt;/P&gt;&lt;P&gt;If file exist, continue execution of dependent tasks&lt;/P&gt;&lt;P&gt;If file does not exist, exit with error. retry in 5 minutes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using the following command to explicitly throw an error :&lt;/P&gt;&lt;P&gt;EXIT /B -1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In reality the tasks ends with warning instead of error and precedes with the rest of the tasks in the execution thread. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea's ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dror&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="-chrome-auto-translate-plugin-dialog" style="opacity: 1 !important; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: transparent !important; position: absolute !important; top: 0px; left: 0px; overflow-x: visible !important; overflow-y: visible !important; z-index: 999999 !important; text-align: left !important; display: none; background-position: initial initial !important; background-repeat: initial initial !important; padding: 0px !important; margin: 0px !important;"&gt;&lt;DIV style="max-width: 300px !important; color: #fafafa !important; opacity: 0.8 !important; border-color: #000000 !important; border-width: 0px !important; background-color: #363636 !important; font-size: 16px !important; padding: 8px !important; overflow: visible !important; background-image: -webkit-gradient(linear, left top, right bottom, color-stop(0%, #000), color-stop(50%, #363636), color-stop(100%, #000)); z-index: 999999 !important; text-align: left  !important;"&gt;&lt;DIV class="translate"&gt; &lt;/DIV&gt;&lt;DIV class="additional"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;IMG src="http://www.google.com/uds/css/small-logo.png" style="position: absolute !important; z-index: -1 !important; right: 1px !important; top: -20px !important; cursor: pointer !important; background-color: rgba(200, 200, 200, 0.3) !important; padding: 3px 5px 0 !important; margin: 0 !important;" /&gt;HiHHi&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317880#M1277547</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>External task return error code</title>
      <link>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317881#M1277551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;This maybe a strange workaroud, but can you force an error with a non-existing command? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use: &lt;/P&gt;&lt;P&gt;Trace FILE NOT FOUND;&lt;/P&gt;&lt;P&gt;ERROR;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will create an unknown statement error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 18:24:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317881#M1277551</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-02-28T18:24:50Z</dc:date>
    </item>
    <item>
      <title>External task return error code</title>
      <link>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317882#M1277553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i place this statement in batch file and let it fired by external task, it does produce an error but trapped as a warning. All dependent task will still run. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dror &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 21:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317882#M1277553</guid>
      <dc:creator />
      <dc:date>2012-02-28T21:51:23Z</dc:date>
    </item>
    <item>
      <title>External task return error code</title>
      <link>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317883#M1277554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;How do you check file existence? &lt;/P&gt;&lt;P&gt;Did you change the system variable ErrorMode? &lt;/P&gt;&lt;P&gt;Can you post your script here? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; - Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Feb 2012 22:17:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317883#M1277554</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2012-02-28T22:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: External task return error code</title>
      <link>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317884#M1277555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Erich hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the check file is happening inside a .bat file. If no file exist an error is returned. The QVS for some reason consider this as a warning and therefore all successive tasks will run as usual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dror &lt;/P&gt;&lt;DIV id="-chrome-auto-translate-plugin-dialog" style="opacity: 1 !important; background-image: initial !important; background-attachment: initial !important; background-origin: initial !important; background-clip: initial !important; background-color: transparent !important; position: absolute !important; top: 0px; left: 0px; overflow-x: visible !important; overflow-y: visible !important; z-index: 999999 !important; text-align: left !important; display: none; background-position: initial initial !important; background-repeat: initial initial !important; padding: 0px !important; margin: 0px !important;"&gt;&lt;DIV style="max-width: 300px !important; color: #fafafa !important; opacity: 0.8 !important; border-color: #000000 !important; border-width: 0px !important; background-color: #363636 !important; font-size: 16px !important; padding: 8px !important; overflow: visible !important; background-image: -webkit-gradient(linear, left top, right bottom, color-stop(0%, #000), color-stop(50%, #363636), color-stop(100%, #000)); z-index: 999999 !important; text-align: left  !important;"&gt;&lt;DIV class="translate"&gt; &lt;/DIV&gt;&lt;DIV class="additional"&gt; &lt;/DIV&gt;&lt;/DIV&gt;&lt;IMG onclick="" src="http://www.google.com/uds/css/small-logo.png" style="position: absolute !important; z-index: -1 !important; right: 1px !important; top: -20px !important; cursor: pointer !important; background-color: rgba(200, 200, 200, 0.3) !important; padding: 3px 5px 0 !important; margin: 0 !important;" /&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2012 12:47:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317884#M1277555</guid>
      <dc:creator />
      <dc:date>2012-03-02T12:47:10Z</dc:date>
    </item>
    <item>
      <title>External task return error code</title>
      <link>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317885#M1277556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like very strange behaviour to me.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To recreate the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a batch file (configured as an external task), force a non zero (error) return code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXIT /B -1&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;I would expect the task to have a failed status in the QDS, but as Dror points out, this exception is being caught and marked as a warning.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4/11/2012 09:56:40.5524236&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Warning&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Process exited with non zero exit code: -1 at 4/11/2012 9:56:40 AM&lt;/P&gt;&lt;P&gt;4/11/2012 09:56:40.5524236&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Information&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Process exited with exit code: -1 at 4/11/2012 9:56:40 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This basically makes it impossible to perform error handling in the external tasks.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dror - did you get a resolution to this from QV support, or did you find a work around?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 09:04:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317885#M1277556</guid>
      <dc:creator />
      <dc:date>2012-04-11T09:04:10Z</dc:date>
    </item>
    <item>
      <title>External task return error code</title>
      <link>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317886#M1277557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QV support have confirmed this as a bug (34870).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2012 13:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317886#M1277557</guid>
      <dc:creator />
      <dc:date>2012-04-17T13:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: External task return error code</title>
      <link>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317887#M1277559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have seen this new setting in QV11 on the external task configuration, so I presume it has been fixed (although I haven't tried it yet):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-family: Arial; font-size: 11px; font-weight: bold; background-color: #e9e9e9;"&gt;Task result handling&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11px; background-color: #e9e9e9; font-family: Tahoma; font-weight: bold;"&gt; Ignore errors (non zero return codes)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-family: Arial; font-size: 11px; font-weight: bold; background-color: #e9e9e9;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am using 11.2 SR2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Aug 2013 13:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/External-task-return-error-code/m-p/317887#M1277559</guid>
      <dc:creator />
      <dc:date>2013-08-20T13:14:23Z</dc:date>
    </item>
  </channel>
</rss>

