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, “Cleanup removes only the selected journals”, 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 cleanup routine that deletes production journals that are no longer used: picking lists, route cards, job cards and report as finished journals of the kind you select.
What you do here
Use this page to remove posted production journals, such as picking lists, route cards, job cards and report-as-finished journals, once the business has confirmed the data is no longer required. It can run as a batch job.
Example
For example, BEAT keeps production journals for two years. In January 2027 the production controller tests the cleanup in a copy of production for route card journals dated 2024, checks the result with the cost accountant, and then runs it in production in batch.
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
After a detailed analysis has confirmed that the posted production journals are no longer required.
How often
Periodically, as agreed with the business for data retention.
Batch settings
Run it as a batch job outside business hours when many journals are deleted.
What the output shows
The posted production journals of the selected type are deleted. Unposted journals stay, so journals still in the list are usually not posted.
Delete production journals that are no longer needed to keep tables small.
Steps from Microsoft
Go to Production control > Periodic tasks > Clean up > Production journals cleanup.
Confirm with the business that the posted production journals are no longer needed, and test the cleanup in a test environment first.
In the Clean up field, select which posted production journals to delete, such as picking lists, route cards, job cards or report-as-finished journals.
Open the production journals afterwards and confirm that only the selected posted journals are gone.
Journals that were still needed for an audit are gone
There is no undo. Agree a retention period with the business first, test the run in a copy of production, and limit the selection to journals outside that period. Microsoft Learn
Test checklist
Posted journals of the selected type are gone.
Unposted journals remain.
Order history needed for reporting is still available.
Run it once or twice a year for journals older than your retention period, in batch outside business hours, after a test in a copy of production.Learn says cleanup routines should run only after the business confirms the data is no longer required, and always after a test in a test environment.
On this system 1 role can run this page, among them Information technology manager. Give the privilege only to the people who run data housekeeping. No Feature management feature is needed.
Checked in Dynamics 365
Solution architect
5Design impact
Shared or per company
Per company: the job works on the production orders of the legal entity you run it in. Production orders are company data (the Production orders entity is not shared in Data management). Checked in Dynamics 365
Can it be undone
Irreversible: Deleted journals can't be restored.
If you change it later
Deleted journals cannot be recovered, so run the routine only after confirming the journals are no longer needed and test it in a non-production environment first. Microsoft Learn
Technical architect
6Technical
Menu item
action:ProdJournalCleanUpChecked 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
PrivilegeDelete production journalsProdJournalCleanUpProcess
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: Production journals cleanup has no data entity in Data management, because it is a periodic job that changes records that already exist. Old journals aren't migrated; run the cleanup in the old system before extraction if they aren't needed.Checked in Dynamics 365