BeyondERP.Newsletter
Menu

Setup step on the Clean up work exception logs page · Warehouse management

Remove closed work exceptions by age

Use this job to delete old work exception log entries by status.

Used by
Warehouse planner
Business process
Manage warehouse operations
Menu item
action:WHSWorkExceptionLogCleanUp
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Clean closed work exceptions”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone

1What it is and why

What it isA periodic task that deletes entries from the work exceptions log in batches.
What you do hereUse this task to delete resolved or unneeded work exceptions by age and status. Cleaning out old work exceptions makes it easier to search for locations with open work exceptions and improves the performance of pages that show them.
ExampleFor example, BEAT's work exceptions log holds 250,000 entries. A run with The number of days to keep = 90, Status = Closed and Maximum cleanup records count = 100,000 removes the oldest closed entries in batches.
Clean up work exception logs page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.

When to run it

When to run itWhen resolved work exceptions make the Work exceptions log hard to search, or slow down the pages that show work exceptions. Requires version 10.0.43 or later.
How oftenOn demand, or on a recurring schedule that matches how long supervisors need old exceptions.
Batch settingsSet it up as a batch job with a batch group, schedule and alerts as you need; run large deletions outside peak hours.
What the output showsA notification with the number of work exception log entries removed. The Work exceptions log then holds only entries newer than the days to keep or with the other status. If open exceptions disappeared, Status was set to Open by mistake.

Source: Microsoft Learn

Setup steps on this page

Remove closed work exceptions by age

Use this job to delete old work exception log entries by status.

Steps from Microsoft

  1. Go to Warehouse management > Periodic tasks > Clean up > Clean up work exception logs.
  2. On the Parameters FastTab, in The number of days to keep, enter the age of the oldest entries to keep. Older entries are removed.
  3. In Status, select Closed to remove resolved exceptions, or Open to remove open entries that are no longer relevant.
  4. In Maximum cleanup records count, keep the default of 100,000 or lower it so one run doesn't delete too many records at once.
  5. Run it and read the notification that tells you how many records were removed, then check the Locations with open work exceptions tile in Outbound work monitoring.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
The number of days to keepThe age in days of the oldest entries to keep. Older entries are removed.Microsoft Learn
StatusThe status of the exception logs to delete, Open or Closed.Microsoft Learn
Maximum cleanup records countThe maximum number of records to delete in one run. The default is 100,000.Microsoft Learn

Common errors and fixes

MessageWhat to do
Open exceptions disappeared from Outbound work monitoringThe job ran with Status = Open. Run it with Closed unless the open entries are truly no longer relevant. Microsoft Learn

Test checklist

  1. The notification shows the expected number of removed records.
  2. The Work exceptions log has no entries of the chosen status older than the days to keep.
  3. Open exceptions still appear in Outbound work monitoring when you cleaned only Closed entries.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Remove closed work exceptions by ageRun it monthly with Status = Closed and 90 days to keep, with the default maximum of 100,000 records.Cleaning old exceptions makes searching easier and speeds up the pages that show them.Which work exceptions are cleaned?Running it with Status = Open, which hides open problems from supervisors.Test: Clean closed work exceptions

Feature management and licence

Licence or add-inWarehouse management is part of the Dynamics 365 Supply Chain Management licence. In this system 1 role can open this page, among them Warehouse planner.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: the job deletes log entries of the legal entity it runs in. Microsoft data model
Can it be undoneIrreversible: Removed work exceptions are deleted for good.
If you change it laterWhen the job runs, it removes all work exceptions that match the criteria you set. Microsoft Learn
Technical architect

6Technical

Menu itemaction:WHSWorkExceptionLogCleanUp Checked in Dynamics 365
Who can open it

1 security role. Select a role to see its duties and privileges.

  • RoleWarehouse plannerWHSWarehousePlanner
    • DutyMaintain warehouse planningWHSWarehousePlanningMaintain
      • PrivilegeProcess work exception log cleanupWHSWorkExceptionLogCleanUpProcess
Roles worked out from Microsoft's standard security setup and checked in a working Dynamics 365 system (version 10.0.49)
Roles to set it up and use itTo use itWarehouse planner WHSWarehousePlannerGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:WHSWorkExceptionLogCleanUp
Data migrationLoad order: Clean up work exception logs has no data entity in Data management, so it can't be loaded from a file or a configuration template. The job only deletes old records; there is nothing to migrate. Set up the same recurring job in the new environment.Microsoft Learn
Everyone

8Sources

To cite this step: WM-JOB-300, Remove closed work exceptions by age. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/WM-JOB-300