Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM forum
Suggested answer

There are two attributes with the same name 'fieldName' in the entity 'guid' in the Database.

Posted on by 55

Hi all,

I've updated my on-prem organization from the 8.2 to 9.1 version. Now I'm trying to import the existing managed solution to update it and get the following error in the logs:

"There are two attributes with the same name 'fieldName' in the entity 'guid' in the Database."

I've checked, there are no two attributes with such name, but the import is not possible due to this problem

How it can be solved?

  • juancho Profile Picture
    juancho 80 on at
    RE: There are two attributes with the same name 'fieldName' in the entity 'guid' in the Database.

    Yes, just go to the bin folder in CRM Dynamics (e.g. C:\Program Files\Dynamics 365\CRMWeb\bin)

    The CRM trace gives you the namespace of the class where the exception is being thrown 

    And then I use a decompiler (e.g. Just Decompile from Telerik https://www.telerik.com/products/decompiler.aspx) to look inside the assembly

  • Michael.Matsiy Profile Picture
    Michael.Matsiy 55 on at
    RE: There are two attributes with the same name 'fieldName' in the entity 'guid' in the Database.

    Where I can find this code also?

    Is it ms libraries?

  • juancho Profile Picture
    juancho 80 on at
    RE: There are two attributes with the same name 'fieldName' in the entity 'guid' in the Database.

    Thanks so much for your quick reply Michael!

    I'll give it a try, I can see the code in the area where the error is thrown was changed from v8 to v9

  • Suggested answer
    Michael.Matsiy Profile Picture
    Michael.Matsiy 55 on at
    RE: There are two attributes with the same name 'fieldName' in the entity 'guid' in the Database.

    Yep, there are duplicates in the db

    You have to select all the records from attributebase table withe the name that you have in error message.

    Probably, you should see more then one record. The difference will be in a componentstate and overwritetime.

    To fix the issue I removed all the records where component state eq 2 or overwrite time is not 1900-01-01..

    It seems to be some ms db issue, I have the same picture with a different entities, especially with tables which related to plug-in assemblies.

    There should be created a ticket to ms, but I don't know how to do it 

  • juancho Profile Picture
    juancho 80 on at
    RE: There are two attributes with the same name 'fieldName' in the entity 'guid' in the Database.

    Did you manage to find a solution to this issue? we are facing the same problem

  • Michael.Matsiy Profile Picture
    Michael.Matsiy 55 on at
    RE: There are two attributes with the same name 'fieldName' in the entity 'guid' in the Database.

    How can I do it?

  • Pravin Kumar Profile Picture
    Pravin Kumar on at
    RE: There are two attributes with the same name 'fieldName' in the entity 'guid' in the Database.

    Hi Michael,
    This doesn't appear to be widely impacting issue. Could you create a support case to get this issue investigated?

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,277 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,137 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans