<?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: Trigger and Scheduled Load via Management Console in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trigger-and-Scheduled-Load-via-Management-Console/m-p/1027839#M347250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Feb 2016 13:18:07 GMT</pubDate>
    <dc:creator>carolin01</dc:creator>
    <dc:date>2016-02-02T13:18:07Z</dc:date>
    <item>
      <title>Trigger and Scheduled Load via Management Console</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-and-Scheduled-Load-via-Management-Console/m-p/1027837#M347248</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´ve set some triggers in my application that should change some variables and tried both cases: "On Opening" and "OnPostRelaod". The issue is that I can see in the log file that after the scheduled relaod via the Management Console the variable hasn´t been changed to the new value. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set the following trigger to set the value for the variable "&lt;SPAN style="font-size: 13.3333px;"&gt;vDocumentType"&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=if(SubStringCount(DocumentName(),'Test')='1', 'Test',if(SubStringCount(DocumentName(),'Live')='1', 'Live', if(SubStringCount(DocumentName(),'Development')='1', 'Development', 'Invalid File Name - Check vDocumentType')))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I use the variable in my binary load in my script:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Binary [$(vScriptPath)\scripting financial sales application $(vDocumentType) security.qvw];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next my document gets a new name and includes the word "Live". Because of this my trigger should set the value of the variable &lt;SPAN style="font-size: 13.3333px;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vDocumentType"&lt;/SPAN&gt; to "Live" instead of "Test". The trigger is working if I manually reopen the document. I expected this to be working also automatically without having to open the document once more by hand, because I thought that in the background the management console also opens the document and then this would activate the trigger. But this is what happens:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Extraction of the log file after the scheduled reload via the Management Console:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL style="list-style-type: decimal-leading-zero;"&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Execution started.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; QlikView Version:11.20.12664.0&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CPU Target x64&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Operating System Windows Server 2008 R2 Standard Service Pack 1 (64 bit edition)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wow64 mode Not using Wow64&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MDAC Version 6.1.7601.17514&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MDAC Full Install Version&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6.1.7601.17514&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PreferredCompression 2&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34: EnableParallelReload&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34: ParallelizeQvdLoads 1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34: AutoSaveAfterReload 0&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34: BackupBeforeReload 0&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34: EnableFlushLog 0&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34: SaveInfoWhenSavingFile&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34: UserLogfileCharset 1200&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34: OdbcLoginTimeout -1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34: OdbcConnectionTimeout&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -1&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34: ScriptWantsDbWrite false&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ScriptWantsExe false&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LogFile CodePage Used:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1200&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reload Executed By EU\qlikviewservice&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Process Executing: QVB&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN lang="DE" style="color: #1f497d;"&gt;02.02.2016 09:36:34:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Process ID: 14696&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #1f497d;"&gt;02.02.2016 09:36:34: 0002 Binary [..\02 Skript-Files\scripting financial sales application &lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;&lt;STRONG&gt;Test &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #1f497d;"&gt;security.qvw]&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;As you can see the name is still "Test" instead of "Live". I would like to use such a function in many different ways so that the solution should include that this works automatically. Reopening of the document is not a solution because the document needs 20 Minutes to open. Any idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 09:27:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-and-Scheduled-Load-via-Management-Console/m-p/1027837#M347248</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2016-02-02T09:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger and Scheduled Load via Management Console</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-and-Scheduled-Load-via-Management-Console/m-p/1027838#M347249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The OnOpen and OnPostReload triggers are not fired when the document is hosted and reloaded in QV server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest setting the variables in the script, but you cannot do that before a binary load. Have you invertstigated passing the variable as a parameter. In a batch load from QV desktop. you would use the /v switch. I think you can set a a parameter in server as well, but I don't have one available to check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example in desktop: &lt;EM&gt;qv.exe /r /vvDocumentType=Live abc.qvw&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 09:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-and-Scheduled-Load-via-Management-Console/m-p/1027838#M347249</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-02-02T09:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger and Scheduled Load via Management Console</title>
      <link>https://community.qlik.com/t5/QlikView/Trigger-and-Scheduled-Load-via-Management-Console/m-p/1027839#M347250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2016 13:18:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trigger-and-Scheduled-Load-via-Management-Console/m-p/1027839#M347250</guid>
      <dc:creator>carolin01</dc:creator>
      <dc:date>2016-02-02T13:18:07Z</dc:date>
    </item>
  </channel>
</rss>

