We are Receiving the following error When trying to
Publish all customizations
Publish a Form
Export a Solution
Delete a Solution
etc
Failed to process metadata description - Name: EntityKey, ID: 6c1734d1-77f3-4af6-b4e5-610b9e7d6ab5
Microsoft.Crm.CrmException: Failed to process metadata description - Name: EntityKey, ID: 6c1734d1-77f3-4af6-b4e5-610b9e7d6ab5 --->
System.ArgumentException: An item with the same key has already been added.
Sometimes the webresources are the cause for this error.
If there are some parallel processes which creates webresources, it may happen that 2 webresources with the same name will be created. But you don't see them in the UI.
Usually I delete the webresources that were generated by code, until I can publish again.
Not sure if there might be some other cases, when this error is thrown.
Kind regards,
Diana
It is Dynamics 365 Trial Version - Unable to even EXPORT the Solution is worrying.
Any assistance you can provide would be greatly appreciated.
I don't think that the WebResource has to be in the solution in order to force this error. I think the duplicate key is detected on the database.
Sometimes the webresources are the cause for this error.
If there are some parallel processes which creates webresources, it may happen that 2 webresources with the same name will be created. But you don't see them in the UI.
Usually I delete the webresources that were generated by code, until I can publish again.
Not sure if there might be some other cases, when this error is thrown.
Kind regards,
@Syndicate_Admin wrote:Usually I delete the webresources that were generated by code, until I can publish again.
I'm having the same issue today, importing the solution. What do you mean by deleting the ones "generated by code"? I have many webresources in my Solution that were imported in the original package
See if this helps - try to figure out any schema name being duplicated