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, “Only old canceled settlements are deleted”, 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, after the inventory closes for 2024 are final and audited, BEAT's IT manager runs the job with Delete canceled settlements posted before 1/1/2025, removing the canceled settlements left by reversed closes in 2024 while keeping everything from 2025 onward.
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
After inventory close for the old periods is final and the business has confirmed that settlement detail before the chosen dates is no longer needed.
How often
On demand, as part of periodic database housekeeping, with dates far behind the current fiscal year.
Batch settings
Schedule it as a one-off batch job outside business hours; the first run on years of settlements can process a large volume.
What the output shows
Fewer inventory settlement records: closed settlements before the first date are grouped, and canceled settlements before the second date are deleted. If later reconciliation of inventory with finance fails for an old period, the dates were set too close to that period.
Delete canceled settlements, and optionally group closed settlements, for periods that are closed and audited.
Steps from Microsoft
Go to Cost management > Inventory accounting > Clean up > Inventory settlements cleanup.
Agree with finance that settlement detail before the chosen date is no longer needed, and test the job in a test environment first.
In Delete canceled settlements posted before, enter a date well before the current fiscal year; where your dialog also shows Group settlements posted before, fill it only if you want closed settlements grouped.
Use Records to include to limit the run to certain items, and run it in the background outside business hours, then select OK.
Open the settlements of a sample item and check that only canceled settlements before the date are gone.
Closed transaction settlements posted before this date are grouped. Grouped transactions can't be changed afterwards. The dialog captured in BEAT showed only the delete date below.Microsoft Learn
Delete canceled settlements posted before
Canceled settlements posted before this date are deleted; they can then no longer be reconciled with finance transactions.Microsoft Learn
1/1/2025
Records to include
Filter that limits which items or inventory transactions the job processes.Checked in Dynamics 365
Run in the background
Sends the job to the batch framework with a batch group, recurrence and alerts instead of running it while you wait.Checked in Dynamics 365
Common errors and fixes
Message
What to do
Old periods can no longer be reconciled with finance
Canceled settlements that are deleted can't be reconciled with finance transactions. Keep the delete date well before any period that may still be audited. Microsoft Learn
Test checklist
No settlement after the chosen dates was grouped or deleted.
Inventory value for the closed periods is the same before and after the run.
Run it once a year at most, with dates before the last audited fiscal year, and only after a trial in a test environment.Grouped settlements lose their transaction detail and deleted canceled settlements can't be reconciled with finance, so the dates must stay far from the current year.
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, so it can't be loaded from a file or a configuration template. It deletes or groups settlement records created by inventory close; nothing is migrated.Checked in Dynamics 365