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, “Leftover journal transactions removed”, 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 on-order or ordered inventory transactions that point to posted or missing inventory journals.
What you do here
Use this periodic task to clean up leftover inventory transactions from journals, with the option to also remove unposted transactions that have no journal lines.
Example
For example, BEAT's item BEAT-000123 shows 40.00 on order, but the movement journal that created it was posted and deleted months ago. After a test in a copy, IT runs Inventory journal data correction with Clean up orphan unposted inventory transactions set to No, and the leftover 40.00 disappears.
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 on-order or ordered inventory transactions are left behind by inventory journals that are already posted or no longer exist, and only with a good reason.
How often
Rarely, on demand, after testing in a test environment.
What the output shows
No report and no log. On-order and ordered transactions that link to posted or missing journals in the current company are deleted, plus orphan unposted ones if you chose that. Wrong on-order figures that remain usually come from another source.
Run Inventory journal data correction safely and only when the data is no longer needed.
Steps from Microsoft
Go to Inventory management > Periodic tasks > Clean up > Inventory journal data correction.
Read the warning under Parameters: the transactions are deleted for good, no alert or database log is created, and Microsoft advises testing carefully before you run it in production.
Set Clean up orphan unposted inventory transactions to Yes to also delete unposted transactions that have no journal lines, or No to delete only on-order and ordered transactions that point to posted or missing journals.
Use Records to include to limit which transactions are included, and set batch options under Run in the background.
Afterwards, open the on-order and ordered quantities of affected items: leftover transactions from posted or deleted journals no longer add to them.
Set to Yes to also delete unposted inventory transactions that have no journal lines; No deletes only on-order and ordered transactions that link to posted or missing journals.Microsoft Learn
No
Common errors and fixes
Message
What to do
On-order quantities are still wrong after the run.
The remaining transactions don't come from posted or missing inventory journals; look for their source document instead. Microsoft Learn
Test checklist
Note the on-order quantity of an item with leftover journal transactions.
Run the job in a copy with the option set to No.
Check that the on-order quantity no longer includes them.
Check that an open, unposted journal still has its transactions.
Run it rarely, only with a good reason, after testing it in a copy of production, and start with Clean up orphan unposted inventory transactions set to No.Microsoft warns that the transactions are deleted permanently with no log and that it must be tested carefully before production.
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: On-order and ordered transactions that link to posted or nonexistent journals in the company are 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
The transactions are deleted for good and no log is kept, so test carefully before running the job in production. Microsoft Learn
Technical architect
6Technical
Menu item
action:InventJournalDataManualCorrectionChecked in Dynamics 365
Form
DialogChecked in Dynamics 365
Who can open it
1 security role.
No privilege grants this menu item, so no duty or privilege can give access to it. Only the System administrator role, which is not limited by security, can open it.
RoleSystem administrator-SYSADMIN-
Worked out from Microsoft's standard security definitions (10.0.2790.108), which hold every privilege of the working Dynamics 365 system (10.0.49) but one custom privilege, checked on 2026-11-23
Load order: Inventory journal data correction has no data entity in Data management. It repairs transactions already in the system; there is nothing to migrate.Checked in Dynamics 365