<?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 Ending an external task in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Ending-an-external-task/m-p/197824#M1322979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the command line of your external task?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jul 2010 21:44:01 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2010-07-13T21:44:01Z</dc:date>
    <item>
      <title>Ending an external task</title>
      <link>https://community.qlik.com/t5/QlikView/Ending-an-external-task/m-p/197822#M1322973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I started an external task, which execute a macro, which sends an Excel Table via Email, in an QlikView Document.&lt;/P&gt;&lt;P&gt;The task runs succsessfully and I recieve the email, but in the Enterprise Management Console the Task is running wihtout ending, weather the Mail have been distributed. So, every time I have to stop the reload by myself and the reload fails.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;What can I do, that the reload stops itself, when finishing distirbution?&lt;BR /&gt;Here's the VBA-Script from my QlikView document:&lt;/P&gt;&lt;P&gt;'################################EMAIL-HANDLING FUNCTION#################################&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Public Function SendMail (SendTo, Subject, Body, Attachment)&lt;BR /&gt;', Attachment, SendCC, SendBCC)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Set objMessage = CreateObject("CDO.Message")&lt;BR /&gt; objMessage.Subject = Subject&lt;BR /&gt; objMessage.From = "QlikviewPublisher@XXX.de"&lt;BR /&gt; objMessage.To = SendTo&lt;BR /&gt; objMessage.CC = SendCC&lt;BR /&gt; objMessage.BCC = SendBCC&lt;BR /&gt; objMessage.TextBody = Body&lt;BR /&gt; 'msgbox Attachment&lt;BR /&gt; if( not "" = Attachment) then&lt;BR /&gt; objMessage.AddAttachment Attachment&lt;BR /&gt; end if&lt;BR /&gt;&lt;BR /&gt; objMessage.Configuration.Fields.Item _&lt;BR /&gt; ("&lt;A href="http://schemas.microsoft.com/cdo/configuration/sendusing" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;") = 2&lt;BR /&gt;&lt;BR /&gt; objMessage.Configuration.Fields.Item _&lt;BR /&gt; ("&lt;A href="http://schemas.microsoft.com/cdo/configuration/smtpserver" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;") = "RE-XX.XX-XX.TEDA"&lt;BR /&gt;&lt;BR /&gt; objMessage.Configuration.Fields.Item _&lt;BR /&gt; ("&lt;A href="http://schemas.microsoft.com/cdo/configuration/smtpserverport" target="_blank"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;") = 25&lt;BR /&gt;&lt;BR /&gt; objMessage.Configuration.Fields.Update&lt;BR /&gt;&lt;BR /&gt; objMessage.Send&lt;BR /&gt;End Function&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;sub email()&lt;BR /&gt; 'Set oShell = CreateObject("WScript.Shell")'&lt;BR /&gt; 'set fso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt; path = "C:\Temp\Myexport.xls"&lt;BR /&gt; 'If fso.FileExists(path) Then&lt;BR /&gt; 'set excelFile = fso.GetFile(path)&lt;BR /&gt; 'excelFile.Delete&lt;BR /&gt; 'end if&lt;BR /&gt;&lt;BR /&gt; Application.Sleep(1000)&lt;BR /&gt;&lt;BR /&gt; set obj = ActiveDocument.GetSheetObject("CH02")&lt;BR /&gt; obj.ExportBiff path&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; Application.Sleep(1000)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt; call sendmail("test.test@email.de", "Your Excel report","See attached Excel doc for details for last 30 days. The full QV report is here: &lt;A href="https://xxx.com/xyz" target="_blank"&gt;https://xxx.com/xyz&lt;/A&gt;", path)&lt;BR /&gt; 'ActiveDocument.GetVariable("sendTo").GetContent.String'&lt;BR /&gt;&lt;BR /&gt; ActiveDocument.ClearAll False&lt;BR /&gt;&lt;BR /&gt;end sub&lt;/P&gt;&lt;P&gt;'########################################################################################################'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for help.&lt;/P&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/Ending-an-external-task/m-p/197822#M1322973</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Ending an external task</title>
      <link>https://community.qlik.com/t5/QlikView/Ending-an-external-task/m-p/197823#M1322977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you might want to look into this to compare &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;http://community.qlik.com/media/p/64479.aspx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 20:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ending-an-external-task/m-p/197823#M1322977</guid>
      <dc:creator />
      <dc:date>2010-07-13T20:40:04Z</dc:date>
    </item>
    <item>
      <title>Ending an external task</title>
      <link>https://community.qlik.com/t5/QlikView/Ending-an-external-task/m-p/197824#M1322979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the command line of your external task?&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jul 2010 21:44:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ending-an-external-task/m-p/197824#M1322979</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-07-13T21:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ending an external task</title>
      <link>https://community.qlik.com/t5/QlikView/Ending-an-external-task/m-p/197825#M1322983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ciao Francesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anch'io ho problemi con un task esterno (nella &lt;EM&gt;Command line&amp;nbsp; statement &lt;/EM&gt;c'è scritto:&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;C:\SW_CTRL_LOG_QLIK\QlikLauncher.exe 1&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; dove &lt;STRONG&gt;1&lt;/STRONG&gt; è un parametro per l'eseguibile) che fa tutto quello che deve ma alla fine, invece di terminare, resta appeso. &lt;/P&gt;&lt;P&gt;Ho tentato di accedere al link&amp;nbsp; &lt;A _jive_internal="true" href="https://community.qlik.com/media/p/64479.aspx"&gt;http://community.qlik.com/media/p/64479.aspx&lt;/A&gt; per vedere la tua risposta ma sembra che la pagina non sia più raggiungibile.&lt;/P&gt;&lt;P&gt;Mi puoi scrivere per favore, qual è la soluzione che suggerivi?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grazie mille&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2012 12:42:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Ending-an-external-task/m-p/197825#M1322983</guid>
      <dc:creator />
      <dc:date>2012-11-15T12:42:01Z</dc:date>
    </item>
  </channel>
</rss>

