BeyondERP.Newsletter
Menu

Setup step on the Production orders cleanup page · Cost management

Delete ended production orders after the audit

Permanently delete production orders that ended before a date that is outside the audit period.

Used by
Information technology manager
Business process
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 isA periodic task that deletes production orders that have ended.
What you do hereUse this task to remove ended production orders from the system once the business has confirmed that the data is no longer required.
ExampleFor 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.
Production orders 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

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 itAfter the production orders have ended and their costs and variances have been analyzed and reported for the period.
How oftenOn demand, for example once old financial years are closed; Learn gives no fixed cadence.
Batch settingsRun it in the background outside business hours when you delete many orders at once.
What the output showsEnded 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.

Source: Microsoft Learn

Setup steps on this page

Delete ended production orders after the audit

Permanently delete production orders that ended before a date that is outside the audit period.

Steps from Microsoft

  1. Go to Cost management > Manufacturing accounting > Clean up > Production orders cleanup.
  2. 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.
  3. In Ended before, enter the date; production orders that ended before it are deleted for good.
  4. Run it in the background outside business hours when many orders are deleted, then select OK.
  5. Open All production orders and check that only ended orders before the date are gone.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Ended beforeProduction orders that ended before this date are deleted. The dialog is titled Delete productions.Checked in Dynamics 36512/31/2025
Run in the backgroundSends 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

MessageWhat to do
A production order needed for an audit is goneDeleted 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

  1. Only orders with status Ended that match the filter were deleted.
  2. Started and reported-as-finished orders are untouched.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Delete ended production orders after the auditRun 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.How long are ended production orders kept?Using a recent Ended before date and losing the cost history used in variance analysis.Test: Only old ended orders are deleted

Feature management and licence

Licence or add-inIn this system 1 role can open this page, among them Information technology manager.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: production orders are kept per legal entity, and the job deletes the ended orders of the current legal entity. Microsoft data model
Can it be undoneOne-way: Deleted production orders can't be restored.
If you change it laterDeletes ended production orders, so they no longer appear in production order lists and cost analysis. Microsoft Learn
Technical architect

6Technical

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

8Sources