<?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 batch mode - error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289259#M1277880</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That’s an interesting one as there is a line saying&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:49&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; TheSource Document reload complete. DocumentPath=D:\test.qvw&lt;/P&gt;&lt;P&gt;You say Manual reload works ok, is this when you run the reload from theDeveloper application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is likely to be something in the script or security.&lt;/P&gt;&lt;P&gt;When you open the document in the developer, goto the settings menu,document properties and tick the Generate Logfile option.&lt;/P&gt;&lt;P&gt;Re-run the batch job and have a look at the D:\test.qvw.log file that hasbeen created, it should show which part of the script has failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively it could be security, does the batch command use your usernameor is there a QlikView Service username that has been created? it could be thatthe username doesn’t have permission to open the database/file if one is beingused.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Feb 2012 15:32:07 GMT</pubDate>
    <dc:creator>peter_turner</dc:creator>
    <dc:date>2012-02-16T15:32:07Z</dc:date>
    <item>
      <title>batch mode - error</title>
      <link>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289258#M1277878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an error using batch mode to reload a document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to run this command:&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;C:\Program Files\QlikView\Distribution Service\QVDistributionService.exe -r=D:\test.qvw&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And have this output log:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;16/02/2012 11:23:43&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Setting RunLevel to Batch&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:43&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Allocating QlikView Engine&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:43&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Allocating new QlikView Engine. Current usagecount=1 of 1&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:43&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; An instance of the QlikView Engine is being created&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:43&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Starting QlikView Engine&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:43&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Allocated QlikView Engine successfully. Current usagecount=1 of 1, Ticket=1&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:43&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Loading document "D:\test.qvw" (3.52 Mb)&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:44&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Loading. LoadTime=00:00:01.0139935&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:46&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Loading. LoadTime=00:00:03.0419805&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:47&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Physical FileSize=3.52 Mb. Memory Allocation Delta for this file=27.16 Mb. Available Physical Memory Before Open=2122.70 Mb. Available Physical Memory After Open=2104.04 Mb. Total Physical Memory=3895.07 Mb.&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:47&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; The document was loaded successfully.&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:47&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Initializing Checkout (0), Loading document (546), Initializing load (561), Checking read (561), Creating QlikView Engine (561), Checking Size (593), Load (2621), Load Completed (2964), Tables read (4165), Opened successfully (4227)&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:47&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Document was opened successfully&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:47&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Opened successfully (0)&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:47&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; QlikView-&amp;gt;Settings-&amp;gt;Document Peferences-&amp;gt;Generate Logfile in document is not set.&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:49&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; The Source Document is being reloaded. DocumentPath=D:\test.qvw&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:49&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; The Source Document reload complete. DocumentPath=D:\test.qvw&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:49&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Memory Allocation Delta for this file=-10.55 Mb. Available Physical Memory Before Reload=2103.84 Mb. Available Physical Memory After Reload=2108.02 Mb. Total Physical Memory=2108.02 Mb.&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:50&amp;nbsp;&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp;&amp;nbsp; The Source Document was NOT reloaded successfully. DocumentPath=D:\test.qvw. &lt;/P&gt;&lt;P&gt;16/02/2012 11:23:50&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Initializing Reload (0), Finished (2589)&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:50&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Closing the document.&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:50&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Closed the QlikView Engine successfully. ProcessID=1908&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:50&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Initializing (0), Finished (328)&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:50&amp;nbsp;&amp;nbsp;&amp;nbsp; Error&amp;nbsp;&amp;nbsp;&amp;nbsp; The Batch Job failed. ErrorCount=1&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:50&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; Setting exit code to the number of errors. ErrorCount=2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with an easier document and the command runs normally. Manual reload works very well too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&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/batch-mode-error/m-p/289258#M1277878</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>batch mode - error</title>
      <link>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289259#M1277880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That’s an interesting one as there is a line saying&lt;/P&gt;&lt;P&gt;16/02/2012 11:23:49&amp;nbsp;&amp;nbsp;&amp;nbsp; Information&amp;nbsp;&amp;nbsp;&amp;nbsp; TheSource Document reload complete. DocumentPath=D:\test.qvw&lt;/P&gt;&lt;P&gt;You say Manual reload works ok, is this when you run the reload from theDeveloper application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is likely to be something in the script or security.&lt;/P&gt;&lt;P&gt;When you open the document in the developer, goto the settings menu,document properties and tick the Generate Logfile option.&lt;/P&gt;&lt;P&gt;Re-run the batch job and have a look at the D:\test.qvw.log file that hasbeen created, it should show which part of the script has failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively it could be security, does the batch command use your usernameor is there a QlikView Service username that has been created? it could be thatthe username doesn’t have permission to open the database/file if one is beingused.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 15:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289259#M1277880</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2012-02-16T15:32:07Z</dc:date>
    </item>
    <item>
      <title>batch mode - error</title>
      <link>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289260#M1277882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Done &amp;amp; fixed! It was a problem of permissions to the DB &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 15:56:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289260#M1277882</guid>
      <dc:creator />
      <dc:date>2012-02-16T15:56:03Z</dc:date>
    </item>
    <item>
      <title>batch mode - error</title>
      <link>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289261#M1277884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;...now the problem is: I can set a variable and its value from command line. How can I invoke this variable into the script??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 16:01:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289261#M1277884</guid>
      <dc:creator />
      <dc:date>2012-02-16T16:01:41Z</dc:date>
    </item>
    <item>
      <title>batch mode - error</title>
      <link>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289262#M1277886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure how you would pass a variable with the command line&lt;/P&gt;&lt;P&gt;BUT you could use the include() statement in your script to load a section of qlikview script code directly from a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;$(Include=abc.txt);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;where you edit the abc.txt as needed and it could say&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;let my_var=123;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 16:55:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289262#M1277886</guid>
      <dc:creator>peter_turner</dc:creator>
      <dc:date>2012-02-16T16:55:45Z</dc:date>
    </item>
    <item>
      <title>batch mode - error</title>
      <link>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289263#M1277888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using this command line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;C:\Program Files\QlikView\Distribution Service\QVDistributionService.exe -r=D:\test.qvw&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and am adding just a parameter per variable, as I've read the guide.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;C:\Program Files\QlikView\Distribution Service\QVDistributionService.exe -r=D:\test.qvw -vTest=2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is to integrate a web application with qv document in server environment. The web application is a PHP CMS and I can use exec function to call the command line and send the first filter to qv document. The document will be (partial) reloaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think I can use files in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2012 17:03:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/batch-mode-error/m-p/289263#M1277888</guid>
      <dc:creator />
      <dc:date>2012-02-16T17:03:30Z</dc:date>
    </item>
  </channel>
</rss>

