BeyondERP.Newsletter
Menu

Setup step on the Migration cleanup page · Organization administration

Clean up ER formats after an environment move

Delete ER format configurations whose templates can't be reached, so they can be imported again.

See how to set it up Back to Organization administration

Used by
Electronic reporting developer, Electronic reporting functional consultant
Business process
Administer system features
Menu item
ERMigrationCleanup
Main table
ERSolutionTable
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, “A broken format is removed and imported again”, 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 page that deletes Electronic reporting format configurations whose templates can't be reached after an environment is moved, so they can be imported again.
What you do hereUse this page to delete and then re-import ER format configurations whose templates point to storage the current environment can't reach.
ExampleFor example, after a production environment is copied to a new sandbox, ER formats that use templates fail, because the templates are still in the production storage.
Migration 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 an environment move, for example production copied to a sandbox, when an ER format can't run or be deleted because its template is missing, and only after deleting it on the Configurations page failed.
How oftenOn demand, only after an environment migration.
What the output showsThe selected ER format configuration removed from the application database, ready to be imported again. A re-import that fails means the template file still exists in Blob storage.

Source: Microsoft Learn

Setup steps on this page

Clean up ER formats after an environment move

Delete ER format configurations whose templates can't be reached, so they can be imported again.

Steps from Microsoft

  1. Go to Organization administration > Periodic > Migration cleanup.
  2. Select the ER format configuration that you can't run or delete because its template can't be reached.
  3. Select Delete and confirm. Only the database records are removed; the job doesn't look for the template file in Blob storage.
  4. Import the deleted ER format configuration into the current environment again.
  5. If the import fails, find the template file in Blob storage, delete it by hand, and import again.

Source: Microsoft Learn

Common errors and fixes

MessageWhat to do
The re-import of the deleted configuration failsThe template file still exists in Blob storage: find it, delete it by hand, and import the configuration again. Microsoft Learn

Test checklist

  1. The ER format configuration is gone from the Configurations tree.
  2. The re-imported configuration runs and finds its template.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up ER formats after an environment moveFirst recover templates with the Backup storage of ER templates feature; use Migration cleanup only for formats that still can't run or be deletedMigration cleanup removes only the database records and doesn't look for the template file, so a re-import fails while the file is still in storage.How should ER templates be recovered after a database copy?Deleting here before trying to delete the configuration on the Configurations page or recovering it from the template backup.Test: A broken format is removed and imported again

Feature management and licence

Feature to turn onBackup storage of ER templates (Recommended)
Licence or add-inOn this system the page opens for Electronic reporting functional consultant and Electronic reporting developer. Microsoft prefers the Backup storage of ER templates feature to recover templates after an environment move.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyWorks on the ER format configurations of the instance; ER configurations aren't kept per company. Microsoft Learn
Can it be undoneNot reversible: The configuration is deleted from the database; the only way back is to import it again.
If you change it laterIf the template file still exists in storage, deleting the configuration here removes only the database records, and you can't re-import that configuration until the file is removed. Microsoft Learn
Technical architect

6Technical

Menu itemERMigrationCleanup Checked in Dynamics 365
FormERMigrationCleanup Checked in Dynamics 365
TableERSolutionTableShown as “Configurations” in Record infoChecked in Dynamics 365
Who can open it

2 security roles. Select a role to see its duties and privileges.

  • RoleElectronic reporting developerERDeveloper
    • DutyConfigure Electronic reporting configurationERSolutionConfigure
      • PrivilegeMaintain configurationsERMaintainSolutions
  • RoleElectronic reporting functional consultantERFunctionalConsultant
    • DutyConfigure Electronic reporting configurationERSolutionConfigure
      • PrivilegeMaintain configurationsERMaintainSolutions
Checked in Dynamics 365
Roles to set it up and use itTo set it up or change itElectronic reporting functional consultant ERFunctionalConsultantElectronic reporting developer ERDeveloperGive people one of these roles. On this system, 2 roles can open this page.Checked in Dynamics 365
Actions on the pageOptionsChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=ERMigrationCleanup
Data migrationLoad order: Migration cleanup has no data entity in Data management, so it can't be loaded from a file or a configuration template. ER configurations aren't loaded through Data management; import them again from the configuration repository after the cleanup.Checked in Dynamics 365
Everyone

8Sources

To cite this step: OA-ER-800, Clean up ER formats after an environment move. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/OA-ER-800