<?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: Load if File already not Loaded in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-if-File-already-not-Loaded/m-p/8197#M634</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 tried with the Exist function but since [Table A] can have repeated records and since the filename will be in different records i can't use exist function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea, is if there's a way to do something similar to:&lt;/P&gt;&lt;P&gt;if&amp;nbsp; [Filename exists in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;TB_ETL_CONTROL] then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load File&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2018 11:07:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-03-12T11:07:05Z</dc:date>
    <item>
      <title>Load if File already not Loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Load-if-File-already-not-Loaded/m-p/8195#M632</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;On a daily basis i have to load a File which contains several records. This file i keep in a Control Table. I would like to know how can i check if the file was already loaded, and if so, will not load the file contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* records in table A may repeat */&lt;/P&gt;&lt;P&gt;[Table A]&lt;/P&gt;&lt;P&gt;Concatenate (Table A)&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; codjogador,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; birthday,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; deposit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cashout&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $(vFile) as FileName,&lt;/P&gt;&lt;P&gt;from [$vFile]&lt;/P&gt;&lt;P&gt;(XmlSimple, table is [ficheiro/registos_jogador/jogador]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; [TB_ETL_CONTROL]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Concatenate (TB_ETL_CONTROL)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; LOAD *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp(Now(1),'YYYY/MM/DD hh:mm:ss') as ETL_TIMESTAMP,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ComputerName() as ETL_COMPUTER,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClientPlatform() as ETL_PLATFORM,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DocumentName() as ETL_APP,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OSUser() as ETL_USER,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GetCollationLocale() as ETL_LOCALE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INLINE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [ETL_CTRL_PROC, ETL_FILENAME,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'ETL - JGDR' , '$(vFile)'];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;What i would need to do is check if $(vFile) is already upoaded on TB_ETL_CONTROL and if not then upload it to TABLE A.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in Advance,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Francisco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2018 11:57:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-if-File-already-not-Loaded/m-p/8195#M632</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-11T11:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: Load if File already not Loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Load-if-File-already-not-Loaded/m-p/8196#M633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you tried Exist function in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2018 17:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-if-File-already-not-Loaded/m-p/8196#M633</guid>
      <dc:creator>isingh30</dc:creator>
      <dc:date>2018-03-11T17:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Load if File already not Loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Load-if-File-already-not-Loaded/m-p/8197#M634</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 tried with the Exist function but since [Table A] can have repeated records and since the filename will be in different records i can't use exist function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea, is if there's a way to do something similar to:&lt;/P&gt;&lt;P&gt;if&amp;nbsp; [Filename exists in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;TB_ETL_CONTROL] then&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load File&lt;/P&gt;&lt;P&gt;end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 11:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-if-File-already-not-Loaded/m-p/8197#M634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-12T11:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Load if File already not Loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Load-if-File-already-not-Loaded/m-p/8198#M635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.qlikviewaddict.com/2012/02/checking-file-exists.html" title="http://www.qlikviewaddict.com/2012/02/checking-file-exists.html"&gt;http://www.qlikviewaddict.com/2012/02/checking-file-exists.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 13:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-if-File-already-not-Loaded/m-p/8198#M635</guid>
      <dc:creator>isingh30</dc:creator>
      <dc:date>2018-03-12T13:03:54Z</dc:date>
    </item>
  </channel>
</rss>

