Skip to main content

Notifications

Community site session details

Community site session details

Session Id : vc5vvYvGVeNmEe0lNpdBQy
Power Apps - Power Apps Pro Dev & ISV
Suggested answer

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

Like (1) ShareShare
ReportReport
Posted on 16 Oct 2024 20:28:12 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.
 

 
 
  • HaydnCoffee2024 Profile Picture
    4 on 17 Oct 2024 at 07:52:22
    Error: The DELETE statement conflicted with the REFERENCE constraint "appaction_appaction"
    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.
     
     
  • Suggested answer
    Michael E. Gernaey Profile Picture
    42,278 Super User 2025 Season 1 on 17 Oct 2024 at 06:52:23
    Error: The DELETE statement conflicted with the REFERENCE constraint "appaction_appaction"
    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.
     
     

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard
Loading started