<?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 Program Task - check for failure in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/External-Program-Task-check-for-failure/m-p/1753692#M13392</link>
    <description>&lt;P&gt;I've created an External Program Task that runs a Windows batch file.&amp;nbsp; The batch file is hosted on the Qlik server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current State&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I can start the task in QMC.&amp;nbsp; This runs the batch file and the status of the task in QMC is 'Success'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Desired State&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to update the process so that the batch file can indicate to the QMC task whether it succeeded or failed.&amp;nbsp; This would be shown in QMC in the&amp;nbsp; state of the External Program Task.&amp;nbsp; It would also mean that I can have a task in QMC that is triggered when the External Program Task fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;exit /b 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;in the batch file to indicate an error but the status of the External Program Task is still success.&lt;/P&gt;&lt;P&gt;Is there a way for the batch file to exit in a way that changes the status of the External Program Task to Failed?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:16:39 GMT</pubDate>
    <dc:creator>northerner</dc:creator>
    <dc:date>2024-11-16T01:16:39Z</dc:date>
    <item>
      <title>External Program Task - check for failure</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/External-Program-Task-check-for-failure/m-p/1753692#M13392</link>
      <description>&lt;P&gt;I've created an External Program Task that runs a Windows batch file.&amp;nbsp; The batch file is hosted on the Qlik server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Current State&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I can start the task in QMC.&amp;nbsp; This runs the batch file and the status of the task in QMC is 'Success'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Desired State&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I want to update the process so that the batch file can indicate to the QMC task whether it succeeded or failed.&amp;nbsp; This would be shown in QMC in the&amp;nbsp; state of the External Program Task.&amp;nbsp; It would also mean that I can have a task in QMC that is triggered when the External Program Task fails.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried using:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;exit /b 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;in the batch file to indicate an error but the status of the External Program Task is still success.&lt;/P&gt;&lt;P&gt;Is there a way for the batch file to exit in a way that changes the status of the External Program Task to Failed?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/External-Program-Task-check-for-failure/m-p/1753692#M13392</guid>
      <dc:creator>northerner</dc:creator>
      <dc:date>2024-11-16T01:16:39Z</dc:date>
    </item>
  </channel>
</rss>

