Skip to main content

Notifications

Community site session details

Community site session details

Session Id : luEJhuTf3a+eBr4euObFRY
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
    41,324 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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,695 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started
Loading complete