<?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 Prevent tmap from inserting duplicate rows in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326169#M95686</link>
    <description>Hallo,&lt;BR /&gt;I d like to fill up a mysql db by with some data from excel.&lt;BR /&gt;In the excel sheet, there are f.e. 100 rows. In two &lt;BR /&gt;columns I have stored the zone_id and the zone_name.&lt;BR /&gt;There are only 5 zones.&lt;BR /&gt;If I create a job with tmap and tmysqloutput, I get &lt;BR /&gt;in my mysql-zone table 100 entries.&lt;BR /&gt;But I only want the entries for the 5 different zones&lt;BR /&gt;occuring in the source data in Excel.&lt;BR /&gt;How can I prevent talend from inserting duplicate rows in my mysql table?&lt;BR /&gt;Yours&lt;BR /&gt;Matthias</description>
    <pubDate>Fri, 15 Mar 2013 16:48:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-03-15T16:48:32Z</dc:date>
    <item>
      <title>Prevent tmap from inserting duplicate rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326169#M95686</link>
      <description>Hallo,&lt;BR /&gt;I d like to fill up a mysql db by with some data from excel.&lt;BR /&gt;In the excel sheet, there are f.e. 100 rows. In two &lt;BR /&gt;columns I have stored the zone_id and the zone_name.&lt;BR /&gt;There are only 5 zones.&lt;BR /&gt;If I create a job with tmap and tmysqloutput, I get &lt;BR /&gt;in my mysql-zone table 100 entries.&lt;BR /&gt;But I only want the entries for the 5 different zones&lt;BR /&gt;occuring in the source data in Excel.&lt;BR /&gt;How can I prevent talend from inserting duplicate rows in my mysql table?&lt;BR /&gt;Yours&lt;BR /&gt;Matthias</description>
      <pubDate>Fri, 15 Mar 2013 16:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326169#M95686</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-15T16:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent tmap from inserting duplicate rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326170#M95687</link>
      <description>Hi Matthias 
&lt;BR /&gt;If you just want to remove the duplicate rows, you can use tUniqRow to get the unique rows, please read online component manual: 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/search/all?query=tUniqRow&amp;amp;content-lang=en" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/search/all?query=tUniqRow&amp;amp;content-lang=en&lt;/A&gt; 
&lt;BR /&gt;If you want to do some aggregation operators based on the two columns zone_id and zone_name, see 
&lt;BR /&gt; 
&lt;A href="https://help.talend.com/search/all?query=tAggregateRow&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tAggregateRow&lt;/A&gt; 
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 16 Mar 2013 04:42:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326170#M95687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-16T04:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent tmap from inserting duplicate rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326171#M95688</link>
      <description>Unfortunately not as simple way. You can choose insert and update as data action.
&lt;BR /&gt;I would like to have an option to insert with check if insert is possible and otherwise reject it without throwing Exceptions.</description>
      <pubDate>Sun, 17 Mar 2013 13:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326171#M95688</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-17T13:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent tmap from inserting duplicate rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326172#M95689</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Unfortunately not as simple way. You can choose insert and update as data action.&lt;BR /&gt;I would like to have an option to insert with check if insert is possible and otherwise reject it without throwing Exceptions.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hi Jlolling 
&lt;BR /&gt;Not sure you have noticed this option 'insert ignore' in action on data, if the key already exists, ignore this record without throwing the exception, otherwise, insert this record. 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 18 Mar 2013 02:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326172#M95689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-18T02:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent tmap from inserting duplicate rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326173#M95690</link>
      <description>Thank you for your advice,&lt;BR /&gt;tuniquerow worked very well but I could not get a result by setting tmysqloutput to 'insert ignore'.&lt;BR /&gt;Matthias</description>
      <pubDate>Tue, 19 Mar 2013 09:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326173#M95690</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-03-19T09:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent tmap from inserting duplicate rows</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326174#M95691</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Thank you for your advice,&lt;BR /&gt;tuniquerow worked very well but I could not get a result by setting tmysqloutput to 'insert ignore'.&lt;BR /&gt;Matthias&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;yes, with 'insert ignore' option, the duplicated data are ignored by database server, and we can't capture the reject data. So, if want to see which data are duplicated and output them, use tUniqRow component.
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 20 Mar 2013 03:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Prevent-tmap-from-inserting-duplicate-rows/m-p/2326174#M95691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-20T03:59:01Z</dc:date>
    </item>
  </channel>
</rss>

