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 unused combinations 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 deletes inventory dimension combinations that are defined but not used in the current company.
What you do here
Use this periodic task to keep the inventory dimensions table small by removing combinations that nothing refers to.
Example
For example, BEAT finds 1.2 million InventDim records after a data import created many combinations that no order, transaction or on-hand record uses. With the controller's approval, IT runs Inventory dimensions cleanup on a Saturday night for combinations created between 3/1/2025 and 3/31/2025.
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 with a good reason, for example when the InventDim table has grown large with combinations nothing refers to, and after the business has confirmed they're not needed.
How often
Rarely, on demand. Microsoft warns against running it without a good reason.
Batch settings
Schedule it as a batch job outside business hours, because it reads purchase lines, sales lines, inventory transactions and on-hand records for every combination it considers.
What the output shows
No report and no log. Unused InventDim records created in the date range are deleted. If the same combination is used again later, the system creates a new record with a new InventDimId, so a new ID on a later transaction is expected.
Run Inventory dimensions cleanup safely and only when the data is no longer needed.
Steps from Microsoft
Go to Inventory management > Periodic tasks > Clean up > Inventory dimensions cleanup.
Read the warning under Parameters: every inventory dimension combination created in the date range that is defined but not used in the current company is deleted for good, and no alert or database log is created.
Enter the Clean up after and Clean up before dates and times to set the creation date range the job looks at. A narrow range limits how many combinations can be removed.
Schedule it to run in the background outside business hours, as Microsoft advises for this job.
Afterwards, open some open orders and on-hand records from the range: they keep their dimensions, because combinations that are still referenced are never deleted.
Run it only with a good reason, for a narrow creation date range, outside business hours, after a run in a copy of production.Microsoft warns that unused combinations are deleted permanently with no log, and that the job checks purchase lines, sales lines, transactions and on-hand for every combination.
On the live system, 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: Every combination in the date range that is defined but not used in the company is deleted for good, and no alert or database log is created. 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
Unused dimension combinations are deleted for good and no log is kept, so run the job only with good reason and outside business hours. Microsoft Learn
Technical architect
6Technical
Menu item
action:InventUnusedDimCleanUpChecked in Dynamics 365
Form
DialogChecked in Dynamics 365
Who can open it
1 security role. Select a role to see its duties and privileges.
DutyMaintain system settingsSysServerSettingsMaintain
PrivilegeClean up inventory dimensionsInventUnusedDimCleanUpProcess
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 itInformation technology manager SysServerITManagerGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Load order: Inventory dimensions cleanup has no data entity in Data management. Dimension combinations are created by the system as data is loaded; they aren't migrated. Run this job only if a migration left many unused combinations.Checked in Dynamics 365