Edit

Optimize performance with auto cleanup tasks

Applies to these Dynamics 365 apps:
Human Resources

Issue

Microsoft Dynamics 365 Human Resources can experience performance problems if the batch job history grows too large.

Cause

Batch jobs that run frequently can cause unsustainable growth of the batch job history. This growth can lead to performance problems.

Resolution

Schedule an automatic task to clean up your batch job history. Set up the task to run weekly, but you might need to run the cleanup more or less frequently, depending on your environment. The following procedure contains the recommended settings, but you can change these settings according to your needs.

  1. In Human Resources, select System administration.

  2. In the Search bar, enter Batch job history clean-up.

    Screenshot of searching for batch job history cleanup in the Search bar.

  3. In History limit (days), enter 30.

    Screenshot of setting the history limit to 30 days.

  4. Select Run in the background and then select Recurrence.

    Screenshot of selecting Run in the background and Recurrence options.

  5. Under Define recurrence, set the Start date and Start time to occur during off-hours or the weekend, and then select NO END DATE.

    Screenshot of defining the recurrence start date and start time with no end date.

  6. Under RECURRENCE PATTERN, select Days and set REPEAT AFTER SPECIFIED INTERVAL to 7.

    Screenshot of setting the recurrence pattern to repeat every seven days.

  7. Select OK.

  8. Change any other parameters under Run in the background as necessary, and then select OK.