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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Batch job cleanup recommendations

(3) ShareShare
ReportReport
Posted on by 1,481 Moderator
Hi all,
 
We’re planning to start using batch job cleanup routines, and I have a few questions about how the Batch job clean-up report works. It's not about batch job history, but report that cleaning batchjob table (batch job headers).
I understand most of the criteria that need to be set before running the report, but I’m a bit unclear about the Status parameter.
The available options are Withhold, Error, Finished, and Cancelled. However, when I check the Batch jobs form in our system, most completed jobs have the status Ended, which isn’t one of the selectable statuses in the cleanup report.
From what I can see, if I want to clean up those jobs, I would need to manually change their status from Ended to Withhold before running the cleanup report which is a lot of manual work.
 
If anyone has experience using this cleanup functionality, I’d really appreciate it if you could share how you handle this scenario.
 
Thank you
Categories:
I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,992 Most Valuable Professional on at
    I'm assuming you're talking about System administration > Periodic tasks > Batch job clean-up (i.e. BatchJobCleanUp class).
     
    If you tick Finished, it'll actually include Ended jobs, as you need. It's just an unfortunate inconsistency in the GUI. The enum element is called Finished, but its English label is Ended.
  • Suggested answer
    Shaluma Profile Picture
    364 on at
  • Martin Dráb Profile Picture
    239,992 Most Valuable Professional on at
    @Shaluma The linked article doesn't seem to address the question. Please explain what relevant information we can find there, instead of just giving us a link without any explanation.
  • Mustafa Omerbegović Profile Picture
    1,481 Moderator on at
    Thank you @Martin Dráb for quick answer. I didn't pay attention to the naming of the statuses and your explanation turned out to be right.
    Best regards

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 445 Super User 2026 Season 1

#2
Subra Profile Picture

Subra 407

#3
Martin Dráb Profile Picture

Martin Dráb 274 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans