<?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: Only Load Files not in the LoadFiles Table (in case of duplicates) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Only-Load-Files-not-in-the-LoadFiles-Table-in-case-of-duplicates/m-p/2309555#M80757</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Please try below snippet before flat file read.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Read list of files usinf filelist and pass the current file name as parameter in where clause" style="width: 952px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzHZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148393iDB714D0B8A3F2DEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzHZ.png" alt="0683p000009LzHZ.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Read list of files usinf filelist and pass the current file name as parameter in where clause&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;Connect it to a tflowtoIterate component with default key value option turned on (under Basic settings)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Use a Run if condition and add the below condition in it&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;!Relational.ISNULL(((String)globalMap.get("row1.file_name")))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzZX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156397iF074BB127052A714/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzZX.png" alt="0683p000009LzZX.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please mark the topic as solution provided if the answer has helped you. Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
    <pubDate>Sat, 18 Aug 2018 06:49:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-18T06:49:52Z</dc:date>
    <item>
      <title>Only Load Files not in the LoadFiles Table (in case of duplicates)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Only-Load-Files-not-in-the-LoadFiles-Table-in-case-of-duplicates/m-p/2309554#M80756</link>
      <description>&lt;P&gt;Hi, I have been able to figure out most of what I needed in Talend so far.&amp;nbsp; However, I'm at a point that I'm not sure how to make Talend work for what I need.&amp;nbsp; I have a table in SQL that I load file names and counts into as they process.&amp;nbsp; I need to add a step at the beginning that will check that table to see if a file with the same name has been loaded before and exclude it if it has.&amp;nbsp; I've tried figuring out a join for this and a tMap.&amp;nbsp; You can see my setup below.&amp;nbsp; The very end (circled) you see where i load the files into the table.&amp;nbsp; I have indicated where I want to put an element or series of, that will check that Files Loaded table before loading.&amp;nbsp;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 796px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzZI.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142318iFB5D8C22ABD49987/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzZI.jpg" alt="0683p000009LzZI.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 21:18:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Only-Load-Files-not-in-the-LoadFiles-Table-in-case-of-duplicates/m-p/2309554#M80756</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-17T21:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Only Load Files not in the LoadFiles Table (in case of duplicates)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Only-Load-Files-not-in-the-LoadFiles-Table-in-case-of-duplicates/m-p/2309555#M80757</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Please try below snippet before flat file read.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Read list of files usinf filelist and pass the current file name as parameter in where clause" style="width: 952px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzHZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148393iDB714D0B8A3F2DEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzHZ.png" alt="0683p000009LzHZ.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Read list of files usinf filelist and pass the current file name as parameter in where clause&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;Connect it to a tflowtoIterate component with default key value option turned on (under Basic settings)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Use a Run if condition and add the below condition in it&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;!Relational.ISNULL(((String)globalMap.get("row1.file_name")))&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzZX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156397iF074BB127052A714/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzZX.png" alt="0683p000009LzZX.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Please mark the topic as solution provided if the answer has helped you. Kudos are also welcome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Nikhil Thampi&lt;/P&gt;</description>
      <pubDate>Sat, 18 Aug 2018 06:49:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Only-Load-Files-not-in-the-LoadFiles-Table-in-case-of-duplicates/m-p/2309555#M80757</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-18T06:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Only Load Files not in the LoadFiles Table (in case of duplicates)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Only-Load-Files-not-in-the-LoadFiles-Table-in-case-of-duplicates/m-p/2309556#M80758</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;May this will help to load the files only once(in case of duplicates file will come)...&lt;/P&gt;
&lt;P&gt;First pipeline: In this we store the data with the file name using thashinput component through appending the data&lt;/P&gt;
&lt;P&gt;Second pipeline: We store that data in a temp table&lt;/P&gt;
&lt;P&gt;Third Pipeline: In this we can join the tgt table and temp table on the basis of file name. And it will load unique files to the Target table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Akash&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtXj"&gt;1.JPG&lt;/A&gt;</description>
      <pubDate>Sat, 18 Aug 2018 17:43:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Only-Load-Files-not-in-the-LoadFiles-Table-in-case-of-duplicates/m-p/2309556#M80758</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-18T17:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Only Load Files not in the LoadFiles Table (in case of duplicates)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Only-Load-Files-not-in-the-LoadFiles-Table-in-case-of-duplicates/m-p/2309557#M80759</link>
      <description>&lt;P&gt;This looks great, I have it all setup but for some reason it's reading the file name as a column.&lt;/P&gt;&lt;P&gt;I'm getting and "Invalid column name" error and it lists the file name as the column.&amp;nbsp; It's failing on the tDBInput_1 and kicking out the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 16:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Only-Load-Files-not-in-the-LoadFiles-Table-in-case-of-duplicates/m-p/2309557#M80759</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-20T16:20:35Z</dc:date>
    </item>
  </channel>
</rss>

