Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Suggested answer

Database log cleanup job is not deleting any data

Posted on by
I have schdeuled Database log cleanup job with the filters tableId 4056 (Numbersequence Table) and log type update. However its not deleting any data. I checked in the SysDataBaseLog table there are 3 million records in this table with this criterea. but its not getting deleted and the job is getting ended in 1 minute.
 
  • Suggested answer
    GirishS Profile Picture
    GirishS 27,832 Super User 2024 Season 1 on at
    Database log cleanup job is not deleting any data
    Hi,
     
    I would suggest you to debug the class which is related to that dialog.
    I am thinking that there is a field named "DatabaseLogCleanUpTopN" in the table DatabaseLogParameter table.
    In the init method of the DataSource they are initializing that field value with 5000. So, I think the deletion of record is restricted to 5000.
    I am not sure on that, but you can debug the code to get better idea on that.
     
    Thanks,
    Girish S.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans