web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : tJA3/16qJY+dUJZVAHi8vm
Power Apps - Building Power Apps
Unanswered

"An attribute with the specified name already exists for entity" but it doesnt exists

Like (0) ShareShare
ReportReport
Posted on 3 Nov 2023 17:02:52 by 2

I get this error "An attribute with the specified name (column name) already exists for entity (table name)" when trying to create a column, but the name isnt being used in any other column from any table.

Categories:
  • bankmeneertje Profile Picture
    on 11 Mar 2024 at 09:02:38
    Re: "An attribute with the specified name already exists for entity" but it doesnt exists

    Very interesting, that explains the problem! Thanks for sharing.

  • olira Profile Picture
    2 on 10 Mar 2024 at 12:37:26
    Re: "An attribute with the specified name already exists for entity" but it doesnt exists

    I ran into the same error message but likely a different scenario.

     

    While the issues described above may differ, what I have learned may help further debugging.

     

    The error occurred when I tried to create a calculated column cust_AccountName, which should show some data about an entity linked by the lookup-type column cust_Account.

     

    I couldn't find anything wrong by looking at the UI or querying the table through WebAPI.

    At this point, I decided to fetch the Attributes directly off the EntityDefinitions WebAPI:

     

    https://<dynamicshost>/api/data/v9.2/EntityDefinitions(LogicalName='<logicaltablename>')/Attributes

     

    Using the EntityDefinitions endpoint, I got a complete list of any internal and external attributes and their metadata. Indeed, a logical attribute with this name indeed existed and was an attribute of the lookup column I created.

     

    [
     ...,
     {
     "@odata.type": "#Microsoft.Dynamics.CRM.StringAttributeMetadata",
     "Format": "Text",
     "AttributeOf": "cust_account",
     "AttributeType": "String",
     "EntityLogicalName": "cust_detail",
     "IsCustomAttribute": true,
     "LogicalName": "cust_accountname",
     "SchemaName": "cust_AccountName",
     "ExternalName": null,
     "IsLogical": true,
     ...
     },
     ...
    }

     

    So, for my issue, when one creates a lookup-type column, there is an internal Logical column <lookupcolumnname>name, which is automatically created.

     

    More details about the EntityDefinitions Endpoint can be found on Microsoft Learn.

  • gary_nightingal Profile Picture
    2 on 23 Feb 2024 at 18:12:17
    Re: "An attribute with the specified name already exists for entity" but it doesnt exists

    my issue deals with entities relationships.

    I have a property-lease relationship and was told to create a property-service relationship, but I keep getting this result:  "An attribute with the specified name mti_PropertyGN already exists for entity mti_ServiceGN.", which is not the case.

  • bankmeneertje Profile Picture
    on 12 Feb 2024 at 09:01:27
    Re: "An attribute with the specified name already exists for entity" but it doesnt exists

    Did you find any fix? I am getting the same problem.
    I tried to create te column before with no succes, might it be like a shadow exist?

     

  • felypeterra Profile Picture
    2 on 03 Nov 2023 at 17:25:28
    Re: "An attribute with the specified name already exists for entity" but it doesnt exists

    Its a dataverse table

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete