<?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: Conflict over files being used by other scripts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696525#M1262678</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a bit confused as to what's happening here.&amp;nbsp; Are you attempting to load the TaskExecutionHistory files into a QVW or QVD, or are you getting that error on a write function?&amp;nbsp; I ask because I'm pretty sure QV writes to that file after a reload, and if that's when you're seeing the error it's probably a bug.&amp;nbsp; If this is the case, what is the size of that file at the time of the error (I'm thinking 0KB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, on the other hand, you're getting this error during a read of that file it could very well be cause by conflicts from other load scripts.&amp;nbsp; In general, QV will lock a file that it's reading from in order to prevent any edits during the read process.&amp;nbsp; So, if another script is trying to read from the same file at the same time you're bound to get errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Aug 2014 12:33:24 GMT</pubDate>
    <dc:creator>Chris_Rice</dc:creator>
    <dc:date>2014-08-01T12:33:24Z</dc:date>
    <item>
      <title>Conflict over files being used by other scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696524#M1262674</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 am a pretty new administrator/developer on QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lately I've been getting notifications that a script is failing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The document log says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: The process cannot access the file because it is being used by another process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The task log says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: The source document was NOT reloaded successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file referenced in the document log is various TaskExecutionHistory files (almost different one for each fail). So it seems my failing script has some conflict over these files that is being written to from other scripts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Is this somewhat "expected" to happen when one has many applications and tasks running?&lt;/P&gt;&lt;P&gt;2. Would it be possible to modify the script (the failing one) to read the files in question although it is being used by another process?&lt;/P&gt;&lt;P&gt;3. Possible to modify the script to not fail if the file is in use? But instead continue? If possible, is it a bad idea?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate all your input. &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/Conflict-over-files-being-used-by-other-scripts/m-p/696524#M1262674</guid>
      <dc:creator />
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict over files being used by other scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696525#M1262678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a bit confused as to what's happening here.&amp;nbsp; Are you attempting to load the TaskExecutionHistory files into a QVW or QVD, or are you getting that error on a write function?&amp;nbsp; I ask because I'm pretty sure QV writes to that file after a reload, and if that's when you're seeing the error it's probably a bug.&amp;nbsp; If this is the case, what is the size of that file at the time of the error (I'm thinking 0KB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, on the other hand, you're getting this error during a read of that file it could very well be cause by conflicts from other load scripts.&amp;nbsp; In general, QV will lock a file that it's reading from in order to prevent any edits during the read process.&amp;nbsp; So, if another script is trying to read from the same file at the same time you're bound to get errors.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 12:33:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696525#M1262678</guid>
      <dc:creator>Chris_Rice</dc:creator>
      <dc:date>2014-08-01T12:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict over files being used by other scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696526#M1262680</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;If you are trying to read and write to QVS's at the same time this will happen. Also, if you are running antivirus that does real time scan this will also lock the files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2014 19:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696526#M1262680</guid>
      <dc:creator>Bill_Britt</dc:creator>
      <dc:date>2014-08-01T19:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict over files being used by other scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696527#M1262683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply and apologies for my unclear explanation of the problem.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;Are you attempting to load the TaskExecutionHistory files into a QVW or QVD, or are you getting that error on a write function?&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, I am loading the TaskExecutionHistory files into a QVW. So once in a while I get an error with the message that "it is being used by another process". &lt;/P&gt;&lt;P&gt;I checked the Task ID, and there are various other applications that seems to "use" the TaskExecutionHistory files when I do get the error. So I'm wondering if I am just unlucky at times and that two scripts are trying to access the same file (taskExecutionHistory) at the same time? &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;
&lt;P&gt;Chris Rice wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If, on the other hand, you're getting this error during a read of that file it could very well be cause by conflicts from other load scripts.&amp;nbsp; In general, QV will lock a file that it's reading from in order to prevent any edits during the read process.&amp;nbsp; So, if another script is trying to read from the same file at the same time you're bound to get errors.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes I think this is what I'm getting at, if this is what could be happening. If I understand the TaskExecutionHistory files, they are being written to every time a task on the publisher runs? If so, I suppose there is a great chance that I'll be having a conflict over these files if I in addition have a script that loads these files into a QVW? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 05:55:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696527#M1262683</guid>
      <dc:creator />
      <dc:date>2014-08-04T05:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict over files being used by other scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696528#M1262685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bill, I will check if we are running Antivirus. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 05:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696528#M1262685</guid>
      <dc:creator />
      <dc:date>2014-08-04T05:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict over files being used by other scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696529#M1262687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that's correct.&amp;nbsp; Be sure to check the Anti-Virus as well like Bill said as that has been known to also cause problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2014 12:04:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696529#M1262687</guid>
      <dc:creator>Chris_Rice</dc:creator>
      <dc:date>2014-08-04T12:04:41Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict over files being used by other scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696530#M1262688</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 Still say try to split task and schedule dependent task i.e one after another in order to avoid file locking by Qlik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 08:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696530#M1262688</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-08-05T08:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict over files being used by other scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696531#M1262690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Appreciate your input. I need to look further into if this can be a solution, but it is difficult to do this due to the amount of tasks running on the server. We also already have large amounts of dependent tasks, so restructuring them all would increase the complexity of the already nested tasks. In addition, it would also cause a large number of applications to not update if/when another task fails, which would not be a good solution in regards to having updated data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 09:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696531#M1262690</guid>
      <dc:creator />
      <dc:date>2014-08-05T09:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict over files being used by other scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696532#M1262692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a antivirus program but it does not scan the folder in question. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 12:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696532#M1262692</guid>
      <dc:creator />
      <dc:date>2014-08-05T12:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Conflict over files being used by other scripts</title>
      <link>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696533#M1262694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please clarify what you are referring to as "correct"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And do you know if there is a workaround this issue? (script reload fails because file is being used by another process)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Ref my questions 2 and 3 in the original post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 12:25:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conflict-over-files-being-used-by-other-scripts/m-p/696533#M1262694</guid>
      <dc:creator />
      <dc:date>2014-08-05T12:25:10Z</dc:date>
    </item>
  </channel>
</rss>

