BeyondERP.Newsletter
Menu

Setup step on the Inventory journals cleanup page · Inventory management

Delete posted inventory journals

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

Used by
Information technology manager
Business process
Manage data
Menu item
action:InventJournalCleanUp
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 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 isA periodic job that deletes inventory journals that are already posted.
What you do hereUse this periodic task to free system resources by removing posted inventory journals.
ExampleFor 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.
Inventory journals 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 journals cleanup
Set up firstJournal names, inventory Microsoft Learn
Used next byMovement journals Microsoft Learn
Related pagesInventory journal data correction Microsoft Learn
In this process Reduce location load records · Group or delete old inventory settlements
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 posted inventory journals have piled up and the business has confirmed they're no longer needed.
How oftenPeriodically, for example after a period or year is closed.
Batch settingsRun it as a batch job outside business hours.
What the output showsPosted inventory journals of the selected types are deleted, which frees system resources. Unposted journals stay.

Source: Microsoft Learn

Setup steps on this page

Delete posted inventory journals

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

Steps from Microsoft

  1. Go to Inventory management > Periodic tasks > Clean up > Inventory journals cleanup.
  2. 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.
  3. Test it in a test environment first, and run it only after the business has confirmed the posted journals are no longer needed.
  4. Set it to run in the background outside business hours under Run in the background.
  5. After the run, open the inventory journal list and check that only posted journals of the selected types were removed.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Clean up journals of typeOne 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 365Movement: Yes, all other types: No

Common errors and fixes

MessageWhat 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

  1. Count posted and unposted Movement journals before the run.
  2. Run the job in a copy of production with only Movement set to Yes.
  3. Check that no posted Movement journals remain and the unposted count is the same.
  4. Check that Counting journals are untouched.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Delete posted inventory journalsRun 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.Which posted journal types may be deleted?Setting every journal type to Yes. Journals some teams still look up, such as counting journals, are deleted too.Test: Only posted journals of the chosen type 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: 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 laterDeletes posted inventory journals of the selected types. Microsoft Learn
Technical architect

6Technical

Menu itemaction:InventJournalCleanUp 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 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 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:InventJournalCleanUp
Data migrationLoad 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
Everyone

8Sources

To cite this step: IM-JOBA-090, Delete posted inventory journals. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/IM-JOBA-090