<?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: Scenario based Question in Talend??? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282189#M56499</link>
    <description>Hello Sabrina,
&lt;BR /&gt;Thanks for your reply. I am aware of that "insert and update" option in t&amp;lt;db&amp;gt; component.
&lt;BR /&gt;What if you have to insert only their will be no use of the "Update" options.
&lt;BR /&gt;When I re-run my job, it should insert the new records only, not the already inserted records.
&lt;BR /&gt;Best Regards:-swabhosa</description>
    <pubDate>Tue, 13 Jan 2015 04:26:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-13T04:26:56Z</dc:date>
    <item>
      <title>Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282187#M56497</link>
      <description>I have one scenario based question to all the Talend forum members. It come like this as given below :- 
&lt;BR /&gt;I)Suppose you are having source text file named "A.txt" which contains billons of records. 
&lt;BR /&gt;The task is to extract all the data from source file and loads into target table named " Table D". 
&lt;BR /&gt;When millions of records are inserted into your target table,&amp;nbsp;in the middle of your&amp;nbsp;job for the&amp;nbsp;particular record/data you get error. 
&lt;BR /&gt;After resolving the error, when you execute the job again I want my job to do the following :- 
&lt;BR /&gt;The already inserted records should not be inserted again in the "target table D" keeping the performance of your job in mind. 
&lt;BR /&gt;How can we do? 
&lt;BR /&gt;Consider the cases&amp;nbsp;: 1) Source file may contain unique records 
&lt;BR /&gt;and 2) It may contains duplicate records 
&lt;BR /&gt;B) If you the use of tmemorize components, how we can achieve/do this task without using the components? 
&lt;BR /&gt;Thanks for your help in advance. 
&lt;BR /&gt;Regards 
&lt;BR /&gt;SWABHOSA</description>
      <pubDate>Mon, 12 Jan 2015 12:28:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282187#M56497</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-12T12:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282188#M56498</link>
      <description>Hi,
&lt;BR /&gt;Have you checked "insert or update" option in t&amp;lt;DB&amp;gt;output. On schema of t&amp;lt;DB&amp;gt;Output, check the 'key' box of the columns which are the primary key in database, if you select 'insert or update' option, the data will be inserted if it does not exist yet, otherwise, it is updated.
&lt;BR /&gt;Best&amp;nbsp; regards
&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 13 Jan 2015 02:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282188#M56498</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-13T02:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282189#M56499</link>
      <description>Hello Sabrina,
&lt;BR /&gt;Thanks for your reply. I am aware of that "insert and update" option in t&amp;lt;db&amp;gt; component.
&lt;BR /&gt;What if you have to insert only their will be no use of the "Update" options.
&lt;BR /&gt;When I re-run my job, it should insert the new records only, not the already inserted records.
&lt;BR /&gt;Best Regards:-swabhosa</description>
      <pubDate>Tue, 13 Jan 2015 04:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282189#M56499</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-13T04:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282190#M56500</link>
      <description>If it has a key column.&lt;BR /&gt;You can simply look up the data in "Target D" and join it with your input file using a tmap.&amp;nbsp; Records that match can be filtered out.</description>
      <pubDate>Tue, 13 Jan 2015 17:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282190#M56500</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-13T17:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282191#M56501</link>
      <description>Hello Egoetsch,&lt;BR /&gt;Thanks for reply!!!&lt;BR /&gt;It does not have an key column.&lt;BR /&gt;Regards&lt;BR /&gt;Swabhosa</description>
      <pubDate>Wed, 14 Jan 2015 09:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282191#M56501</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-14T09:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282192#M56502</link>
      <description>Any answer for this post????</description>
      <pubDate>Thu, 02 Feb 2017 13:39:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282192#M56502</guid>
      <dc:creator>Viswa560</dc:creator>
      <dc:date>2017-02-02T13:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282193#M56503</link>
      <description>can tell me what could be the error ? if it&amp;nbsp; is&amp;nbsp; data mismatch error, you can always&amp;nbsp;do the schema level checks&amp;nbsp; then pull out the&amp;nbsp; rejected records into the file and only&amp;nbsp;correct data can taken further for inserting into database</description>
      <pubDate>Thu, 23 Mar 2017 06:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282193#M56503</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2017-03-23T06:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282194#M56504</link>
      <description>&lt;P&gt;1. In case of&amp;nbsp;&lt;SPAN&gt;Source file may contain unique records:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;==&amp;gt; In this case, you can import all the files to the Destination table. And before inserting into Destination table use tMap to lookup with the source file unique column. Map the primary key from the inserting&amp;nbsp;main flow to the primary unique column of lookup source file. And keep the 'Inner Join Reject' setting to True in tMap at the output side.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will insert only those records which are not in the destination table if few of the records are already there is destination table, then it will reject based on an inner join.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. In case of&amp;nbsp;&lt;SPAN&gt;Source file may contain&amp;nbsp;duplicate records:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;==&amp;gt; I am assuming here&amp;nbsp;the whole row does not have duplicated values, only a few columns have duplicated values.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For example:&amp;nbsp; | Id&amp;nbsp; &amp;nbsp;|&amp;nbsp; Name |&amp;nbsp; Age |&amp;nbsp; Country |&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;John&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;25&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;USA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;John&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;28&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;USA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Jack&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;32&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; UAE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For above case use tAddCRCRow component while inserting data into dest table. And apply/check CRC for all columns, so each record will get a unique CRC value. After that before inserting data into Dest. table&amp;nbsp;join the main flow with source file CRC value as lookup and&amp;nbsp;keep the 'Inner Join Reject' to True at the output side in tMap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will insert only those records which are not in the destination table if few of the records are already there is destination table, then it will reject based on an inner join.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Don't forget to give kudos if this reply is&amp;nbsp;worked for you. Also, suggestions/ improvements for this solutions are appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 May 2018 11:23:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282194#M56504</guid>
      <dc:creator>vaibs_parab</dc:creator>
      <dc:date>2018-05-21T11:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Scenario based Question in Talend???</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282195#M56505</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLxqAAG"&gt;@swapneel9218&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;In this scenario we can create hashkeys for each record&amp;nbsp; not for key column using MDM Hash Key&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; Routine.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;after creating hash keys for already inserted table and newly inserting table lookup those keys in tMap then we will get only the filtered new columns.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Data1:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Data2:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;Id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Name&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;100&amp;nbsp; &amp;nbsp; &amp;nbsp;krane&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;101&amp;nbsp; &amp;nbsp; Lunarg&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(updated)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;101&amp;nbsp; &amp;nbsp; &amp;nbsp;Lunar&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;103&amp;nbsp; &amp;nbsp; Harry&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(duplicate)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;103&amp;nbsp; &amp;nbsp; &amp;nbsp;Harry&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;104&amp;nbsp; &amp;nbsp; potter&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(new record)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;105&amp;nbsp; &amp;nbsp; Henry&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (new record)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;so lets think there is no primary key then we create hash key for whole record,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;then the hashkeys for example&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Data1:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Data2:&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Id&amp;nbsp; &amp;nbsp; |&amp;nbsp; Name&amp;nbsp; |&amp;nbsp; hashkey1 |&amp;nbsp; Id&amp;nbsp; |&amp;nbsp; &amp;nbsp; Name&amp;nbsp; |&amp;nbsp; &amp;nbsp;hashkey2&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;100&amp;nbsp; &amp;nbsp; krane&amp;nbsp; &amp;nbsp; &amp;nbsp;1005867&amp;nbsp; &amp;nbsp;| 101&amp;nbsp; &amp;nbsp; Lunarg&amp;nbsp; (updated)&amp;nbsp; &amp;nbsp; 5456878&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;101&amp;nbsp; &amp;nbsp; Lunar&amp;nbsp; &amp;nbsp; 1239878&amp;nbsp; &amp;nbsp;| 103&amp;nbsp; &amp;nbsp; Harry&amp;nbsp; (duplicate)&amp;nbsp; &amp;nbsp; &amp;nbsp;4354587&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;103&amp;nbsp; &amp;nbsp; Harry&amp;nbsp; &amp;nbsp; &amp;nbsp;4354587&amp;nbsp; | 104&amp;nbsp; &amp;nbsp; potter (new record)&amp;nbsp; &amp;nbsp;5650112&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 105&amp;nbsp; &amp;nbsp; Henry (new record)&amp;nbsp; 1008867&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;so in the above example you can see the the hashkeys for 103 record it is same.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;for updated record 101 it is different hash key. so based on this we lookup the hashkeys in tMap get the rejected columns in output.i.e, in target&amp;nbsp; Table D.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Don't forget to give kudos if this reply is&amp;nbsp;worked for you. Also, suggestions/ improvements for this solutions are appreciated.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jun 2020 09:12:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Scenario-based-Question-in-Talend/m-p/2282195#M56505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-26T09:12:53Z</dc:date>
    </item>
  </channel>
</rss>

