BeyondERP.Newsletter
Menu

Setup step on the Clean up registrations page · Production control

Clean up processed registrations

Keep the raw registrations table small so time and attendance stays fast.

Used by
Production supervisor
Business process
Manage data
Menu item
action:JmgCleanupTermRegPC
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, “Registrations older than the maximum age move to the archive”, 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 cleanup routine that removes old, processed time and attendance registrations from the raw registrations table by moving them to an archive table, exporting them to a file, or deleting them.
What you do hereUse this page to keep the raw registrations table small so that time and attendance performance does not degrade, choosing a cleanup mode and the maximum age in days of registrations to keep.
ExampleFor example, with a maximum age of 20, every registration older than 20 days is archived in the way selected in the Cleanup mode field.
Clean up registrations 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 › Clean up registrations
Set up firstRaw registrations Microsoft Learn
Used next byRaw registrations archive Microsoft Learn
Related pagesArchive future registrations Microsoft Learn Posted registrations Microsoft Learn
In this process Clean up ended production orders · Remove future-dated 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 itWhen old, processed time and attendance registrations make the raw registrations table large enough to slow the system down.
How oftenPeriodically, as Microsoft recommends; set the interval to match the Maximum age you keep.
Batch settingsRun it as a batch job at a regular interval so the raw registrations table stays small.
What the output showsProcessed registrations older than the maximum age are moved to the archive, exported to the file, or deleted. Registrations that remain are newer than the maximum age or not processed yet.

Source: Microsoft Learn

Setup steps on this page

Clean up processed registrations

Keep the raw registrations table small so time and attendance stays fast.

Steps from Microsoft

  1. Go to Production control > Periodic tasks > Clean up > Clean up registrations.
  2. In the Cleanup mode field, select To table to move old registrations to the raw registrations archive, To file to export them, or Delete to remove them permanently.
  3. In the Maximum age field, enter the number of days of registrations to keep in the raw registrations table, for example 20.
  4. If you selected To file, enter or select the export file in the File name field.
  5. Open Raw registrations archive afterwards to find registrations moved with To table; only processed registrations are cleaned up.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
Cleanup modeWhether old registrations are moved to the archive table, exported to a file, or permanently deleted.Microsoft Learn
Maximum ageRegistrations older than this many days are cleaned up.Microsoft Learn
File nameThe export file used when the mode is To file.Microsoft Learn

Common errors and fixes

MessageWhat to do
Recent registrations stay in the raw registrations tableThe cleanup doesn't touch data that isn't processed, and keeps registrations newer than the Maximum age. Calculate, approve and transfer them first. Microsoft Learn

Test checklist

  1. Processed registrations older than the maximum age are gone from raw registrations.
  2. They appear in the archive or file when you chose To table or To file.
  3. Unprocessed registrations remain.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up processed registrationsCleanup mode To table with a Maximum age that covers your payroll correction window, for example 60 days, as a recurring batch.Learn recommends periodic cleanup because registrations slow the application down; To table keeps them viewable in the archive.How should old registrations be cleaned up?Using Delete for registrations that may be needed later as documentation, for example in a pay dispute.Test: Registrations older than the maximum age move to the archive

Feature management and licence

Licence or add-inOn this system 1 role can run this page, among them Production supervisor. No Feature management feature needs to be turned on for this page.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: it cleans the time and attendance registrations of the legal entity you run it in. Microsoft Learn
Can it be undoneHard to reverse: Delete is permanent; To table keeps the data in the archive.
If you change it laterRegistrations removed with the Delete mode are gone permanently, so keep any registrations that may later be needed as documentation. Microsoft Learn
Technical architect

6Technical

Menu itemaction:JmgCleanupTermRegPC 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.

  • RoleProduction supervisorProdProductionSupervisor
    • DutyMaintain job correctionsJmgJobCorrectionsMaintain
      • PrivilegeClean up registrationsJmgCleanupTermReg
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 itProduction supervisor ProdProductionSupervisorGive 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:JmgCleanupTermRegPC
Data migrationLoad order: Clean up registrations has no data entity in Data management, because it is a periodic job that changes records that already exist. Old registrations aren't migrated.Checked in Dynamics 365
Everyone

8Sources

To cite this step: PC-RPER-200, Clean up processed registrations. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/PC-RPER-200