<turbo-stream action="update" target="wiki_card"><template>
<h1>E2120 Duplicate External Id</h1>
<p>The <strong>DUPLICATE_EXTERNAL_ID</strong> error in Salesforce occurs when you try to insert or update a record with an <strong>External ID field</strong> that <strong>must be unique</strong>, but the value you’re providing already exists in another record. If a field is marked as an <strong>External ID</strong> <strong>and</strong> is also marked as <strong>Unique</strong>, Salesforce enforces uniqueness. When using <code>upsert</code>, Salesforce checks for a match based on the <strong>External ID</strong>. If <strong>multiple records</strong> already exist with the same External ID, Salesforce doesn’t know which one to update, causing this error.</p><p><strong>SF_ERROR: DUPLICATE_EXTERNAL_ID OBJ: Product2 - Case SKU Number (US): more than one record found for external id field: [01tj00000033KNPAA2, 01tj0000002xwceAAA] FIELDS: Field_Source__C.&nbsp;</strong></p><p>This is a Salesforce restriction. Salesforce will not allow multiple records with the same External ID to be created. So the records with duplicate external IDs need to be checked and adjusted accordingly.&nbsp;<br><br>Solution:</p><ul><li>Check that specific record in your source system and make sure that it has an unique Id; If you have duplicates in your source system, you would need to clean the data and then transfer them to Salesforce.&nbsp;</li><li>Also, check this particular record in Salesforce as well - sometimes, users can create duplicate data directly in Salesforce and therefore causing further issues for the ongoing integration.</li></ul>
</template></turbo-stream>

<turbo-stream action="replace" target="meta_description"><template><meta content='E2120 Duplicate External Id' id='meta_description' name='description'></template></turbo-stream>
<turbo-stream action="replace" target="meta_keywords"><template><meta content='E2120 Duplicate External Id Salesforce Data Error' id='meta_keywords' name='keywords'></template></turbo-stream>
<turbo-stream action="update" target="meta_title"><template>E2120 Duplicate External Id - MyRapidi Wiki</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
