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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Cannot delete an entit...
Power Apps
Answered

Cannot delete an entity relationship

(0) ShareShare
ReportReport
Posted on by 20

I wanted to delete an entity relationship 1:N,  but I kept getting the same message saying = there are dependencies...you cannot delete it. I deleted all data records on both entities.., refresh browser, etc. etc.) but nothing happened. By mistake I deleted the field in the current entity that involved that relationship (see attachment), so now I have orphan the 1:N relationship on both entities .. This situation is also preventing me to delete the current entity.

Regards. 

Mario  

 

 
I have the same question (0)
  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @mariopdemarchi :

    Could you tell me that the relationship you want to delete is a system-created relationship?

    Case1:system-created relationship

    I am afraid it cannot be deleted.

    Case2:not system-created relationship

    I made some tests but didn't encounted the problem you mentioned.

    Could you please check wether you have also used this entity as one app's data source?

    Perhaps delete all the resources which created  based on this entities and then refresh the browser will help you delete it.similar post

    I think these links may help you:

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/dependency-tracking-solution-components

    https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/removing-dependencies

    Best Regards,

    Bof

  • Verified answer
    David Jennaway Profile Picture
    716 on at

    You can use 'Show Dependencies' to determine what dependencies are preventing the deletion. It's most likely that the it is used by a form or view, but could also be processes or rollup fields. For forms or views, the simplest is to remove the field, subgrid or navigation item associated with the relationship. For processes, you may be able to remove the field/relationship, and for any rollup fields you'll need to delete the rollup field. If you need to change forms or views, you'll need to publish the changes before you can delete the relationship

  • mariopdemarchi Profile Picture
    20 on at

    Bof,

    Thanks! solved!.  The read of your selected article about Dependency tracking for Solutions Components  was key.

    I had lookup fields in VIEWS and FORMS that I had to delete it (saved & publish) before canceling the entity relationship.  As it is said in this article . (My entities are Customs entities under learning process ).

     

    Article: There are three types of solution component dependencies:

    Solution Internal
    Internal dependencies are managed by Common Data Service. They exist when a particular solution component can’t exist without another solution component.

    Published
    Published dependencies are created when two solution components are related to each other and then published. To remove this type of dependency, the association must be removed and the entities published again.

    Unpublished
    Unpublished dependencies apply to the unpublished version of a publishable solution component that is being updated. After the solution component is published, it becomes a published dependency.

    Best Regards!

    Mario

  • Oztrea Profile Picture
    2 on at

    Don't forget to check if you don't have a plugin using your lookup in the Pre/PostImage, those kind of dependencies are not found by the function RetrieveDependentComponents and then are not shown in the list.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard