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

(0) ShareShare
ReportReport
Posted on by 1,477 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,696 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
    145 on at

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 628 Super User 2026 Season 1

#2
André Arnaud de Calavon Profile Picture

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

#3
Subra Profile Picture

Subra 437

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans