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 posted journals of the chosen type 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 journals that are already posted.
What you do here
Use this periodic task to free system resources by removing posted inventory journals.
Example
For example, after BEAT closes fiscal year 2025, the controller confirms that posted Movement and Counting journals before 1/1/2025 are no longer needed. IT sets only Movement and Counting to Yes and removes 12,400 posted journals; the inventory transactions they posted stay.
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
When posted inventory journals have piled up and the business has confirmed they're no longer needed.
How often
Periodically, for example after a period or year is closed.
Batch settings
Run it as a batch job outside business hours.
What the output shows
Posted inventory journals of the selected types are deleted, which frees system resources. Unposted journals stay.
Run Inventory journals cleanup safely and only when the data is no longer needed.
Steps from Microsoft
Go to Inventory management > Periodic tasks > Clean up > Inventory journals cleanup.
Under Clean up journals of type, set Movement, Inventory adjustment, Transfer, BOM, Counting, Project, Tag counting, Fixed assets and Ownership change to Yes only for the journal types you want to remove.
Test it in a test environment first, and run it only after the business has confirmed the posted journals are no longer needed.
Set it to run in the background outside business hours under Run in the background.
After the run, open the inventory journal list and check that only posted journals of the selected types were removed.
One Yes/No option per journal type: Movement, Inventory adjustment, Transfer, BOM, Counting, Project, Tag counting, Fixed assets and Ownership change. Posted journals of the types set to Yes are deleted.Checked in Dynamics 365
Movement: Yes, all other types: No
Common errors and fixes
Message
What to do
Auditors ask for the lines of a posted journal that the cleanup removed.
They can't be restored. Run the cleanup only for journal types and periods the business has confirmed are no longer needed, and keep a copy or export first if audit needs them. Microsoft Learn
Test checklist
Count posted and unposted Movement journals before the run.
Run the job in a copy of production with only Movement set to Yes.
Check that no posted Movement journals remain and the unposted count is the same.
Run it after a fiscal year is closed, only for the journal types the controller has approved, in a copy of production first.Microsoft says cleanup routines should be run only after the business has confirmed the data is no longer required, and tested before production.
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: Posted inventory journals of the selected types are deleted for good and can't be restored. 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
Deletes posted inventory journals of the selected types. Microsoft Learn
Technical architect
6Technical
Menu item
action:InventJournalCleanUpChecked 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 journalsInventJournalCleanUpProcess
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 journals cleanup has no data entity in Data management. Posted journals aren't migrated; opening on-hand is loaded with an inventory journal entity instead. Use this job only on journals posted in the new system.Checked in Dynamics 365