web
You’re offline. This is a read only version of the page.
close
Skip to main content
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.

I have the same question (0)
  • Verified answer
    WillWU Profile Picture
    22,361 on at
    RE: Batch job tasks - only save errors to history

    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
    RE: Batch job tasks - only save errors to history

    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
    Community member Profile Picture
    13 on at
    Batch job tasks - only save errors to history
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 756 Super User 2025 Season 2

#2
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 678

#3
Martin Dráb Profile Picture

Martin Dráb 526 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans