Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Can't delete contacts ...
Finance forum
Suggested answer

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

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}.


Categories:
  • Hana Xue Profile Picture
    Hana Xue Microsoft Employee on at
    Can't delete contacts in Finance and operation, error message shows error from CRM
    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
  • Suggested answer
    Judy Profile Picture
    Judy Microsoft Employee on at
    Can't delete contacts in Finance and operation, error message shows error from CRM
    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
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 290,552 Super User 2024 Season 2 on at
    Can't delete contacts in Finance and operation, error message shows error from CRM
    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?

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,552 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,552 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans