<?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 Check for existence of QVD in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Check-for-existence-of-QVD/m-p/1704248#M53988</link>
    <description>&lt;P&gt;I have seen similar posts and I have tried the solutions.&amp;nbsp; Nothing is working.&amp;nbsp; Seems like it should be simple enough.&lt;/P&gt;&lt;P&gt;No matter what method I have used...qvdcreatetime, qvdfilesize...They always return null.&amp;nbsp; The file exists.&amp;nbsp; The path is correct.&amp;nbsp; The capitalization is correct.&amp;nbsp; I don't know what is going wrong with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET vFileName = 'F:\FMCustom\01_Staging\QVD\Oracle\ItemOnhandQtyDetail_HIST.QVD';&lt;/P&gt;&lt;P&gt;//If the snapshot table exists, load it for the last 3 years and append the new snapshot.&lt;/P&gt;&lt;P&gt;IF (NOT isNull(qvdCreateTime($(vFileName)))) THEN&lt;/P&gt;&lt;P&gt;ItemOnhandQtyDetail_HIST:&lt;BR /&gt;LOAD&lt;BR /&gt;DISTINCT&lt;BR /&gt;*&lt;BR /&gt;FROM [lib://FM Staging/QVD/Oracle/ItemOnhandQtyDetail_HIST.QVD](qvd)&lt;BR /&gt;Where&lt;BR /&gt;Year(dateLoaded) &amp;gt;= Year(Today())-2&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Append todays data to the HIST table.&lt;/P&gt;&lt;P&gt;Concatenate(ItemOnhandQtyDetail_HIST)&lt;BR /&gt;LOAD&lt;BR /&gt;itemKey,&lt;BR /&gt;organizationId,&lt;BR /&gt;inventoryItemId,&lt;BR /&gt;subinventoryCode,&lt;BR /&gt;primaryTransactionQty,&lt;BR /&gt;locatorId,&lt;BR /&gt;dateLoaded&lt;BR /&gt;FROM [lib://FM Staging/QVD/Oracle/ItemOnhandQtyDetail.QVD](qvd);&lt;/P&gt;&lt;P&gt;ELSE&lt;BR /&gt;//Snapshot Table does not exist yet. Load it from the current data load.&lt;/P&gt;&lt;P&gt;ItemOnhandQtyDetail_HIST:&lt;BR /&gt;LOAD&lt;BR /&gt;*&lt;BR /&gt;FROM [lib://FM Staging/QVD/Oracle/ItemOnhandQtyDetail.QVD](qvd);&lt;BR /&gt;;&lt;BR /&gt;END IF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:36:29 GMT</pubDate>
    <dc:creator>FMDF</dc:creator>
    <dc:date>2024-11-16T18:36:29Z</dc:date>
    <item>
      <title>Check for existence of QVD</title>
      <link>https://community.qlik.com/t5/App-Development/Check-for-existence-of-QVD/m-p/1704248#M53988</link>
      <description>&lt;P&gt;I have seen similar posts and I have tried the solutions.&amp;nbsp; Nothing is working.&amp;nbsp; Seems like it should be simple enough.&lt;/P&gt;&lt;P&gt;No matter what method I have used...qvdcreatetime, qvdfilesize...They always return null.&amp;nbsp; The file exists.&amp;nbsp; The path is correct.&amp;nbsp; The capitalization is correct.&amp;nbsp; I don't know what is going wrong with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SET vFileName = 'F:\FMCustom\01_Staging\QVD\Oracle\ItemOnhandQtyDetail_HIST.QVD';&lt;/P&gt;&lt;P&gt;//If the snapshot table exists, load it for the last 3 years and append the new snapshot.&lt;/P&gt;&lt;P&gt;IF (NOT isNull(qvdCreateTime($(vFileName)))) THEN&lt;/P&gt;&lt;P&gt;ItemOnhandQtyDetail_HIST:&lt;BR /&gt;LOAD&lt;BR /&gt;DISTINCT&lt;BR /&gt;*&lt;BR /&gt;FROM [lib://FM Staging/QVD/Oracle/ItemOnhandQtyDetail_HIST.QVD](qvd)&lt;BR /&gt;Where&lt;BR /&gt;Year(dateLoaded) &amp;gt;= Year(Today())-2&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//Append todays data to the HIST table.&lt;/P&gt;&lt;P&gt;Concatenate(ItemOnhandQtyDetail_HIST)&lt;BR /&gt;LOAD&lt;BR /&gt;itemKey,&lt;BR /&gt;organizationId,&lt;BR /&gt;inventoryItemId,&lt;BR /&gt;subinventoryCode,&lt;BR /&gt;primaryTransactionQty,&lt;BR /&gt;locatorId,&lt;BR /&gt;dateLoaded&lt;BR /&gt;FROM [lib://FM Staging/QVD/Oracle/ItemOnhandQtyDetail.QVD](qvd);&lt;/P&gt;&lt;P&gt;ELSE&lt;BR /&gt;//Snapshot Table does not exist yet. Load it from the current data load.&lt;/P&gt;&lt;P&gt;ItemOnhandQtyDetail_HIST:&lt;BR /&gt;LOAD&lt;BR /&gt;*&lt;BR /&gt;FROM [lib://FM Staging/QVD/Oracle/ItemOnhandQtyDetail.QVD](qvd);&lt;BR /&gt;;&lt;BR /&gt;END IF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Check-for-existence-of-QVD/m-p/1704248#M53988</guid>
      <dc:creator>FMDF</dc:creator>
      <dc:date>2024-11-16T18:36:29Z</dc:date>
    </item>
  </channel>
</rss>

