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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Can't delete contacts in Finance and operation, error message shows error from CRM

(0) ShareShare
ReportReport
Posted on by
Customer cannot delete a user who is out of the company from finance and operation. It's showing the below error.

Unable to write data to entity msdyn_parties.Writes to DirPartyCDSEntity failed with error message Request failed with status code BadRequest and CDS error code : 0x80048d21 response message: Sql error: Statement conflicted with a constraint. The DELETE statement conflicted with the REFERENCE constraint /msdyn_msdyn_party_msdyn_partypostaladdress_partyid/. The conflict occurred in database /db_crmcoreemea_20230228_09393564_8406/, table /dbo.msdyn_partypostaladdressBase/, column 'msdyn_partyid'. The statement has been terminated. CRM ErrorCode: -2147185375 Sql ErrorCode: -2146232060 Sql Number: 547. Activity ID for troubleshooting {631E2C36-43D0-4A3E-B5FD-46EB1432B669}.


I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    301,025 Super User 2025 Season 2 on at
    Hi Oluwafemi,
     
    Your environment is connected with a Power Platform environment via Dual Write. This is the connection with CRM. Probably the CRM side returns a validation error for deleting the contact. Have you tried deleting the contact from the CRM side?
  • Suggested answer
    Judy Profile Picture
    Microsoft Employee on at
    Hi,
     
    The error message indicates a constraint violation when trying to delete a user who is associated with other records.
    Have you tried to delete the records owned by the user before attempting to delete the user again.
     
    Best Regards,
    Judy
  • Hana Xue Profile Picture
    Microsoft Employee on at
    Hi,
    You can view the documentation about Party and global address book troubleshooting, and check if it helps.
    Party and global address book troubleshooting - Finance & Operations | Dynamics 365 | Microsoft Learn
    Also, the following link shows a similar problem, you can view it briefly.
    integration - Dual write error when writing data from D365 to CDS - Stack Overflow
    Best Regards,
    Hana

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 611 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 529 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 285 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans