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