<?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: How to prevent loading the same file twice in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708894#M779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot guys! RowNo worked very well!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Sep 2014 08:39:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-09-16T08:39:20Z</dc:date>
    <item>
      <title>How to prevent loading the same file twice</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708889#M774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm working on a Stock analysis tool for my first qlikview project.&lt;/P&gt;&lt;P&gt;The only issue I'm struggling with is to prevent the script from importing the same "changed_stock.csv" more often than once.&lt;/P&gt;&lt;P&gt;Could you please give me an advice how to solve this?&lt;/P&gt;&lt;P&gt;I thought about deleting the file after import, or adding an unique id to the csv and import with a where not exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_14098225212725240 jive_macro_code" jivemacro_uid="_14098225212725240"&gt;
&lt;P&gt;//Loading price table&lt;/P&gt;
&lt;P&gt;LOAD @1 as ArtNr,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @2 as ArtikelBezeichnung,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @7 as Bewertungspreis,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @8 as PEinheit&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[\\s-m3qv\flatfiles$\CSB\Preise 2013.xls]&lt;/P&gt;
&lt;P&gt;(biff, no labels, header is 9 lines, table is [Preise 2013$]);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Loading Stock table including historical data&lt;/P&gt;
&lt;P&gt;Stock:&lt;/P&gt;
&lt;P&gt;LOAD ArtNr,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LosNr,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lager,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Datum,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Menge,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Einheit&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[\\*****\Stock.qvd]&lt;/P&gt;
&lt;P&gt;(qvd);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//Loading changed Stock data into the Stock table&lt;/P&gt;
&lt;P&gt;StockIncremenal:&lt;/P&gt;
&lt;P&gt;Concatenate&lt;/P&gt;
&lt;P&gt;LOAD [Art.-Nr.] as ArtNr,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LosNr,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lager,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Datum,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Menge,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Einheit,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MHD&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;[\\*****\stock_changed.csv]&lt;/P&gt;
&lt;P&gt;(txt, codepage is 1252, embedded labels, delimiter is ';')&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;//overwrite the stock qvd with the merged data&lt;/P&gt;
&lt;P&gt;Store Stock into '\\*****\Stock.qvd' (qvd);&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 09:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708889#M774</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-04T09:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent loading the same file twice</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708890#M775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this blog post helps: qlikviewcookbook.com/2012/01/incremental-load-using-qlikview-components/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 10:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708890#M775</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-09-04T10:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent loading the same file twice</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708891#M776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the advice, but my source table and the update table doesn't meet the following attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;To utilize Incremental Load a source table must have both of the following attributes:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;A unique identifier — a Primary Key — for each row.&lt;/LI&gt;
&lt;LI&gt;A “Modification”&amp;nbsp; column that identifies when a row was added or updated. The column type may be a Date, Datetime or ascending Revision number.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Is there any way to add these primary keys &amp;amp; modification collumns to my source table in qlikview? Its about 4million entrys long, so I cant edit it in excel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 11:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708891#M776</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-15T11:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent loading the same file twice</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708892#M777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use Recno/rowno function for generating unique keys,guys plz correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 12:08:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708892#M777</guid>
      <dc:creator>deepakqlikview_123</dc:creator>
      <dc:date>2014-09-15T12:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent loading the same file twice</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708893#M778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px;"&gt;I think you are right there Deepak&lt;/P&gt;&lt;P style="font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px;"&gt;So if you add a line in your script, where you load the stock_changed.csv like the following&lt;/P&gt;&lt;P style="font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px;"&gt;RowNo() AS StockID&lt;/P&gt;&lt;P style="font-size: 13px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px;"&gt;you immediately create your unique identified when you load the tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Sep 2014 12:19:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708893#M778</guid>
      <dc:creator>Agis-Kalogiannis</dc:creator>
      <dc:date>2014-09-15T12:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to prevent loading the same file twice</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708894#M779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot guys! RowNo worked very well!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 08:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/How-to-prevent-loading-the-same-file-twice/m-p/708894#M779</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-09-16T08:39:20Z</dc:date>
    </item>
  </channel>
</rss>

