Skip to main content

Notifications

Community site session details

Community site session details

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

Database log cleanup job is not deleting any data

(0) ShareShare
ReportReport
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
    27,825 Moderator 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,127 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans