<?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 concatenation drops data sometimes in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096141#M364136</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm actually not looking at the max date time, or enforcing any rule while concatenating. And the issue isn't similar, sometimes it will drop 20 days or 10 days of data. This time for example, the size of the historical QVD dropped from 400MB to 370MB, so it dropped 30MB of data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, the DB query takes a "snapshot" of the DB table every hour, and I use reloadtime() to generate the timestamp/date to tag the snapshot. It then contenates that snapshot with the historical snapshots. So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On 11 Jan 8am, the fields will be 8:00:00 11 Jan, field1, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;2, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;3&lt;/P&gt;&lt;P&gt;On 11 Jan 9am, the fields will be 9:00:00 11 Jan, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;1, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;2, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;3&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;On 11 Jan 10am, the fields will be 10:00:00 11 Jan, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Now when I look at the historical QVD, I can see a larger set of data showing all data relating to 8am, 9am, 10am, etc. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;So I don't use max date or anything like that. Just a blunt concatenate. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2016 10:45:13 GMT</pubDate>
    <dc:creator>sifatnabil</dc:creator>
    <dc:date>2016-02-11T10:45:13Z</dc:date>
    <item>
      <title>QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096136#M364131</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 a batch file which loads a qvw, which queries a DB and concatenates the result to a QVD every hour, and then replaces the original QVD. This works fine most of the time, but occasionally (every few weeks), the task drops data and concatenates the latest load with the QVD as it looked 1 month ago, which means data from 1 month ago to today is missing from the full QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example, today (11 Feb 8 am) the batch file ran and concatenated the result with the QVD but from 11 Jan, instead of 11 Feb 7am - so now the date field sequence on the QVD is 11 Jan, 11 Feb, and the dates in between are missing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that this task has been running since 2014 and so it's grown to over 400MB. Could this be why? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:05:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096136#M364131</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-02-11T10:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096137#M364132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you holding a copy of each hourly created QVD and decide with some logic which historic QVD to load?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or are you using any other time based logic in your script (in short, please post your script)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:09:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096137#M364132</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-11T10:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096138#M364133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, the entire task generates only 1 QVD which keeps growing in size due to hourly concatenations to itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the simplified algo, which runs hourly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If exists historicalQVD, then &lt;/P&gt;&lt;P&gt;load historical QVD&lt;/P&gt;&lt;P&gt;else [query DB];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[query DB];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store full result as historicalQVD;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:18:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096138#M364133</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-02-11T10:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096139#M364134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume this is an incremental approach, so you are looking for the max datetime in the historicalQVD, then filter the query DB to only fetch datetime &amp;gt; max QVD datetime, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the issue always similar, like exactely one month is missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you tracing that max found QVD date time to logfile?&lt;/P&gt;&lt;P&gt;Or do you know rows written to QVD vs. rows read in the subsequent run?&lt;/P&gt;&lt;P&gt;Any more specific observations?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096139#M364134</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-11T10:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096140#M364135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sifat,&lt;/P&gt;&lt;P&gt;I don't have a definite answer, but a few of pointers that may help:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There is no maximum size for a QVD, 400mb is relatively small, I'm working with QVDs of &amp;gt;15gb with no issues.&lt;/LI&gt;&lt;LI&gt;The QVD is locked while reading and writing&lt;/LI&gt;&lt;LI&gt;The STORE process in itself will not drop or truncate fields.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My hunch would be that there is something in your script logic that is causing you to lose records.&amp;nbsp; It may take a bit of forensic analysis to find out what it is though.&amp;nbsp; If you want to post more of your script here, then I'd be happy to take a look and help further.&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096140#M364135</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2016-02-11T10:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096141#M364136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm actually not looking at the max date time, or enforcing any rule while concatenating. And the issue isn't similar, sometimes it will drop 20 days or 10 days of data. This time for example, the size of the historical QVD dropped from 400MB to 370MB, so it dropped 30MB of data.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, the DB query takes a "snapshot" of the DB table every hour, and I use reloadtime() to generate the timestamp/date to tag the snapshot. It then contenates that snapshot with the historical snapshots. So:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On 11 Jan 8am, the fields will be 8:00:00 11 Jan, field1, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;2, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;3&lt;/P&gt;&lt;P&gt;On 11 Jan 9am, the fields will be 9:00:00 11 Jan, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;1, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;2, &lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;3&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;On 11 Jan 10am, the fields will be 10:00:00 11 Jan, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;1, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;2, &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;field&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Now when I look at the historical QVD, I can see a larger set of data showing all data relating to 8am, 9am, 10am, etc. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;So I don't use max date or anything like that. Just a blunt concatenate. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096141#M364136</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-02-11T10:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096142#M364137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the load script ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096142#M364137</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T10:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096143#M364138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/15823"&gt;swuehl&lt;/A&gt;‌ &lt;/P&gt;&lt;P&gt;Here's the actual script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let ReloadTime = now();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If qvdcreatetime('QVDs\LoginPoll.qvd') Then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USLogin:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM [QVDs\LoginPoll.qvd] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USLogin:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'$(ReloadTime)' as ReloadTime&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;from DB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(USLogin)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;USLogin:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;*,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;'$(ReloadTime)' as ReloadTime&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;from DB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store [USLogin] as [QVDs\LoginPoll.qvd] (qvd);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:52:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096143#M364138</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-02-11T10:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096144#M364139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I don't have any specific idea then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you think that size may matter, does your machine hit the limits when you reload? Which version&amp;nbsp; of QV, OS and amount of RAM are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To trace down the issue, could you add some TRACES to e.g. log the last timestamp of the historic QVD when read in (using Peek() ), to see if the issue arise from reading the QVD or concatenating the new data?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:54:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096144#M364139</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-11T10:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096145#M364140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see..actually I noticed that on Task Scheduler on the server (Windows 2012 R2), during the load, the CPU goes up to 100% momentarily while loading/writing the QVD, which is around 17 million rows now. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096145#M364140</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-02-11T10:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096146#M364141</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 think this will take a little trouble shooting the find the problem. You noticed anything that could connect the the times when the load has not completed incorrectly? I,.e. times,dates, week day?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i was troubleshooting this i would probably start, by keeping the query data as well a the full snap shot, This way we can look at the query qvd, when the issue occurs and see why it isn't concatenating with the full qvd data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 10:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096146#M364141</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2016-02-11T10:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096147#M364142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sifat,&lt;/P&gt;&lt;P&gt;Sorry my replies are coming in an unusual order, but all my posts are being moderated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, a couple of things here.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;reloadtime(), when used in the script, is going to tag your snapshot with the previous time your script ran.&amp;nbsp; So your snapshots are possibly being tagged incorrectly.&lt;/LI&gt;&lt;LI&gt;So when your DB takes a 'snapshot', is it only the records since you last ran the query, or is it all records?&lt;/LI&gt;&lt;LI&gt;What are you doing with your 'tagged' snapshots?&amp;nbsp; Are these views in a datawarehouse, or are the stored QVDs in a file?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It doesn't actually sound as if you are doing a 'concatenate' as understood in Qlik terms, it sounds as if you are doing a flush and reload, ie, getting all records from the DB and replacing your QVD with the new records.&amp;nbsp; If that is the case, then my strong suspicion would be that the issue is with the SQL code that is being run to pull back the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 11:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096147#M364142</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2016-02-11T11:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096148#M364143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As an aside for each reload run you could create a seperate QVD with its name suffixed by reload DateTime and not do the concatenate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your dashboard qvw do a wildcard QVD load or load them using a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will make your reload a load quicker re the QVD Load &amp;amp; Store, and could well make your diagnostics of whatever the underlying issue is easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 11:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096148#M364143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-11T11:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096149#M364144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure this is your actual script? Or did you translate/modify some parts into pseudo-code before you posted it in this thread?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, here are some minor items you may want to reflect upon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD ... from DB;&lt;/SPAN&gt; tries to read from a QVD called DB. That's because option &lt;SPAN style="font-family: 'courier new', courier;"&gt;(qvd)&lt;/SPAN&gt; is the default when none is specified explicitly, and the &lt;SPAN style="font-family: 'courier new', courier;"&gt;FROM&lt;/SPAN&gt; clause always reads from a file.&lt;/LI&gt;&lt;LI&gt;If the LoginPoll.qvd file doesn't exist yet, you create it with &lt;EM&gt;double data from file DB&lt;/EM&gt;; once inside the IF-THEN-ELSE and once during the concatenate.&lt;/LI&gt;&lt;LI&gt;The&lt;SPAN style="font-family: 'courier new', courier;"&gt; STORE&lt;/SPAN&gt; statement doesn't allow for an &lt;SPAN style="font-family: 'courier new', courier;"&gt;AS&lt;/SPAN&gt; clause except when renaming individual fields. Which is not the case here. I guess it should be&lt;SPAN style="font-family: 'courier new', courier;"&gt; INTO&lt;/SPAN&gt; instead of &lt;SPAN style="font-family: 'courier new', courier;"&gt;AS&lt;/SPAN&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 11:31:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096149#M364144</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2016-02-11T11:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096150#M364145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/19926"&gt;gsbeaton&lt;/A&gt; To give context, the DB table is a constantly refreshing table of users logged in at at any point in time. If a user logs out, the user is dropped from the table. So when I take snapshots, I query the entire table, and I get a view of who was logged in at that hour. By concatenating these snapshots with each other, I get a growing QVD of users logged in each hour, 24 hours a day. Note that I'm running this as a service from Windows Task Scheduler via a batch file reload. Also, I'm not using ReloadTime(), I'm actually using &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;let ReloadTime = now();&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tagged snapshots are being concatenated with each other into 1 large QVD file. That 1 large QVD file is LoginPoll.qvd that you see in the pseudo-script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;let ReloadTime = now();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If qvdcreatetime('QVDs\LoginPoll.qvd') Then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;USLogin:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [QVDs\LoginPoll.qvd] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;else&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;USLogin:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;'$(ReloadTime)' as ReloadTime&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from DB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;end if&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Concatenate(USLogin)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;USLogin:&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*,&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;'$(ReloadTime)' as ReloadTime&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;from DB;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;store [USLogin] &lt;SPAN style="text-decoration: line-through;"&gt;as&lt;/SPAN&gt; into [QVDs\LoginPoll.qvd] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have a better alternative to tagging the time? As the table doesn't actually have a timestamp field. Is there a better alternative to&lt;STRONG&gt; &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;let ReloadTime = now();&lt;/STRONG&gt; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that might be the issue. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 13:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096150#M364145</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-02-11T13:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096151#M364146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Default timer mode for now() should 1, i.e. function call. But you can make it explicite to be sure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let ReloadTime = Now(1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 13:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096151#M364146</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-02-11T13:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096152#M364147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are nearly there.&amp;nbsp; Your pseudo code infers a couple of logic issues, but it may be ok.&amp;nbsp; Just to be clear though, here are the steps that I think you should be taking:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Always load your LoginPoll QVD, no need for an IF() around that, you will need it every time, except for the very first time you ever ran the script (which sounds like it was a few years ago).&amp;nbsp; If the QVD is not there, you have bigger problems.&lt;/LI&gt;&lt;LI&gt;Put a timestamp in the filenames of all of your snapshots, so they are something like snapshot-2016021114.csv (YYYYMMDDHH)&lt;/LI&gt;&lt;LI&gt;Use the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;qvdcreatetime() function to get the time the QVD was last updated, then store that in a variable.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Use the timestamp from your variable created in step 2 here as a parameter to load the correct snapshots.&amp;nbsp; Personally I would do this by creating an array of times which you can then loop through in the next step.&amp;nbsp; When I say array, I mean a parametarised string, eg &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2016021110; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2016021111; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2016021112; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2016021113;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Load all of your files in from step 4.&amp;nbsp; So long as they have the same column names as your QVD from step 1, they will automatically concatenate.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Store your table and drop from memory.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="font-size: 13px; line-height: 1.5em;"&gt;Another approach would be to use Qlik's wildcard feature to load all the snapshots in the folder, then delete or move them once &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; line-height: 19.5px;"&gt;successfully&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; line-height: 1.5em;"&gt; loaded.&amp;nbsp;&amp;nbsp; Both can be done from within QlikView.&amp;nbsp; There's would be a lot less to go wrong with that approach.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope that helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;George&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 14:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096152#M364147</guid>
      <dc:creator>gsbeaton</dc:creator>
      <dc:date>2016-02-11T14:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: QVD concatenation drops data sometimes</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096153#M364148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - I'll give this a go. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2016 14:58:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-concatenation-drops-data-sometimes/m-p/1096153#M364148</guid>
      <dc:creator>sifatnabil</dc:creator>
      <dc:date>2016-02-11T14:58:24Z</dc:date>
    </item>
  </channel>
</rss>

