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 / Error: The DELETE stat...
Power Apps
Suggested Answer

Error: The DELETE statement conflicted with the REFERENCE constraint "appaction_appaction"

(1) ShareShare
ReportReport
Posted on by 4
In DEV I have removed custom commands and their command library to create a new one.
 
Since then I keep getting this error:
 
`The reason given was:  Sql error: Statement conflicted with a constraint. The DELETE statement conflicted with the REFERENCE constraint "appaction_appaction". The conflict occurred in database "db_crmcoreemea_[...]", table "dbo.appactionBase", column 'ParentAppActionId'.`
 
I have tried removing dependencies and running tables separately, but no success.
Any help would be very welcome.
 

 
 
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
    Hi 
     
    I am not understanding what you are doing, as you simply showed an error, but not code or actions etc. We dont know your tables, they are yours, you have to share more than the above.
     
     
  • HaydnCoffee2024 Profile Picture
    4 on at
    I am working on a model driven app in a solution with several tables etc.
    There were custom buttons on the command bar of one of the table that I have deleted/removed, including the Default Command Library associated with it.
    All this works fine in DEV, all the buttons are gone and all the objects/records associated with it, it's clean and published.
     
    When I run the DevOps pipeline to move the solution into another environment, the import works successfully.
    But when the pipeline tries to upgrade the solution and attempts to delete the old command library, I get this error.
     
    I have been checking the tables App Actions and App Elements, and dependencies around them, but with no success: it keeps telling me that the app actions associated with the command library that I want to remove cannot be deleted.
     
     
  • SG-28101507-0 Profile Picture
    4 on at
    do you resolve this issue? If yes what did you do? 
     
    I have the same exception and I am unable to find any solution. I am installing a managed solution by apply the upgrade.
    So during the deletion of unused component I get this issue.
     
    I raised the issue to Microsoft still no clue from them.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard