Finalize and end production in Dynamics 365 Finance
Menu item
action:ProdTableCleanUp
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 old ended orders 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 task that deletes production orders that have ended.
What you do here
Use this task to remove ended production orders from the system once the business has confirmed that the data is no longer required.
Example
For example, once BEAT's 2025 year end is audited, the cost accountant runs the cleanup with Ended before 12/31/2025, permanently deleting 3,400 ended production orders from 2025 and earlier while every open order stays.
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 the production orders have ended and their costs and variances have been analyzed and reported for the period.
How often
On demand, for example once old financial years are closed; Learn gives no fixed cadence.
Batch settings
Run it in the background outside business hours when you delete many orders at once.
What the output shows
Ended production orders that match the filter are deleted. This is the same routine as Production control > Periodic tasks > Clean up > Production orders cleanup. If an order you need is missing, the filter was too wide.
Permanently delete production orders that ended before a date that is outside the audit period.
Steps from Microsoft
Go to Cost management > Manufacturing accounting > Clean up > Production orders cleanup.
Agree with production and finance which ended orders are no longer needed for audits or cost analysis, and test the cleanup in a test environment first.
In Ended before, enter the date; production orders that ended before it are deleted for good.
Run it in the background outside business hours when many orders are deleted, then select OK.
Open All production orders and check that only ended orders before the date are gone.
Production orders that ended before this date are deleted. The dialog is titled Delete productions.Checked in Dynamics 365
12/31/2025
Run in the background
Sends the job to the batch framework with a batch group, recurrence and alerts instead of running it while you wait.Checked in Dynamics 365
Common errors and fixes
Message
What to do
A production order needed for an audit is gone
Deleted production orders can't be restored. Set Ended before to a date before every period that may still be audited, and run the cleanup only after the business confirms the data isn't needed. Microsoft Learn
Test checklist
Only orders with status Ended that match the filter were deleted.
Started and reported-as-finished orders are untouched.
Run it at most once a year, after the year-end audit, with Ended before set to the end of the oldest fiscal year you no longer need.The job deletes ended production orders with their history permanently; Microsoft asks for a detailed analysis and a test run before any cleanup routine.
DutyMaintain system settingsSysServerSettingsMaintain
PrivilegeDelete production ordersProdTableCleanUpProcess
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 orders cleanup has no data entity in Data management, so it can't be loaded from a file or a configuration template. It deletes ended production orders; nothing is migrated.Checked in Dynamics 365