BeyondERP.Newsletter
Menu

Setup step on the Inventory journal data correction page · Inventory management

Delete orphan journal transactions

Run Inventory journal data correction safely and only when the data is no longer needed.

Used by
System administrator
Business process
Manage data
Menu item
action:InventJournalDataManualCorrection
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, “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 isA periodic job that deletes on-order or ordered inventory transactions that point to posted or missing inventory journals.
What you do hereUse this periodic task to clean up leftover inventory transactions from journals, with the option to also remove unposted transactions that have no journal lines.
ExampleFor 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.
Inventory journal data correction 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 journal data correction
Set up firstInventory journals cleanup Microsoft Learn
Used next byTransactions Microsoft Learn
Related pagesOn-hand list Microsoft Learn
In this process Repair inconsistent transfer orders · Repair items missing from Released products
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 itWhen 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 oftenRarely, on demand, after testing in a test environment.
What the output showsNo 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.

Source: Microsoft Learn

Setup steps on this page

Delete orphan journal transactions

Run Inventory journal data correction safely and only when the data is no longer needed.

Steps from Microsoft

  1. Go to Inventory management > Periodic tasks > Clean up > Inventory journal data correction.
  2. 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.
  3. 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.
  4. Use Records to include to limit which transactions are included, and set batch options under Run in the background.
  5. Afterwards, open the on-order and ordered quantities of affected items: leftover transactions from posted or deleted journals no longer add to them.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Clean up orphan unposted inventory transactionsSet 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

MessageWhat 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

  1. Note the on-order quantity of an item with leftover journal transactions.
  2. Run the job in a copy with the option set to No.
  3. Check that the on-order quantity no longer includes them.
  4. Check that an open, unposted journal still has its transactions.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Delete orphan journal transactionsRun 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.Should orphan unposted transactions be deleted too?Setting the orphan option to Yes without checking which unposted transactions have no journal lines.Test: Leftover journal transactions removed
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: 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 laterThe 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 itemaction:InventJournalDataManualCorrection Checked in Dynamics 365
FormDialog Checked 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
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:InventJournalDataManualCorrection
Data migrationLoad 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
Everyone

8Sources

To cite this step: IM-JOBA-210, Delete orphan journal transactions. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/IM-JOBA-210