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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Error: The DELETE stat...
Power Apps
Unanswered

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,315 Super User 2025 Season 2 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
    2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard