<?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: Script parameters set in QlikView Management Console are ignored in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-parameters-set-in-QlikView-Management-Console-are-ignored/m-p/991115#M1256671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your guess is correct, Peter. I am setting the same variable in the script as in QVMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tested your solution. It works perfectly fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Aug 2015 12:10:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-08-26T12:10:05Z</dc:date>
    <item>
      <title>Script parameters set in QlikView Management Console are ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Script-parameters-set-in-QlikView-Management-Console-are-ignored/m-p/991113#M1256668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt; Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;I am an active reader of this forum and could so far resolve all of my QlikView issues with the help of your discussions. But now I am stuck.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;In order to distribute my QlikView Application, I uploaded the .qvw-file in the SourceDocuments folder on the QlikView Server and set up a task in the QlikView Management Console (QVMC). For section access and individual access to document sheets, I use two external Excel files. The path to these Excel files is set in the script as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;set vImport_Document_Path = 'C:\TL\QlikView\Project\ExternalData\';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Execution of the task on the QlikView Server works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Now starts the hassle. I want to declare exactly the same variable in QVMC with the path to the two external excel files on the QlikView Server (this makes sense for me in order to perform local tests without having to change anything in the script). On the Reload tab in the section "Script Parameters", I have the possibility to set a “Parameter name” and a “Parameter value”. I did this as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Parameter name: vImport_Document_Path&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Parameter value: C:\ProgramData\QlikTech\SourceDocuments\ExternalDocuments\&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt; But QlikView-Server constantly ignores these values. Instead it takes the corresponding value from the script. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Thanks in advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Tobias&lt;BR /&gt;&lt;/SPAN&gt;&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/Script-parameters-set-in-QlikView-Management-Console-are-ignored/m-p/991113#M1256668</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script parameters set in QlikView Management Console are ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Script-parameters-set-in-QlikView-Management-Console-are-ignored/m-p/991114#M1256669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you say "&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 14.6666669845581px;"&gt;Instead it takes the corresponding value from the script", that means that you are setting the same variable in the script as well, thereby always overriding the value passed as a parameter. Using variables to pass values is tricky stuff.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A solution to this can be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In your document, clear the value of your variable in Settings-&amp;gt;Variable Overview&lt;/LI&gt;&lt;LI&gt;At the end of your script, add a line like:&lt;SPAN style="font-family: 'courier new', courier;"&gt; LET vImport_Document_Path = '';&lt;/SPAN&gt; That will make sure that at the start of the next reload, the variable exists (necessary for passing parameter values) and contains nothing (see further)&lt;/LI&gt;&lt;LI&gt;Now in your script (probably at the beginning) make the assignment of a default value to your variable conditional. Only set the variable if it is empty (meaning that no value has been passed from QDS). You can use a test like &lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;IF '$(vImport_Document_Path)' = '' THEN ...&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 15:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-parameters-set-in-QlikView-Management-Console-are-ignored/m-p/991114#M1256669</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-08-25T15:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Script parameters set in QlikView Management Console are ignored</title>
      <link>https://community.qlik.com/t5/QlikView/Script-parameters-set-in-QlikView-Management-Console-are-ignored/m-p/991115#M1256671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your guess is correct, Peter. I am setting the same variable in the script as in QVMC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tested your solution. It works perfectly fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Tobias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2015 12:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-parameters-set-in-QlikView-Management-Console-are-ignored/m-p/991115#M1256671</guid>
      <dc:creator />
      <dc:date>2015-08-26T12:10:05Z</dc:date>
    </item>
  </channel>
</rss>

