BeyondERP.Newsletter
Menu

Setup step on the Production orders cleanup page · Production control

Clean up ended production orders

Delete production orders that ended long ago.

Used by
Information technology manager
Business process
Manage data
Menu item
action:ProdTableCleanUp
Setup steps
1 on this page

How this guide was checked

Source
Written from Microsoft's official Dynamics 365 documentation.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Run in a copy and check the result”, 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, BEAT keeps ended production orders for three years. In January 2027 the production controller deletes the orders that ended in 2023, about 4,800.00 orders, after a test run in a copy of production.
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

Business processManage data
Menu pathProduction control › Periodic tasks › Clean up › Production orders cleanup
Set up firstEnd Microsoft Learn
Used next byAll production orders Microsoft Learn
Related pagesProduction journals cleanup Microsoft Learn Production overview Microsoft Learn
In this process Clean up sales update history · Clean up processed registrations
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 production orders have ended and the business has confirmed their data is no longer required.
How oftenPeriodically, in line with your retention policy for ended orders.
Batch settingsRun it as a batch job outside business hours when many ended orders are deleted.
What the output showsEnded production orders are removed. Orders that remain are usually not Ended yet.

Source: Microsoft Learn

Setup steps on this page

Clean up ended production orders

Delete production orders that ended long ago.

Steps from Microsoft

  1. Go to Production control > Periodic tasks > Clean up > Production orders cleanup.
  2. Confirm with the business that ended orders older than your retention period are no longer needed, and run the cleanup in a test environment first.
  3. In the Delete productions dialog, under Parameters, enter the Ended before date.
  4. Run it in the background outside business hours, then search for a few deleted order numbers and check that open orders are untouched.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Ended beforeThe date limit of the cleanup: production orders that ended before this date are deleted.Checked in Dynamics 36531/12/2023

Common errors and fixes

MessageWhat to do
Some orders are still listed after the cleanupOnly orders with status Ended are deleted. End the orders first, or leave them if they are still open. Microsoft Learn

Test checklist

  1. In a copy of production, note the number of ended orders older than the retention period.
  2. Run Production orders cleanup for those orders.
  3. Search for two of the deleted order numbers.
  4. Check that the count of open orders is unchanged.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up ended production ordersRun it once a year for orders ended before your retention period, in batch outside business hours, after a test in a copy of production.It deletes only ended orders, which can no longer take costs, so open work is never touched; Learn asks for a business check and a test first.How long should ended production orders be kept?Deleting recent ended orders that cost accountants still use for variance analysis.Test: Run in a copy and check the result

Feature management and licence

Licence or add-inOn this system 1 role can run this page, among them Information technology manager. The same cleanup is also on Cost management > Manufacturing accounting > Clean up. Give the privilege only to the people who run data housekeeping.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer 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 undoneIrreversible: Deleted orders can't be restored.
If you change it laterDeletes ended production orders, so their details are no longer available for inquiries on those orders. Microsoft Learn
Technical architect

6Technical

Menu itemaction:ProdTableCleanUp
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, because it is a periodic job that changes records that already exist. Ended orders aren't migrated; clean them up in the old system before extraction if they aren't needed.Checked in Dynamics 365
Everyone

8Sources

To cite this step: PC-RPER-190, Clean up ended production orders. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/PC-RPER-190