Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

An item with the same key has already been added

(0) ShareShare
ReportReport
Posted on by 75

a standard workflow action to create a new x entity record as a copy of original record.

x component is having 4 records . But post application certification when we open a new item, only 3 records are getting copied over in x component.

3 records copied over successfully, but the fourth failed with the following message:

[Microsoft.Xrm.Sdk.Workflow: Microsoft.Xrm.Sdk.Workflow.Activities.CreateEntity]
[CreateStep2: Create a copy of X]
[Microsoft.Crm.ObjectModel: Microsoft.Crm.ObjectModel.SyncWorkflowExecutionPlugin]
[71444757-1473-eb11-8152-005056b4208f: ]
Starting sync workflow 'CreateX', Id: 69444757-1473-eb11-8152-005056b4208f
Entering UpdateStep1_step:
Sync workflow 'CreateX' terminated with error 'An item with the same key has already been added.'
Error Message:

Unhandled Exception: Microsoft.Xrm.Sdk.InvalidPluginExecutionException: An item with the same key has already been added.

what the “key” is that Microsoft is referring to here or what we can do to make sure it is always unique?
We will need to resolve this recurring issue so that we do not lose data across applications.

Any help would be appreciated. Thank you

  • Tech-CRM Profile Picture
    75 on at
    RE: An item with the same key has already been added

    Hi Wahaj

    All we are using is out of the box dynamics.

  • Tech-CRM Profile Picture
    75 on at
    RE: An item with the same key has already been added

    Thank you Wahaj. will verify this and keep you posted.

    By any chance this could be the issue on the admin side? I mean is there any query to find the keys from the database side.

  • Suggested answer
    Wahaj Rashid Profile Picture
    11,321 on at
    RE: An item with the same key has already been added

    Hi,

    Thank you for your query.

    As far as I know, this means, there is duplicate column key in the entity object.

    Make sure, each column is added once in the Attribute collection.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,760 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans