<?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 QVD not updating with appended data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QVD-not-updating-with-appended-data/m-p/1762287#M591572</link>
    <description>&lt;P&gt;My script partially works. It's supposed to check if there is a new file and if there is, move it to the right External Data subfolder, update the QVD, open the new QVD and then move the used files to an OLD folder.&lt;/P&gt;&lt;P&gt;The files are moved to the right subfolder and I don't think the QVD is appended or the QVD isn't really being updated because the max TRX_DATE is not 11/10+ and I am not sure why.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;//SET vFileName = '..\..\1dho_uxp_ekm*.csv'; //local inc module&lt;BR /&gt;SET vFileName = '..\..\..\1dho_uxp_ekm*.csv'; //PROD inc module&lt;BR /&gt;LET vFileExists = ISNULL(FileSize('$(vFileName)'));&lt;BR /&gt;//LET vFileExists = NOT ISNULL(FileSize('$(vFileName)'));&lt;BR /&gt;LET FileDestination = '..\External_Data\';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//open existing QVD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Fired:&lt;BR /&gt;LOAD EXP,&lt;BR /&gt;FIRING_RECORD,&lt;BR /&gt;EXP &amp;amp; '-' &amp;amp; RULE as %KEY_DOMAIN_RULE, //join to Rule table&lt;BR /&gt;RULE,&lt;BR /&gt;ALERT_DT_TM,&lt;BR /&gt;date(TRX_DATE, 'MM/DD/YYYY') as TRX_DATE,&lt;BR /&gt;// date(MonthName(TRX_DATE),'MM-YY') as TRX_DATE_MMYY,&lt;BR /&gt;RULE &amp;amp; '-' &amp;amp; date(MonthName(TRX_DATE),'MM-YY') as %KEY_RULE_TRX_DATE,&lt;BR /&gt;TRX_TIME,&lt;BR /&gt;ALERT,&lt;BR /&gt;FACILITY,&lt;BR /&gt;POSITION,&lt;BR /&gt;NURSE_UNIT,&lt;BR /&gt;ENCNTR_PRSNL_RELTN,&lt;BR /&gt;ALERT_RECIPIENT&lt;BR /&gt;FROM&lt;BR /&gt;[..\QVD\01_Extract_QVD\Fired.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;where WildMatch(POSITION, '*PFS*')=0 ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Load Modules files&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;EKS_MODULE_AUDIT:&lt;BR /&gt;LOAD MODULE_NAME as RULE,&lt;BR /&gt;if (wildmatch(MAINT_VALIDATION,'*EXPIRED*','*TESTING*'),'Inactive','Active') as RULE_STATUS,&lt;BR /&gt;// MODULE_NAME &amp;amp; '-' &amp;amp; date(MonthName(ALERT_DT_TM),'MM-YY') as %KEY_RULE_TRX_DATE,&lt;BR /&gt;EVOKES,&lt;BR /&gt;PURPOSE,&lt;BR /&gt;EXPLANATION,&lt;BR /&gt;CITATION,&lt;BR /&gt;QUERY,&lt;BR /&gt;IMPACT,&lt;BR /&gt;UPDT_DT_TM,&lt;BR /&gt;MAINT_INSTITUTION,&lt;BR /&gt;MAINT_AUTHOR,&lt;BR /&gt;MAINT_SPECIALIST,&lt;BR /&gt;DOMAIN&lt;BR /&gt;FROM&lt;BR /&gt;[..\External_Data\1dho_uxp_ekm_modules_*.csv]&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;////New Incremental Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;//////check if source file exist&lt;/STRONG&gt;&lt;BR /&gt;////&lt;BR /&gt;if $(vFileExists)= 0 then&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//file exists so move files from main folder to External_Data folder&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;execute cmd.exe /c move /y "$(vFileName)" "$(FileDestination)";&lt;BR /&gt;//&lt;BR /&gt;&lt;STRONG&gt;//////load to previous data from QVD&lt;/STRONG&gt;&lt;BR /&gt;Concatenate (Fired)&lt;BR /&gt;LOAD EXP,&lt;BR /&gt;FIRING_RECORD,&lt;BR /&gt;EXP &amp;amp; '-' &amp;amp; MODULE_NAME as %KEY_DOMAIN_RULE, //join to Rule table&lt;BR /&gt;MODULE_NAME as RULE,&lt;BR /&gt;ALERT_DT_TM,&lt;BR /&gt;date(ALERT_DT_TM, 'MM/DD/YYYY') as TRX_DATE,&lt;BR /&gt;// date(MonthName(TRX_DATE),'MM-YY') as TRX_DATE_MMYY,&lt;BR /&gt;MODULE_NAME &amp;amp; '-' &amp;amp; date(MonthName(ALERT_DT_TM),'MM-YY') as %KEY_RULE_TRX_DATE,&lt;BR /&gt;time(ALERT_DT_TM, 'MM/DD/YYYY') as TRX_TIME,&lt;BR /&gt;ALERT_TEMPLATE as ALERT,&lt;BR /&gt;FACILITY,&lt;BR /&gt;POSITION,&lt;BR /&gt;NURSE_UNIT,&lt;BR /&gt;ENCNTR_PRSNL_RELTN,&lt;BR /&gt;ALERT_RECIPIENT&lt;BR /&gt;FROM&lt;BR /&gt;[..\External_Data\1dho_uxp_ekm_alert_audit_*.csv]&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;BR /&gt;where NOT EXISTS(FIRING_RECORD) and WildMatch(POSITION, '*PFS*')=0 ;&lt;BR /&gt;//[..\QVD\01_Extract_QVD\Fired.qvd](qvd)&lt;BR /&gt;// WHERE NOT EXISTS(FIRING_RECORD);&lt;/P&gt;&lt;P&gt;store Fired into ..\QVD\01_Extract_QVD\Fired.qvd (qvd);&lt;BR /&gt;//**/&lt;BR /&gt;//&lt;BR /&gt;ELSE&lt;/P&gt;&lt;P&gt;EKS_MODULE_AUDIT:&lt;BR /&gt;LOAD MODULE_NAME as RULE,&lt;BR /&gt;if (wildmatch(MAINT_VALIDATION,'*EXPIRED*','*TESTING*'),'Inactive','Active') as RULE_STATUS,&lt;BR /&gt;EVOKES,&lt;BR /&gt;PURPOSE,&lt;BR /&gt;EXPLANATION,&lt;BR /&gt;CITATION,&lt;BR /&gt;QUERY,&lt;BR /&gt;IMPACT,&lt;BR /&gt;UPDT_DT_TM,&lt;BR /&gt;MAINT_INSTITUTION,&lt;BR /&gt;MAINT_AUTHOR,&lt;BR /&gt;MAINT_SPECIALIST,&lt;BR /&gt;DOMAIN&lt;BR /&gt;FROM&lt;BR /&gt;[..\External_Data\1dho_uxp_ekm_modules_*.csv]&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;////CB Move files once loaded&lt;/STRONG&gt;&lt;BR /&gt;//&lt;/P&gt;&lt;P&gt;//&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;execute cmd.exe /c move /y "..\External_Data\1dho_uxp_ekm_alert*.csv" "..\External_Data\OLD\";&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MasterCalendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD date(left(TRX_DATE,10), 'MM/DD/YYYY') as TRX_DATE,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;date(MonthName(left(TRX_DATE,10)),'MM-YY') as TRX_DATE_MMYY,&lt;/P&gt;&lt;P&gt;date(TRX_DATE, 'MMM-YYYY') as MonthYear, //cb&lt;/P&gt;&lt;P&gt;Year(TRX_DATE) as Year,&lt;/P&gt;&lt;P&gt;Month(TRX_DATE) as Month,&lt;/P&gt;&lt;P&gt;WeekStart(TRX_DATE) as Week,&lt;BR /&gt;&lt;BR /&gt;Day(TRX_DATE) as Day;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT TRX_DATE&lt;/P&gt;&lt;P&gt;FROM ..\QVD\01_Extract_QVD\Fired.qvd (qvd);&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:37:17 GMT</pubDate>
    <dc:creator>cbaqir</dc:creator>
    <dc:date>2024-11-15T23:37:17Z</dc:date>
    <item>
      <title>QVD not updating with appended data</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-not-updating-with-appended-data/m-p/1762287#M591572</link>
      <description>&lt;P&gt;My script partially works. It's supposed to check if there is a new file and if there is, move it to the right External Data subfolder, update the QVD, open the new QVD and then move the used files to an OLD folder.&lt;/P&gt;&lt;P&gt;The files are moved to the right subfolder and I don't think the QVD is appended or the QVD isn't really being updated because the max TRX_DATE is not 11/10+ and I am not sure why.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;//SET vFileName = '..\..\1dho_uxp_ekm*.csv'; //local inc module&lt;BR /&gt;SET vFileName = '..\..\..\1dho_uxp_ekm*.csv'; //PROD inc module&lt;BR /&gt;LET vFileExists = ISNULL(FileSize('$(vFileName)'));&lt;BR /&gt;//LET vFileExists = NOT ISNULL(FileSize('$(vFileName)'));&lt;BR /&gt;LET FileDestination = '..\External_Data\';&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//open existing QVD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Fired:&lt;BR /&gt;LOAD EXP,&lt;BR /&gt;FIRING_RECORD,&lt;BR /&gt;EXP &amp;amp; '-' &amp;amp; RULE as %KEY_DOMAIN_RULE, //join to Rule table&lt;BR /&gt;RULE,&lt;BR /&gt;ALERT_DT_TM,&lt;BR /&gt;date(TRX_DATE, 'MM/DD/YYYY') as TRX_DATE,&lt;BR /&gt;// date(MonthName(TRX_DATE),'MM-YY') as TRX_DATE_MMYY,&lt;BR /&gt;RULE &amp;amp; '-' &amp;amp; date(MonthName(TRX_DATE),'MM-YY') as %KEY_RULE_TRX_DATE,&lt;BR /&gt;TRX_TIME,&lt;BR /&gt;ALERT,&lt;BR /&gt;FACILITY,&lt;BR /&gt;POSITION,&lt;BR /&gt;NURSE_UNIT,&lt;BR /&gt;ENCNTR_PRSNL_RELTN,&lt;BR /&gt;ALERT_RECIPIENT&lt;BR /&gt;FROM&lt;BR /&gt;[..\QVD\01_Extract_QVD\Fired.qvd]&lt;BR /&gt;(qvd)&lt;BR /&gt;where WildMatch(POSITION, '*PFS*')=0 ;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//Load Modules files&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;EKS_MODULE_AUDIT:&lt;BR /&gt;LOAD MODULE_NAME as RULE,&lt;BR /&gt;if (wildmatch(MAINT_VALIDATION,'*EXPIRED*','*TESTING*'),'Inactive','Active') as RULE_STATUS,&lt;BR /&gt;// MODULE_NAME &amp;amp; '-' &amp;amp; date(MonthName(ALERT_DT_TM),'MM-YY') as %KEY_RULE_TRX_DATE,&lt;BR /&gt;EVOKES,&lt;BR /&gt;PURPOSE,&lt;BR /&gt;EXPLANATION,&lt;BR /&gt;CITATION,&lt;BR /&gt;QUERY,&lt;BR /&gt;IMPACT,&lt;BR /&gt;UPDT_DT_TM,&lt;BR /&gt;MAINT_INSTITUTION,&lt;BR /&gt;MAINT_AUTHOR,&lt;BR /&gt;MAINT_SPECIALIST,&lt;BR /&gt;DOMAIN&lt;BR /&gt;FROM&lt;BR /&gt;[..\External_Data\1dho_uxp_ekm_modules_*.csv]&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;////New Incremental Load&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;//////check if source file exist&lt;/STRONG&gt;&lt;BR /&gt;////&lt;BR /&gt;if $(vFileExists)= 0 then&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//file exists so move files from main folder to External_Data folder&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;execute cmd.exe /c move /y "$(vFileName)" "$(FileDestination)";&lt;BR /&gt;//&lt;BR /&gt;&lt;STRONG&gt;//////load to previous data from QVD&lt;/STRONG&gt;&lt;BR /&gt;Concatenate (Fired)&lt;BR /&gt;LOAD EXP,&lt;BR /&gt;FIRING_RECORD,&lt;BR /&gt;EXP &amp;amp; '-' &amp;amp; MODULE_NAME as %KEY_DOMAIN_RULE, //join to Rule table&lt;BR /&gt;MODULE_NAME as RULE,&lt;BR /&gt;ALERT_DT_TM,&lt;BR /&gt;date(ALERT_DT_TM, 'MM/DD/YYYY') as TRX_DATE,&lt;BR /&gt;// date(MonthName(TRX_DATE),'MM-YY') as TRX_DATE_MMYY,&lt;BR /&gt;MODULE_NAME &amp;amp; '-' &amp;amp; date(MonthName(ALERT_DT_TM),'MM-YY') as %KEY_RULE_TRX_DATE,&lt;BR /&gt;time(ALERT_DT_TM, 'MM/DD/YYYY') as TRX_TIME,&lt;BR /&gt;ALERT_TEMPLATE as ALERT,&lt;BR /&gt;FACILITY,&lt;BR /&gt;POSITION,&lt;BR /&gt;NURSE_UNIT,&lt;BR /&gt;ENCNTR_PRSNL_RELTN,&lt;BR /&gt;ALERT_RECIPIENT&lt;BR /&gt;FROM&lt;BR /&gt;[..\External_Data\1dho_uxp_ekm_alert_audit_*.csv]&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq)&lt;BR /&gt;where NOT EXISTS(FIRING_RECORD) and WildMatch(POSITION, '*PFS*')=0 ;&lt;BR /&gt;//[..\QVD\01_Extract_QVD\Fired.qvd](qvd)&lt;BR /&gt;// WHERE NOT EXISTS(FIRING_RECORD);&lt;/P&gt;&lt;P&gt;store Fired into ..\QVD\01_Extract_QVD\Fired.qvd (qvd);&lt;BR /&gt;//**/&lt;BR /&gt;//&lt;BR /&gt;ELSE&lt;/P&gt;&lt;P&gt;EKS_MODULE_AUDIT:&lt;BR /&gt;LOAD MODULE_NAME as RULE,&lt;BR /&gt;if (wildmatch(MAINT_VALIDATION,'*EXPIRED*','*TESTING*'),'Inactive','Active') as RULE_STATUS,&lt;BR /&gt;EVOKES,&lt;BR /&gt;PURPOSE,&lt;BR /&gt;EXPLANATION,&lt;BR /&gt;CITATION,&lt;BR /&gt;QUERY,&lt;BR /&gt;IMPACT,&lt;BR /&gt;UPDT_DT_TM,&lt;BR /&gt;MAINT_INSTITUTION,&lt;BR /&gt;MAINT_AUTHOR,&lt;BR /&gt;MAINT_SPECIALIST,&lt;BR /&gt;DOMAIN&lt;BR /&gt;FROM&lt;BR /&gt;[..\External_Data\1dho_uxp_ekm_modules_*.csv]&lt;BR /&gt;(txt, codepage is 1252, embedded labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;////CB Move files once loaded&lt;/STRONG&gt;&lt;BR /&gt;//&lt;/P&gt;&lt;P&gt;//&lt;BR /&gt;end if&lt;/P&gt;&lt;P&gt;execute cmd.exe /c move /y "..\External_Data\1dho_uxp_ekm_alert*.csv" "..\External_Data\OLD\";&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MasterCalendar:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD date(left(TRX_DATE,10), 'MM/DD/YYYY') as TRX_DATE,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;date(MonthName(left(TRX_DATE,10)),'MM-YY') as TRX_DATE_MMYY,&lt;/P&gt;&lt;P&gt;date(TRX_DATE, 'MMM-YYYY') as MonthYear, //cb&lt;/P&gt;&lt;P&gt;Year(TRX_DATE) as Year,&lt;/P&gt;&lt;P&gt;Month(TRX_DATE) as Month,&lt;/P&gt;&lt;P&gt;WeekStart(TRX_DATE) as Week,&lt;BR /&gt;&lt;BR /&gt;Day(TRX_DATE) as Day;&lt;/P&gt;&lt;P&gt;LOAD DISTINCT TRX_DATE&lt;/P&gt;&lt;P&gt;FROM ..\QVD\01_Extract_QVD\Fired.qvd (qvd);&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-not-updating-with-appended-data/m-p/1762287#M591572</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2024-11-15T23:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: QVD not updating with appended data</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-not-updating-with-appended-data/m-p/1767033#M591574</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;Any idea?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2020 14:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-not-updating-with-appended-data/m-p/1767033#M591574</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2020-12-08T14:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: QVD not updating with appended data</title>
      <link>https://community.qlik.com/t5/QlikView/QVD-not-updating-with-appended-data/m-p/1768982#M591575</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am Joseph Musekura (Talk to Experts Tuesday ).&lt;BR /&gt;From your explanation during the session, I think that we should do more investigations.&lt;/P&gt;&lt;P&gt;Can you please run the qvw again and collect the scripts (after scrambling the data if required) ?&lt;BR /&gt;In addition to the scripts, attach the related QVD&amp;nbsp; and the used Qlikview version(EX 12.30.20300).&lt;BR /&gt;Is it possible for you to submit this case to Qlik Support?.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;note:&lt;BR /&gt;you can scramble the data before generating the QVD.&lt;BR /&gt;/joseph&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 13:36:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QVD-not-updating-with-appended-data/m-p/1768982#M591575</guid>
      <dc:creator>Joseph_Musekura</dc:creator>
      <dc:date>2020-12-16T13:36:13Z</dc:date>
    </item>
  </channel>
</rss>

