Skip to main content
Community site session details

Community site session details

Session Id : mpRLIC3jQbZzIFXyWBqTIo
Power Apps - Building Power Apps
Answered

Cannot delete a Dataverse Choice Column in MDA

Like (0) ShareShare
ReportReport
Posted on 5 Jul 2023 07:18:05 by 58

I have a custom Choice column used on a few tables, which needs to be removed (not used)

On every table I have removed the column/field from all views and forms.

However when I try to delete the column, I cannot due to a relationship dependency.  Although no dependent table is displayed.
Why would a relationship depend on a Choice column? And how to resolve in order to delete the column?

In my case there is a choice field called Fund which is the  no longer required  (a Fund is a pool of funding which has a particular focus). 
A choice field Fund  has been added to on two tables

  • a Projects table (each project is for a particular Fund)
  • an Allocations table (details of the funding allocations to Projects). 
    This table also happens to have the Fund choice field, in other words a funder will specify their Focus or Fund which is stored when an allocation is created.

The Allocations Table also has a lookup column for selecting the relevant Project which has created a relationship (each allocation is for one project and one project can have many allocations).

 

When I try to delete the Fund choice field from the Allocations table the dependency lists the 'project' entity relationship although no dependent table is shown - see clip below

Wendy_Lumsden_1-1688541022702.png

If I view the above relationship under the Relationships screen, it is named 'Projects' so I am concerned that deleting this relationship will delete the required lookup and relationship with the Projects table.


Similarly when I try to delete the Fund choice field from the Projects table a dependent relationship is also shown as preventing the delete - see clip below:

Wendy_Lumsden_0-1688540865519.png

 

The wierd part is why would a choice column have a dependent entity relationship?

Categories:
  • Wendy_Lumsden Profile Picture
    58 on 06 Jul 2023 at 04:38:38
    Re: Cannot delete a Dataverse Choice Column in MDA

    Thank you Gulshan!  (😀 whilst having toast!)
    So grateful to all the folk who regularly contribute - ya'all rock!!

  • gulshankhurana Profile Picture
    1,395 Moderator on 05 Jul 2023 at 09:26:09
    Re: Cannot delete a Dataverse Choice Column in MDA

    Thanks Wendy. 

     

    Apologies for a short reply earlier as I was getting ready for work and was accessing the forum on mobile whilst having my toast. I'm sorry I didn't explain that the magic happens in classic designer but I'm glad you managed to figure that out. It is indeed a pain that the modern designer doesn't give clarity and doesn't allow us to go directly to the dependencies. There was an idea submitted on idea forum some time ago regarding this and I posted on my LinkedIn asking people to upvote that idea. Please add your vote too. Here's the link to that:
    https://ideas.powerapps.com/d365community/idea/5239bf30-53c8-42b8-aea6-c1185938c429

     

    Thanks.

     

    Gulshan

  • Verified answer
    Wendy_Lumsden Profile Picture
    58 on 05 Jul 2023 at 08:17:27
    Re: Cannot delete a Dataverse Choice Column in MDA

    Hi @gulshankhurana 

     

    Thank you so much for your prompt reply.  I am not sure where you can find (or how to create) the field mapping for a relationship in the Modern View but that is exactly what the issue was!

    Thanks to @Z_Lukowski  I figured this out from his reply to the following post:  Can't delete a table. Where did these relationship... - Power Platform Community (microsoft.com)

     

    So I followed his instructions as follows and used the Classics View:

    1) On Top Left part of the screen Click the cog Icon

    2) Advanced Settings

    3) Customization Column -> Solutions (assuming youve already pulled your table into ANY solution

    4) Click on your solution

    5) Find your Table (it will be called Entity)

     

    Then I found the column to delete and when I received the error message I clicked on the links provided in the error message to see dependent relationship.  In the Classic view you can now click on the relationship (cannot in Modern View) and then view the field mappings which did indeed include the Fund choice field.

    Thank you so much to all the contributors to this platform who have helped resolve MANY issues for me 🙂 

     

  • gulshankhurana Profile Picture
    1,395 Moderator on 05 Jul 2023 at 07:52:42
    Re: Cannot delete a Dataverse Choice Column in MDA

    Please check in the entity relationships if there is any field mapping that exists involving Fund.

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

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Loading complete