<?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: Error: 'Duplicate external id specified' when upsert to Salesforce in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-Duplicate-external-id-specified-when-upsert-to-Salesforce/m-p/2364365#M128129</link>
    <description>Hi, 
&lt;BR /&gt;Today I was also facing the same issue 
&lt;BR /&gt;I think the issue is that : 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Arial, Helvetica, Verdana, sans-serif"&gt;Upsert uses the sObject record's primary key (or the external ID, if specified) to determine whether it should create a new object record or update an existing one:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;If the key is not matched, then a new object record is created. 
&lt;BR /&gt;If the key is matched once, then the existing object record is updated. 
&lt;BR /&gt;If the key is matched multiple times, then an error is generated and the object record is neither inserted or updated. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT face="Arial, Helvetica, Verdana, sans-serif"&gt;&lt;FONT size="1"&gt;So if &amp;nbsp;suppose there is already a record present and in datae there are two records to be upserted so&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT face="Arial, Helvetica, Verdana, sans-serif"&gt;&lt;FONT size="1"&gt;for 1st records condition 2 is fulfilled and it is upserted but when again for updating the second record it becomes condition 3 so the records are not upserted and it throws error&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Mon, 13 Oct 2014 15:04:34 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2014-10-13T15:04:34Z</dc:date>
    <item>
      <title>Error: 'Duplicate external id specified' when upsert to Salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-Duplicate-external-id-specified-when-upsert-to-Salesforce/m-p/2364362#M128126</link>
      <description>Hello everbody 
&lt;BR /&gt;I am working with Talend to load data to SF and I found a puzzling error. 
&lt;BR /&gt;I read data with ODBC and load them to SF with a suitable componente. 
&lt;BR /&gt;I am using upsert with a External ID. 
&lt;BR /&gt;I have several jobs and when testing oe of them I got this error: 
&lt;BR /&gt;java.lang.Exception: Duplicate external id specified: wc000001 
&lt;BR /&gt; at org.talend.salesforce.SforceManagementImpl.upsert(SforceManagementImpl.java:863) 
&lt;BR /&gt; at gestion_integral___argonauta.step5_0_5.Step5.tDBInput_1Process(Step5.java:3214) 
&lt;BR /&gt; at gestion_integral___argonauta.step5_0_5.Step5.runJobInTOS(Step5.java:11436) 
&lt;BR /&gt; at gestion_integral___argonauta.step5_0_5.Step5.main(Step5.java:11295) 
&lt;BR /&gt; 
&lt;BR /&gt;So data was not loaded. The thing is that data is already loaded so Talend should just have to update them, but it didn't. 
&lt;BR /&gt;And the most puzzling for me was that... I deleted that record from Salesforce and after running again the job I got the same error. 
&lt;BR /&gt;I found out if I delete the row from my database (it's a ADS, using ODBC to connect to it) and I created again it worked... but I don't know why, and I don't want to solve it that way... since it could be impossible to solve when data amount is huge! 
&lt;BR /&gt;Why did I get that error? 
&lt;BR /&gt;How could I solve it? 
&lt;BR /&gt;Thanks very much</description>
      <pubDate>Sat, 16 Nov 2024 13:27:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-Duplicate-external-id-specified-when-upsert-to-Salesforce/m-p/2364362#M128126</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:27:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error: 'Duplicate external id specified' when upsert to Salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-Duplicate-external-id-specified-when-upsert-to-Salesforce/m-p/2364363#M128127</link>
      <description>Hi &lt;BR /&gt;We are encountering the same issue. Please can you let me know if you found a solution?&lt;BR /&gt;Thanks for your time.&lt;BR /&gt;Lauren</description>
      <pubDate>Fri, 18 Jun 2010 15:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-Duplicate-external-id-specified-when-upsert-to-Salesforce/m-p/2364363#M128127</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-18T15:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error: 'Duplicate external id specified' when upsert to Salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-Duplicate-external-id-specified-when-upsert-to-Salesforce/m-p/2364364#M128128</link>
      <description>Basically it is finding the external Id twice. one quick round about is reducing the batch size to 1. It will run your job but the time taken to complete the job for large data increases significantly</description>
      <pubDate>Wed, 23 Jun 2010 21:23:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-Duplicate-external-id-specified-when-upsert-to-Salesforce/m-p/2364364#M128128</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-06-23T21:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error: 'Duplicate external id specified' when upsert to Salesforce</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-Duplicate-external-id-specified-when-upsert-to-Salesforce/m-p/2364365#M128129</link>
      <description>Hi, 
&lt;BR /&gt;Today I was also facing the same issue 
&lt;BR /&gt;I think the issue is that : 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="1"&gt;&lt;FONT face="Arial, Helvetica, Verdana, sans-serif"&gt;Upsert uses the sObject record's primary key (or the external ID, if specified) to determine whether it should create a new object record or update an existing one:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;If the key is not matched, then a new object record is created. 
&lt;BR /&gt;If the key is matched once, then the existing object record is updated. 
&lt;BR /&gt;If the key is matched multiple times, then an error is generated and the object record is neither inserted or updated. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT face="Arial, Helvetica, Verdana, sans-serif"&gt;&lt;FONT size="1"&gt;So if &amp;nbsp;suppose there is already a record present and in datae there are two records to be upserted so&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT face="Arial, Helvetica, Verdana, sans-serif"&gt;&lt;FONT size="1"&gt;for 1st records condition 2 is fulfilled and it is upserted but when again for updating the second record it becomes condition 3 so the records are not upserted and it throws error&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Mon, 13 Oct 2014 15:04:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-Duplicate-external-id-specified-when-upsert-to-Salesforce/m-p/2364365#M128129</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2014-10-13T15:04:34Z</dc:date>
    </item>
  </channel>
</rss>

