BeyondERP.Newsletter
Menu

Setup step on the Inventory dimensions cleanup page · Inventory management

Delete unused inventory dimension combinations

Run Inventory dimensions cleanup safely and only when the data is no longer needed.

Used by
Information technology manager
Business process
Manage data
Menu item
action:InventUnusedDimCleanUp
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 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 isA periodic job that deletes inventory dimension combinations that are defined but not used in the current company.
What you do hereUse this periodic task to keep the inventory dimensions table small by removing combinations that nothing refers to.
ExampleFor 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.
Inventory dimensions cleanup 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

Business processManage data
Menu pathInventory management › Periodic tasks › Clean up › Inventory dimensions cleanup
Set up firstTracking number groups Microsoft Learn
Used next byOn-hand list Microsoft Learn
Related pagesOn-hand entries cleanup Microsoft Learn
In this process Group or delete old inventory settlements · Delete closed on-hand entries for tracked items
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 itOnly 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 oftenRarely, on demand. Microsoft warns against running it without a good reason.
Batch settingsSchedule 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 showsNo 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.

Source: Microsoft Learn

Setup steps on this page

Delete unused inventory dimension combinations

Run Inventory dimensions cleanup safely and only when the data is no longer needed.

Steps from Microsoft

  1. Go to Inventory management > Periodic tasks > Clean up > Inventory dimensions cleanup.
  2. 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.
  3. 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.
  4. Schedule it to run in the background outside business hours, as Microsoft advises for this job.
  5. 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.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Clean up afterThe start of the creation date and time range of the dimension combinations the job looks at.Checked in Dynamics 3653/1/2025 00:00
Clean up beforeThe end of the creation date and time range of the dimension combinations the job looks at.Checked in Dynamics 3653/31/2025 23:59

Common errors and fixes

MessageWhat to do
A later transaction shows a new InventDimId for a dimension combination that already existed.Expected: the old unused record was deleted, so the system created a new record for the same combination. Microsoft Learn

Test checklist

  1. Count InventDim records created in the date range.
  2. Run the job in a copy for that range.
  3. Count again and check that only unreferenced combinations were removed.
  4. Post a transaction with a removed combination and check it gets a new InventDimId.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Delete unused inventory dimension combinationsRun 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.Should unused dimension combinations be cleaned up?Running it without a good reason or for a wide date range during business hours.Test: Only unused combinations are deleted

Feature management and licence

Licence or add-inOn the live system, Information technology manager use this page.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: the job reads and changes only the data of the legal entity you run it in. Checked in Dynamics 365
Can it be undoneIrreversible: 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 laterUnused 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 itemaction:InventUnusedDimCleanUp Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Who can open it

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

  • RoleInformation technology managerSysServerITManager
    • 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 itTo use itInformation technology manager SysServerITManagerGive 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:InventUnusedDimCleanUp
Data migrationLoad 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
Everyone

8Sources

To cite this step: IM-JOBA-110, Delete unused inventory dimension combinations. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/IM-JOBA-110