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, ...
Answered

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

(3) ShareShare
ReportReport
Posted on by 266

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)
  • Verified answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at
    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.
  • Waed Ayyad Profile Picture
    9,039 Super User 2025 Season 2 on at
    Hi,
     
    Did you check Database setup screen? Do you have a record for Delete on DirPartyTable ?
     
     
     

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 503 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans