<?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 Re: Macro not working disconnected from Server in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624583#M229754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thks for your answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will change the settings tonight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Feb 2014 14:45:40 GMT</pubDate>
    <dc:creator>urivera</dc:creator>
    <dc:date>2014-02-18T14:45:40Z</dc:date>
    <item>
      <title>Macro not working disconnected from Server</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624577#M229748</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 a problem with a macro to sending mail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Server:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;64B, &lt;/P&gt;&lt;P&gt;Windows 2008 SP2&lt;/P&gt;&lt;P&gt;QlikView Server 11&lt;/P&gt;&lt;P&gt;Desktop 11 R5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;QV Document&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1.- It has a macro to send email using a mail account with the proper code.&lt;/P&gt;&lt;P&gt;2.- The corresponding setting in a macro editor and in a document, referent a security and access to system are ok.&lt;/P&gt;&lt;P&gt;2.- In a bat file there are the necessary command to invoke qv.exe and the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Running the task&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1.- In a&amp;nbsp; manual mode no problem, the mail it sent.&lt;/P&gt;&lt;P&gt;2.- When use scheduled task of server and run it, no problem&lt;/P&gt;&lt;P&gt;3.-&lt;STRONG&gt; When close the conn, (not log off), the task not send email and the task administrator show it with zero activiy, but en memory.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Finding the "error",&lt;/STRONG&gt; I created diferent scheduled task according below: &lt;/P&gt;&lt;P&gt;1.- Task under Windows 2008 (options in task)&lt;/P&gt;&lt;P&gt;2.- Task under Windows 2003 (options in task)&lt;/P&gt;&lt;P&gt;3.- bat file with param /r&lt;/P&gt;&lt;P&gt;4.- bat file with param /l&lt;/P&gt;&lt;P&gt;5.- bat file with param /v to trigger or not the macro.&lt;/P&gt;&lt;P&gt;6.- bat file with without param &lt;/P&gt;&lt;P&gt;7.- Trigger macro onPostReload&lt;/P&gt;&lt;P&gt;8.- Trigger macro onOpen&lt;/P&gt;&lt;P&gt;9.- Run task at user belong administrator Group&lt;/P&gt;&lt;P&gt;10.- Run task at user administrator&lt;/P&gt;&lt;P&gt;11.- Run task with other account gmail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note.-&lt;/P&gt;&lt;P&gt;When the task is in point 2.., and sometime, the macro editor is open and the macro stop, but not error is present, only stop.&lt;/P&gt;&lt;P&gt;I debug the macro and the problem maybe the mail routine because without this code lines, the macro don't stop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody know a similar situation and how to resolve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code macro for sending email:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sub EnviarGmail(sTo, sSubject, sBody, sFile)&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Object creation&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objMsg = CreateObject("CDO.Message")&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set msgConf = CreateObject("CDO.Configuration")&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Server Configuration&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgConf.Fields.Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusing"&gt;http://schemas.microsoft.com/cdo/configuration/sendusing&lt;/A&gt;") = 2&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgConf.Fields.Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserver"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserver&lt;/A&gt;") = "smtp.gmail.com"&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgConf.Fields.Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpserverport"&gt;http://schemas.microsoft.com/cdo/configuration/smtpserverport&lt;/A&gt;") = 465&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgConf.Fields.Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpauthenticate"&gt;http://schemas.microsoft.com/cdo/configuration/smtpauthenticate&lt;/A&gt;") = 1&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgConf.Fields.Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendusername"&gt;http://schemas.microsoft.com/cdo/configuration/sendusername&lt;/A&gt;") = "&lt;A class="jive-link-email-small" href="mailto:cuenta@dominio.net"&gt;cuenta@dominio.net&lt;/A&gt;"&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgConf.Fields.Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/sendpassword"&gt;http://schemas.microsoft.com/cdo/configuration/sendpassword&lt;/A&gt;") = "password"&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgConf.Fields.Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpusessl"&gt;http://schemas.microsoft.com/cdo/configuration/smtpusessl&lt;/A&gt;") = 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgConf.Fields.Item("&lt;A class="jive-link-external-small" href="http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout"&gt;http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout&lt;/A&gt;") = 60&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; msgConf.Fields.Update&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' Email&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objMsg.To&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = sTO&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objMsg.From&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "&lt;A class="jive-link-email-small" href="mailto:cuenta@dominio.net"&gt;cuenta@dominio.net&lt;/A&gt;"&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objMsg.Subject&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = sSubject&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objMsg.HTMLBody&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = sBody&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objMsg.Sender&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "xxxx"&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for i=0 to 9&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if sFile(i) &amp;lt;&amp;gt; "" then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; objMsg.AddAttachment sFile(i)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.WaitForIdle&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end if&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objMsg.Configuration = msgConf&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; objMsg.Send&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set objMsg = nothing&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set msgConf = nothing&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;End Sub &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ulises&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Feb 2014 23:04:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624577#M229748</guid>
      <dc:creator>urivera</dc:creator>
      <dc:date>2014-02-08T23:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not working disconnected from Server</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624578#M229749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nobody any suggest?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Feb 2014 16:19:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624578#M229749</guid>
      <dc:creator>urivera</dc:creator>
      <dc:date>2014-02-16T16:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not working disconnected from Server</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624579#M229750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First and for Most you try to reload manually see it reload ok and giving log file ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2014 10:23:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624579#M229750</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2014-02-17T10:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not working disconnected from Server</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624580#M229751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can reload manually without problem and the log file is ok, but when i disconnected or loged out from server the task start and working one or twice and to the next sequence sotpedd and&amp;nbsp; qv remain with zero cpu... and nothing appear at email...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Recently downlload a scheduler software, put in it the task and is the same... the task remain without activity...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ulises&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 00:35:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624580#M229751</guid>
      <dc:creator>urivera</dc:creator>
      <dc:date>2014-02-18T00:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not working disconnected from Server</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624581#M229752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii,&lt;/P&gt;&lt;P&gt;While setting Task in windows Scheduler Please attached setting.&lt;/P&gt;&lt;P&gt;Hope your problem will resolve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 03:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624581#M229752</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2014-02-18T03:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Macro not working disconnected from Server</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624582#M229753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PFA settings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 03:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624582#M229753</guid>
      <dc:creator>vikasmahajan</dc:creator>
      <dc:date>2014-02-18T03:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not working disconnected from Server</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624583#M229754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thks for your answer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will change the settings tonight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 14:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624583#M229754</guid>
      <dc:creator>urivera</dc:creator>
      <dc:date>2014-02-18T14:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Macro not working disconnected from Server</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624584#M229755</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 changed the sttings and nothing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a delphi program that send a simple mail, y made a scheduler task and is the same, works only 1 or twice and then stopped, is another problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Y discovery that the windows is Windows 2008 standard SP2, not Windows 2008 R2 SP1, maybe it's the problema?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:08:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-not-working-disconnected-from-Server/m-p/624584#M229755</guid>
      <dc:creator>urivera</dc:creator>
      <dc:date>2014-02-19T13:08:40Z</dc:date>
    </item>
  </channel>
</rss>

