Information technology manager, Inventory accountant
Business process
Manage data
Menu item
action:InventCostCleanUp
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, “Old settlements grouped, recent ones untouched”, 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 is
A periodic job that groups closed inventory transactions or deletes canceled inventory settlements.
What you do here
Use this periodic task to free system resources by grouping or deleting old settlement data.
Example
For example, in November 2026 BEAT groups the settlements of closed inventory transactions posted before 1/1/2023 and deletes canceled settlements before the same date, three years away from the current fiscal year, before it runs Inventory transaction consolidation.
The page in Dynamics 365. page title tab to open what to set or check
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 it
Only after the business has confirmed that settlement detail before the chosen dates is no longer needed. If you also plan Inventory transaction consolidation, run this cleanup first.
How often
On demand, when old settlement data needs to be reduced. Microsoft gives no fixed interval for this routine.
Batch settings
Run it as a batch job after testing it in a test environment, as Microsoft recommends for every cleanup routine.
What the output shows
Grouped settlements for closed transactions and deleted canceled settlements before the dates you entered. There is no report; if inventory no longer reconciles with finance for a period, the dates were set too close to the present.
Run Inventory settlements cleanup safely and only when the data is no longer needed.
Steps from Microsoft
Go to Inventory management > Periodic tasks > Clean up > Inventory settlements cleanup.
In Group settlements posted before, enter the date before which the settlements of closed inventory transactions are grouped. Keep it well away from the current date and fiscal year, because grouped transactions lose part of their settlement detail.
To remove canceled inventory settlements, set Delete canceled settlements posted before to the cut-off date. Leave either date empty when you only want the other action.
Use Records to include to limit which settlement records the run covers, and run it in the background when the backlog is large.
Afterwards, open the inventory settlements for an old closed transaction: settlements before the group date are grouped, and canceled settlements before the delete date are gone.
Use dates at least a full fiscal year before the current one, and run it before Inventory transaction consolidation.Microsoft warns not to group or delete settlements close to the current date or fiscal year, and to run this cleanup before consolidation.
On the live system, Inventory accountant and Information technology manager use this page.
Checked in Dynamics 365
Solution architect
5Design impact
Shared or per company
Per company: the job reads and changes only the data of the legal entity you run it in. Checked in Dynamics 365
Can it be undone
Irreversible: Grouped settlements lose part of their transaction information and the transactions can't be changed afterwards; deleted canceled settlements can't be restored or reconciled with finance. Run it first in a copy of production, such as a sandbox refreshed from production, and give the privilege only to the people who own the cleanup.
If you change it later
Grouped closed transactions can no longer be changed, and deleted canceled settlements can't be reconciled with finance transactions. Microsoft Learn
Technical architect
6Technical
Menu item
action:InventCostCleanUpChecked in Dynamics 365
Form
DialogChecked in Dynamics 365
Who can open it
2 security roles. Select a role to see its duties and privileges.
PrivilegeClean up inventory settlementsInventCostCleanUpProcess
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 it
To use itInventory accountant InventCostAccountantInformation technology manager SysServerITManagerGive people one of these roles. On this system, 2 roles can run this page.Checked in Dynamics 365
Load order: Inventory settlements cleanup has no data entity in Data management. Settlements come from inventory close in the new system; nothing is migrated. Run it only after several years of history exist.Checked in Dynamics 365