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

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Database Logging Not Capturing Delete Operations for DirPartyTable in D365 F&O

(3) ShareShare
ReportReport
Posted on by 244

Hi everyone,

I'm facing an issue with database logging in Dynamics 365 Finance and Operations. I've enabled database logging for the DirPartyTable to track changes, and it’s working as expected for Insert and Update operations. For example, when I create a new customer, an "Inserted" log is created, and when I update a record, an "Updated" log is generated. However, when I delete a customer (which should affect the DirPartyTable), no "Deleted" log is being created.

Here’s what I’ve done so far:


  • Enabled database logging via System Administration > Setup > Database log setup.
  • Selected DirPartyTable and enabled logging for Insert, Update, and Delete operations.
  • Verified that logs are generated for inserts and updates, but not for deletes.
Thanks in advance for you help!
 
Warm regards,
Kishor.
Categories:
I have the same question (0)
  • Waed Ayyad Profile Picture
    8,881 Super User 2025 Season 2 on at
    Database Logging Not Capturing Delete Operations for DirPartyTable in D365 F&O
    Hi,
     
    Did you check Database setup screen? Do you have a record for Delete on DirPartyTable ?
     
     
     
  • Verified answer
    Martin Dráb Profile Picture
    235,979 Most Valuable Professional on at
    Database Logging Not Capturing Delete Operations for DirPartyTable in D365 F&O
    It's not true that deleting a customer should always delete the party as well.
     
    Namely:
    1. The party can still be used in a different role, e.g. a vendor, and deleting the party would cause data corruption, therefore it's prevented.
    2. No deletion is even attempted unless Delete parties with no roles parameter is enabled.
    I'm assuming that your logging works correctly and you see no logs for deletion simply because no party was deleted.

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Sohaib Cheema Profile Picture

Sohaib Cheema 844 User Group Leader

#2
André Arnaud de Calavon Profile Picture

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

#3
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 553

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans