<?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: QVD's getting locked during Job Reloads in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734459#M56104</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/120886"&gt;@AnjaliRai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cool, yes, now we have to wait for the issue to happen again, and hopefully those scripts should help to pinpoint it!&lt;/P&gt;&lt;P&gt;Good Luck, I will be waiting for the outcome!&lt;/P&gt;</description>
    <pubDate>Mon, 10 Aug 2020 11:26:35 GMT</pubDate>
    <dc:creator>ArnadoSandoval</dc:creator>
    <dc:date>2020-08-10T11:26:35Z</dc:date>
    <item>
      <title>QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733361#M55980</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Hope can get&amp;nbsp; a help here!&lt;/P&gt;&lt;P&gt;We are facing an issue in Qlik Sense Platform where few of the jobs are failing as the QVD files are getting locked.&lt;BR /&gt;Few observations:&lt;BR /&gt;1. The jobs are failing with an error (Failed to open file in write mode). When checked from Server, the QVD files are opened in READ mode only, still job fails.&lt;BR /&gt;2. The jobs fails with an error (Sharing Violation) sometimes. When checked from server, the files are open in WRITE mode but no other app/tool is using the files. None of our apps write back to QVD's, only reads.&lt;BR /&gt;3. No other jobs are using those QVD files, hence cannot be in use/locked by other applications or any tool.&lt;BR /&gt;4. When 'Qlik Engine service' is restarted, jobs are re-triggered. The issue is fixed.&lt;BR /&gt;5. Antivirus exclusion is in place, as suggested by Qlik.&lt;/P&gt;&lt;P&gt;This issue is quite frequent with our platform now a days.&lt;/P&gt;&lt;P&gt;Work around: We kill the the locked file session from server and re-trigger the job again. Or, we need to restart the Qlik Engine service to release the locking.&lt;/P&gt;&lt;P&gt;Qlik Sense Version: April 2020-13.72.3&lt;/P&gt;&lt;P&gt;Please suggest !&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733361#M55980</guid>
      <dc:creator>AnjaliRai</dc:creator>
      <dc:date>2021-12-20T21:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733422#M55985</link>
      <description>&lt;P&gt;Maybe your storage / OS doesn't update the file-state always properly for example by having a heavy workload or if the storage isn't NTFS else any kind of NAS.&lt;/P&gt;&lt;P&gt;Another possibility are any system / third party tools/services which may access these files, like the windows shadow copies or similar.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 12:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733422#M55985</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-08-05T12:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733571#M56009</link>
      <description>&lt;P&gt;In addition to what Marcus said, I would also go get the Microsoft SysInternals tools, Process Monitor I believe is what you are going to want to check that file when things fail to see what process has the lock on it, as us opening in Read should not take an exclusive lock, so we need to find out what process is locking things.&amp;nbsp; One thing to check is something like Diskeeper, or other utilities that Marcus mentioned, may have added something new to the environment and that is doing things behind the scenes etc.&amp;nbsp; The Windows Event Viewer logs might have something to say too, System and Application I would think.&amp;nbsp; About the best I have to try to help you gather some further information that may help point to root cause.&amp;nbsp; Something has to be opening in write mode though which will keep us from reading, as I know in QlikView the same thing will happen, multiple reads from same file, no issue, but if something has the write lock, then reads will fail and vice versa.&amp;nbsp; Sorry I do not have something better but hopefully you can track down some further info.&amp;nbsp; The following article may help:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://support.qlik.com/articles/000039042" target="_blank"&gt;https://support.qlik.com/articles/000039042&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 20:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733571#M56009</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-08-05T20:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733656#M56017</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;Yes, we had a meeting with our Server Team and Backup Team to see in case any locking issue at that end. But, unfortunately , we could not captured anything running as such application/tool or something which we suspect might lock the files.&lt;/P&gt;&lt;P&gt;We ran Process monitor as well, but no luck. Nothing strange can be captured from any tools we ran as part of investigation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My suspect is - any possibility Qlik is locking the files as every time we restart the Engine service, the issue is resolved.&lt;/P&gt;&lt;P&gt;How we proceed to resolve the issue, any suggestion would be very helpful.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 07:09:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733656#M56017</guid>
      <dc:creator>AnjaliRai</dc:creator>
      <dc:date>2020-08-06T07:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733660#M56018</link>
      <description>&lt;P&gt;Hi Brett,&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Yes we looked into from that perspective as well as you have suggested. Even I am not able to figure out how files are locked in WRITE mode, as i am very sure none of applications open any QVD's in WRITE mode. They just READ QVD files while reloading.&lt;/P&gt;&lt;P&gt;To highlight, the job is failed but still the QVD file (which the job was using while running) can be seen open at server end in READ mode. When checked the log file, it says 'Cannot open file error' and hence failed.&lt;/P&gt;&lt;P&gt;We ran process monitor to check if any third party tool is locking but no luck. All folders are already excluded from Antivirus so we can rule out this option.&lt;/P&gt;&lt;P&gt;Kind of stuck not sure what can be exactly the root cause for the issue.&lt;/P&gt;&lt;P&gt;Please suggest!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 07:15:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733660#M56018</guid>
      <dc:creator>AnjaliRai</dc:creator>
      <dc:date>2020-08-06T07:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733716#M56024</link>
      <description>&lt;P&gt;Which kind of storage is in use? In the earlier days only NTFS storages were official supported - nowadays I don't know but I assume it hasn't changed. If NTFS&amp;nbsp; is in use it might be helpful to take a look on the changes within the NTFS metadata-journaling to find more about which and when any process has changed anything.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 11:32:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733716#M56024</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-08-06T11:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733722#M56025</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/120886"&gt;@AnjaliRai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will add my two cents contributions after reading the replies and your answers, with some comments and questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You wrote:&lt;/LI&gt;&lt;/UL&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;This issue is quite frequent with our platform now a days.&lt;/EM&gt; It seems the frequency of the issue is increasing as well as there was a time when the issue never happen, so, Is it possible for you to idenfity a precise starting date for the issue? if that is possible, then Is it possible to know what enhancements were added to the Qlik Environment (even server environment)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;EM&gt;We kill the the locked file session from server and re-trigger the job again.&lt;/EM&gt;&amp;nbsp; Does it work? it won't make much sense if it does, but it will help us to know what actually happen when killing-restarting the offending job.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;&lt;EM&gt;we need to restart the Qlik Engine service to release the locking.&lt;/EM&gt;&amp;nbsp;This is the most logical approach, but restarting the Qlik Engine service you are clearing any lock, 100% guarantee.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;STRONG&gt;Facts: &lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Those QVDs are updated at least once a day, in that case, some jobs wrote to them; &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Regarding your crashing (the one crashing due to the lock) applications; Do you know the offending locked QVD file triggering the crash? (by name, by example: Customer.qvd) Do you know all the QVDs they are reading; if you know all the read-only QVDs involved, you should also identify all the applications writing to them (most likely one application should be doing so).&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I suspect one of the applications &lt;STRONG&gt;writing&lt;/STRONG&gt; to these QVDs is crashing out, or entering a loop holding the QVD open; you should identify these applications and review their logic. (If you know the date when this issue started, and keep track of the Qlik Application changes -change log-, you may closely identify a culprit).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;How often are the affected applications crashing? once a day out of 10 daily runs, or all the time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Once you &lt;EM&gt;estart the Qlik Engine service&lt;/EM&gt; when the error happen again, the same day or the next day?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#000080"&gt;I had a similar issue about two years ago, our implementation had jobs running hourly, and some of them ran other jobs in a chain; the issue was related to two jobs compiting to write to the same QVD; We ended up implementing a sort of semaphore, &lt;/FONT&gt;but we need to understand your scenario better before findout the best course of action; right know we are trying to diagnostic the issue and understand your diagnosis as well.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps,&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 12:21:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733722#M56025</guid>
      <dc:creator>ArnadoSandoval</dc:creator>
      <dc:date>2020-08-06T12:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733772#M56028</link>
      <description>&lt;P&gt;I almost screwed you up there, in that I forgot this was Sense, I usually stay in the QlikView side for the most part, as I am not too good with the Sense side of things, at least not as good as I should be.&amp;nbsp; Only other thing of which I can think would be to be sure you have all the available patches applied for the release you are running, if you are missing any of those, would recommend applying to see if that may correct things.&amp;nbsp; I cannot recall if we had issues with QVD files getting stuck or not in Sense, apologies.&amp;nbsp; This also explains you having a hard time figuring out the file locks etc. too, sorry, my brain was stuck on how things work in QlikView, my bad.&amp;nbsp; I would suspect something is getting hung up in the Repository or something, and I honestly am not sure which log to even point you to as there are so many in Sense! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; If you have not opened a support case on this one, you may want to do that to see if the techs can maybe have a look at the logs to see if they can spot something there, or if they are aware of any issues in the release you are running.&amp;nbsp; Again, apologies I am not more help, I really need to get get up-to-speed on Sense one of these days, it is just hard to keep both Sense and View information straight, which is why I have not been able to as yet.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 14:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733772#M56028</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-08-06T14:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733982#M56048</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;&lt;P&gt;The storage in use is NTFS only. I had a chat with my backup and server team, they confirmed no recent changes were done from their end very recent. Though the issue we are facing is not daily, but happening all sudden ( can't say when it will happen next). Previously it started with apps related with only one stream but now, its happening for many apps present in other streams.&lt;/P&gt;&lt;P&gt;Just my observation: All the affected jobs loads data for countries ( like 20 countries or some), and the schedule is set as, based on one app success, the other runs, etc.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Anjali Rai&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 06:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733982#M56048</guid>
      <dc:creator>AnjaliRai</dc:creator>
      <dc:date>2020-08-07T06:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733985#M56049</link>
      <description>&lt;P&gt;I don't know how the server-reloads are implemented in Sense but in View each task runs an own instance of the qvb.exe. I assume in Sense it's quite similar. If really Qlik is locking the qvd's after the task has successfully finished those instances might be further active and this should be visible within the taskmanager.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 06:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733985#M56049</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-08-07T06:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733986#M56050</link>
      <description>&lt;P&gt;Hi Arnado,&lt;/P&gt;&lt;P&gt;Many thanks for detailed explanation. I have added my comments, hoe fully we can see if we can narrow down the issue to solve it! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This issue is quite frequent with our platform now a days. It seems the frequency of the issue is increasing as well as there was a time when the issue never happen, so, Is it possible for you to identify a precise starting date for the issue? if that is possible, then Is it possible to know what enhancements were added to the Qlik Environment (even server environment)&lt;BR /&gt;--Yes i remember, when we were in QS version 'Feb 2020', we never faced this issue ( but to add, we had very few apps that time in platform, we were in process of migration).&lt;BR /&gt;We upgraded in May , QS version to 'April 2020' and there it started, earlier it was happening only for one stream apps ( which loads data country wise)&lt;BR /&gt;but now, it started happening with many more apps ( they also load data country wise).&lt;/P&gt;&lt;P&gt;We kill the the locked file session from server and re-trigger the job again. Does it work? it won't make much sense if it does, but it will help us to know what actually happen when killing-restarting the offending job.&lt;BR /&gt;---Yes, wherever locking happens and job fails, we login to server to see who is accessing the file at that moment in real time scenario. It is always the Service account ( all jobs run via service account over server). All we do is close the session of lock file from server and rerun the failed job due to locking issue.&lt;BR /&gt;It resolves the issue but not very feasible option to do always.&lt;/P&gt;&lt;P&gt;we need to restart the Qlik Engine service to release the locking. This is the most logical approach, but restarting the Qlik Engine service you are clearing any lock, 100% guarantee.&lt;BR /&gt;-- Yes it helps but very difficult to do during business hours. Since many apps run via one node, and restarting the service will impact all jobs at one go, impacting business. So, we avoid this most of times.&lt;/P&gt;&lt;P&gt;Facts:&lt;/P&gt;&lt;P&gt;Those QVDs are updated at least once a day, in that case, some jobs wrote to them;&lt;BR /&gt;Regarding your crashing (the one crashing due to the lock) applications; Do you know the offending locked QVD file triggering the crash? (by name, by example: Customer.qvd) Do you know all the QVDs they are reading; if you know all the read-only QVDs involved, you should also identify all the applications writing to them (most likely one application should be doing so).&lt;BR /&gt;I suspect one of the applications writing to these QVDs is crashing out, or entering a loop holding the QVD open; you should identify these applications and review their logic. (If you know the date when this issue started, and keep track of the Qlik Application changes -change log-, you may closely identify a culprit).&lt;BR /&gt;--I will confirm this with developers once and will get back with more details.&lt;BR /&gt;All i know is yes one of them writes to QVD's and rest all apps just read the QVD's.&lt;/P&gt;&lt;P&gt;How often are the affected applications crashing? once a day out of 10 daily runs, or all the time.&lt;BR /&gt;-- It gets lock all sudden. Looking past records, in a week 3, 4 times happens.&lt;/P&gt;&lt;P&gt;Once you restart the Qlik Engine service when the error happen again, the same day or the next day?&lt;BR /&gt;--When we restart engine, all locking release, re trigger job succeeds. No, not exactly we have noticed after service refresh , any error happens. It happens all sudden, now happening then many be tomorrow or end of week. No pattern i could notice as of now.&lt;/P&gt;&lt;P&gt;I had a similar issue about two years ago, our implementation had jobs running hourly, and some of them ran other jobs in a chain; the issue was related to two jobs competing to write to the same QVD; We ended up implementing a sort of semaphore, but we need to understand your scenario better before find out the best course of action; right know we are trying to diagnostic the issue and understand your diagnosis as well.&lt;BR /&gt;--Can you guide me a bit for the 'Semaphore implementation' and how it helped in the issue?&lt;/P&gt;&lt;P&gt;Again thank you for helping me out . Please suggest!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anjali Rai&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 06:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733986#M56050</guid>
      <dc:creator>AnjaliRai</dc:creator>
      <dc:date>2020-08-07T06:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733988#M56052</link>
      <description>&lt;P&gt;Yes Markus, in Qlikview we can capture with the process id which job is running and accessing which files over server, but Sense, yes all different.&lt;/P&gt;&lt;P&gt;All we can capture in Task manager is : the qlik services and their resource consumption. No process id , no qvd.exe can be spotted for Sense.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 06:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733988#M56052</guid>
      <dc:creator>AnjaliRai</dc:creator>
      <dc:date>2020-08-07T06:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733990#M56053</link>
      <description>&lt;P&gt;Hi Brett,&lt;/P&gt;&lt;P&gt;Not at all, even I am new to Qlik Sense ( few months started working on here). I work on both Qlik View &amp;amp; Qlik Sense so yes can say concept differs. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have raised a case to Qlik but no response yet, so thought of taking suggestions and discussion on the community portal if i can get help.&lt;/P&gt;&lt;P&gt;Thankyou!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 06:59:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1733990#M56053</guid>
      <dc:creator>AnjaliRai</dc:creator>
      <dc:date>2020-08-07T06:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734262#M56079</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/120886"&gt;@AnjaliRai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your replies (to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/14114"&gt;@Brett_Bleess&lt;/a&gt;&amp;nbsp; as well), they help a lot at understanding your issue "&lt;EM&gt;QVD's getting locked during Job Reloads&lt;/EM&gt;"; I am familiar with locked QVDs from my previous job with a QlikSense server, a very elusive and hard to diagnostic issue, specially because QlikSense seems uncooperative telling us the offending job, BUT when a reload jobs find a locked QVD the process abort with an error and you can find out the offending job at the QMC interface (I found this behaviour in early 2018), which your replies&amp;nbsp; fail to reference, which lead me to rephrase your issue to: "Job Reloads hang with a never ending loop", never ending loops are a.k.a. "infinite loops"; these "infinite loops" main feature is that they do not trigger any error, and as they never end! the only way to stop run away jobs (another way to identify infinite loops) is by restarting '&lt;SPAN&gt;Qlik Engine service&lt;/SPAN&gt;'.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the re-definition of your issue: "Job Reloads hang with never ending loops", let's suggest some actions:&lt;/P&gt;&lt;P&gt;The first thing to be aware of is that "Any QlikSense load's and reload's jobs write to log files" they are located at the QMC server, and they have silly looking names;&amp;nbsp; this article&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/sense/June2019/Subsystems/PlanningQlikSenseDeployments/Content/Sense_Deployment/Server-Logging-New-Log-File-Format-Storage.htm#:~:text=The%20default%20log%20files%20are,also%20stored%20in%20another%20location." target="_blank" rel="noopener"&gt;Storage&lt;/A&gt;&amp;nbsp; (you need to find those log files, somewhere in the QMC server, the article suggest this folder:&amp;nbsp;&lt;FONT color="#993300"&gt;&lt;SPAN class="path"&gt;&lt;SPAN class="CommonComponentsPath_ProgramData"&gt;%ProgramData%\Qlik\Sense&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="path"&gt;&lt;SPAN class="CommonComponentsPath_Log"&gt;\Log&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#993300"&gt;&amp;nbsp;&lt;/FONT&gt;folder but I am aware that is not always the case; these topic&amp;nbsp;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/Physical-Location-of-QMC-Log-files/m-p/930110" target="_blank" rel="noopener"&gt;Physical Location of QMC Log files&lt;/A&gt;&amp;nbsp;also cover QMC Log files; the logs file looks like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QMC-LogFile-01.png" style="width: 886px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38736i60AA157FC1DCA5C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="QMC-LogFile-01.png" alt="QMC-LogFile-01.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;These log files silly looking names have three parts: (1) the application id, under the red line; the application id is shown by the QMC Apps, it is one of its columns (attribute); (2) the execution timestamp in UTC time - those times are not your local time, they are UTC time, keep that in mind when working with log files; I am in Australia, we have about a 10 hours difference with UTC time, for us, or at least for me, that is a silly looking time; (3) all log files end with &lt;STRONG&gt;.log&lt;/STRONG&gt;; &lt;STRONG&gt;NOTE: &lt;/STRONG&gt;QlikSense Desktop's log files have friendly names.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The log files are important because they will help us to pinpoint the culprit job falling into a &lt;EM&gt;never ending loop&lt;/EM&gt; (we suspect that at the moment).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If we open any of these log files, they look like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QMC-LogFile-02.png" style="width: 928px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38737i453D0307394D13A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="QMC-LogFile-02.png" alt="QMC-LogFile-02.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;They are the messages shown when we run the Load Script; any log file start with the message "Execution started." and they finish with the message "Execution finished." I do not expect the offending process being able to write the last message, as it is trapped by the "never ending loop".&lt;/P&gt;&lt;P&gt;You need to find the folder, in your QMC server containing these log files, they could be at the folder identified on my first link, but be prepared for them to be else where (One again, in 2018 our site has 4 Qlik Sense Server, e.g. 4 nodes, and one of the servers contained these logs files, it was not straight forward to find them, but as always&amp;nbsp; a DIR /S *.log is wonderful - I suggest using the old DIR /S *.log instead of File Explorer -FE is way too slow-).&lt;/P&gt;&lt;P&gt;Once you happily located the folder containing the log files, it is time to analyze them, in other words, let's search for error messages and perhaps log files missing the message "Execution finished."; you need these batch files to help with this tasks:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;findstr /M "Error:" *.log &amp;gt; C:\Temp\Script-Errors.log&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;STRONG&gt;findstr&lt;/STRONG&gt; &lt;/FONT&gt;is a Windows DOS command, it finds the text (&lt;FONT color="#993300"&gt;&lt;STRONG&gt;"Error:"&lt;/STRONG&gt;&lt;/FONT&gt;) inside the log files (&lt;STRONG&gt;&lt;FONT color="#993300"&gt;*.log&lt;/FONT&gt;&lt;/STRONG&gt;); the switch &lt;FONT color="#993300"&gt;&lt;STRONG&gt;/M&lt;/STRONG&gt;&lt;/FONT&gt; tells the command just to print the name of the file containing the text, we redirect its output to the folder &lt;FONT color="#000080"&gt;&lt;STRONG&gt;Script-Errors.log&lt;/STRONG&gt;&lt;/FONT&gt; (located at the &lt;FONT color="#000080"&gt;&lt;STRONG&gt;C:\Temp&lt;/STRONG&gt;&lt;/FONT&gt; folder) for easy analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I named the batch file:&amp;nbsp; &lt;FONT color="#000080"&gt;&lt;STRONG&gt;FindStrError.bat&lt;/STRONG&gt;&lt;/FONT&gt; and saved in the folder containing the script log files. The output file (&lt;FONT color="#000080"&gt;&lt;STRONG&gt;Script-Errors.log&lt;/STRONG&gt;&lt;/FONT&gt;) contains the name of any script process that ever generated an error since the last time the log folder was cleaned. (my advice to never clean the log file folders). If you open the log file, and scroll down to its end, you will find a more detailed error message, like the one shown below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QMC-LogFile-03.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38738iB3735D7D6F544ABC/image-size/large?v=v2&amp;amp;px=999" role="button" title="QMC-LogFile-03.png" alt="QMC-LogFile-03.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, earlier I wrote about script jobs running an infinite loop, may not generate any error, because they are busy looping around forever, never ending, never being able to write "Execution finished."; in the scenario we need a different batch file using the &lt;FONT color="#993300"&gt;&lt;STRONG&gt;find&lt;/STRONG&gt; &lt;/FONT&gt;command, as shown&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;C:\Windows\SysWOW64\find /c "Execution finished." *.log &amp;gt; C:\Temp\Script-Finished.log&lt;/LI-CODE&gt;&lt;P&gt;I had to fully qualify my &lt;FONT color="#993300"&gt;&lt;STRONG&gt;find&lt;/STRONG&gt; &lt;/FONT&gt;command with the folder &lt;FONT color="#993300"&gt;&lt;STRONG&gt;C:\Windows\SysWOW64\&lt;/STRONG&gt;&lt;/FONT&gt; because I likely installed multiple versions of this command on my laptop; the output file: &lt;FONT color="#000080"&gt;&lt;STRONG&gt;Script-Finished.log&lt;/STRONG&gt;&lt;/FONT&gt; looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QMC-LogFile-03-5.png" style="width: 740px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/38739i40C7B0B9AE3F2FA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="QMC-LogFile-03-5.png" alt="QMC-LogFile-03-5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The log files with a zero after their names are the ones missing the message "Execution finished."; I named the batch file "&lt;FONT color="#000080"&gt;&lt;STRONG&gt;FindFinished.bat&lt;/STRONG&gt;&lt;/FONT&gt;"; saved at the folder with the log files. You should run this batch file before killing/terminating '&lt;SPAN&gt;Qlik Engine service'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I do not know what happens after terminating the '&lt;SPAN&gt;Qlik Engine service' that is why I suggest to run the batch file before doing its termination, &lt;/SPAN&gt;&amp;nbsp;it will be also good to run it after the termination, remember to change its output file name, so you could compare the before and after termination event.&lt;/P&gt;&lt;P&gt;If you identify the script getting into an infinite loop, you should open its log file, scroll to its end and analyse what it is doing and why it is not finishing! If the script is retrieving data from a backend database, it could be possible that the "QlikSense script" is waiting for the database to release a lock, which is also possible, restarting the '&lt;SPAN&gt;Qlik Engine service' free Qlik from its wait but it will be an important clue if this is the case.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I hope my suggestions make sense and your team can use them to troubleshot your issue, please get back to this thread sharing their findings; issues like these are interesting challenges, understanding them are priceless.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this help,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 01:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734262#M56079</guid>
      <dc:creator>ArnadoSandoval</dc:creator>
      <dc:date>2020-08-08T01:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734263#M56080</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/120886"&gt;@AnjaliRai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My reply include two DOS batch scripts that should help you:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Script Jobs having errors.&lt;/LI&gt;&lt;LI&gt;Script Jobs never ending.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It covers two possibles reasons for your issue. The main task is finding the location of the log files in your QMC Server;&amp;nbsp; each script generates an output file that should be analyzed.&lt;/P&gt;&lt;P&gt;Please keep in mind I faced an issue like yours in 2018, and I do not have access to a QMC server at the moment to give you better advice.&lt;/P&gt;&lt;P&gt;hth&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 01:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734263#M56080</guid>
      <dc:creator>ArnadoSandoval</dc:creator>
      <dc:date>2020-08-08T01:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734283#M56085</link>
      <description>&lt;P&gt;I agree with &lt;A href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5298" target="_blank"&gt;Arnado&lt;/A&gt; that there should be some hints within the various log-files. You should take a look if all possible log-files are enabled and/or if their level of details could be increased. In addition to his suggestion to search for certain error/success-messages with the help of batch-files I recommend to load them (partly) into Qlik. And here I do mean nearly all log-files (script-log, task-logs, event-log, … and also the various OS logs) from all nodes. The idea behind it is to unify all timestamps and to make the chains of events visible over the time to find the pattern which caused the issue.&lt;/P&gt;&lt;P&gt;Of course it's quite a lot of work but in the mid- and long-term you will benefit from such a systematically approach. Further I think you don't need to develop everything from the scratch because AFAIK there exists already various governance tools/examples in regard to the log-files. This means with it you could see which Qlik / OS / third party tools tasks run when and how long did it take (min/max/avg time if it worked and if it failed). I assume there could be some interesting pattern to be found. Several years ago I did something similar with QlikView because of seemingly randomly failing tasks but nevertheless there were a pattern and I detected a clash between QlikView, the windows shadow copies and another backup-routine. You wrote that everything were checked that there isn't such clash possible but without a continuous monitoring any small issue might be easily overlooked.&lt;/P&gt;&lt;P&gt;In regard to my earlier suggestion of monitoring the accessing processes it should be possible to do it also with Sense. Even if Sense it handles a bit different as View and didn't use separate instances of the qvb.exe I assume that it are now separate threads/handles of the service account and should be visible with the process-monitor. For an advanced IT admin it shouldn't be too difficult to look at it. My other suggestions of monitoring the NTFS metadata is there probably much more expensive.&lt;/P&gt;&lt;P&gt;All the above is aimed to find the breaking-point when and where it failed with the assumption that finding this point hints very directly to the real cause. Nevertheless here a reverse approach (with some trial &amp;amp; error and searching within the documentation) to a reason which I could imagine as the causing issue: too many parallel tasks in combination with missing and/wrong set configurations. Depending on the number of nodes and the number of available cores Qlik could run n tasks in parallel and everything above will be queued. There are multiple settings in which this behaviour including various timeout-settings could be configured. My assumption is now that there is something not properly configured and/or that it caused some kind of conflict (you may call it a bug if it’s the case and don't returned a direct error-message) and the origin task won't be closed and remained open and locked therefore the qvd. Especially as you wrote that with the growing of the Qlik environment this failure increased points to a cause in that direction.&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Sat, 08 Aug 2020 09:41:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734283#M56085</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-08-08T09:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734427#M56101</link>
      <description>&lt;P&gt;Hi Arnado,&lt;/P&gt;&lt;P&gt;Again , thank you for the detailed analysis and explanation on the issue!&lt;BR /&gt;I will give a try to both the scripts if the issue happens next and will connect with you in any trouble. Hope that works.&lt;/P&gt;&lt;P&gt;Anjali&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 09:10:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734427#M56101</guid>
      <dc:creator>AnjaliRai</dc:creator>
      <dc:date>2020-08-10T09:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734459#M56104</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/120886"&gt;@AnjaliRai&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cool, yes, now we have to wait for the issue to happen again, and hopefully those scripts should help to pinpoint it!&lt;/P&gt;&lt;P&gt;Good Luck, I will be waiting for the outcome!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Aug 2020 11:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734459#M56104</guid>
      <dc:creator>ArnadoSandoval</dc:creator>
      <dc:date>2020-08-10T11:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734804#M56138</link>
      <description>&lt;P&gt;Hi Arnado,&lt;/P&gt;&lt;P&gt;Hope you are doing great!&lt;/P&gt;&lt;P&gt;We faced the issue again today with two of our jobs. I ran both the scripts before and after doing service restart and captured the needed details, as suggested by you.&lt;/P&gt;&lt;P&gt;Trying to attach the files here, but no success ( tried in almost every format supported here). May i send them over email, it that works.&lt;/P&gt;&lt;P&gt;Please help me going further with it if possible.Thanks again for all the help! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;--Anjali&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 12:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734804#M56138</guid>
      <dc:creator>AnjaliRai</dc:creator>
      <dc:date>2020-08-11T12:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: QVD's getting locked during Job Reloads</title>
      <link>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734930#M56148</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/5298"&gt;@ArnadoSandoval&lt;/a&gt;&amp;nbsp; Just shouting out, as not sure if you will see things otherwise, you guys could use private message feature potentially, but might be a size limit impacting things here, sadly I do not know what the attachment limit is in Community, but that is the only thing of which I can think.&amp;nbsp; Sorry I am not more help on this one, if you do see any particular messages in any of the logs, feel free to post those, I might be able to track something down on those potentially.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 11 Aug 2020 17:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/QVD-s-getting-locked-during-Job-Reloads/m-p/1734930#M56148</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2020-08-11T17:16:58Z</dc:date>
    </item>
  </channel>
</rss>

