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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Batch job tasks - only save errors to history

(0) ShareShare
ReportReport
Posted on by 35

Hello,

I have created a data export project that exports data entities to our customer's BYOD. The export is run in batch and since it runs frequently, by default it creates lot of records in the BatchJob table. I have changed the batch job setting to save only errors to history. Still, the batch job tasks/lines that the batch job executes get saved in the BatchJob table and i haven't been able to find the setting to prevent that. I had created the original batch job and it is currently set to run by a different user. Should that user change the "save to history" setting as well? Many thanks for any assistance.

  • Verified answer
    WillWU Profile Picture
    22,363 on at

    Hi Piski,

    Alerts will always be sent if the Save job to history option on the General tab is set to Always. If this option is set to Errors only, alerts will be sent only if the job was unsuccessful. If this option is set to Never, alerts will not be sent.

    docs.microsoft.com/.../create-a-batch-job

    This setting is just to control the alerts, batch task records will always be saved in the table.

    You could create a "Custom batch job history clean-up".

    docs.microsoft.com/.../batch-history-cleanup

  • Piski Profile Picture
    35 on at

    Hi Will,

    thank you for the answer. It seems that in our case, setting up a regular batch history cleanup will be needed to remove the batch task records.

  • Suggested answer
    TV-27040851-0 Profile Picture
    on at
    Hi Piski, 
     
    There is still no way to prevent Batch Jobs from being created afaik, but you could delete them with OOB: https://www.linkedin.com/pulse/spring-cleaning-batch-jobs-dynamics-365-finance-apps-tina-van-heerden-x3h0e/?trackingId=tCwcA8FPQM%2Bl%2BnGgXc6sBg%3D%3D 

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 July Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 430 Most Valuable Professional

#2
CU10121822-0 Profile Picture

CU10121822-0 368

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 364 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans