BeyondERP.Newsletter
Menu

Setup step on the Restore broken templates page · Organization administration

Restore missing ER templates

Run the job after a database copy when ER formats can't find their templates.

Used by
Electronic reporting developer, Electronic reporting functional consultant
Business process
Administer system features
Menu item
action:ERSolutionRestoreBrokenAttachments
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, “A missing template is restored”, 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 job that restores Electronic reporting templates from the backup copy in the database to the primary storage location.
What you do hereUse this periodic task to fix formats whose templates are missing from storage, either right away or as a batch job.
ExampleFor example, after a production instance is moved to a new sandbox, templates kept in Blob storage can't be reached, so you restore them from the backup copy.
Restore broken templates 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 processAdminister system features
Menu pathOrganization administration › Electronic reporting › Restore broken templates
Set up firstConfigurations (template missing) Microsoft Learn
Used next byConfigurations (run the format again) Microsoft Learn
Related pagesMigration cleanup Microsoft Learn
In this process Follow inbound ER files · Group related work item queues
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 a database is moved to another environment, or when users get an Action center message about a missing ER template.
How oftenOn demand, when templates are missing. Set Automatically run the procedure of restoring the broken templates in batch to On in the ER User parameters to have the job scheduled automatically.
Batch settingsRun it as a batch job when many ER formats are affected; it appears as Restore broken templates from internal database backup on the Batch job page.
What the output showsTemplates copied from the database backup storage back to the primary storage location, listed in the job's execution log. A template that isn't restored usually had no backup copy, for example because Stop making backup copies of templates was set to Yes.

Source: Microsoft Learn

Setup steps on this page

Restore missing ER templates

Run the job after a database copy when ER formats can't find their templates.

Steps from Microsoft

  1. Go to Organization administration > Electronic reporting > Restore broken templates.
  2. Use it when an ER format fails because its template is missing from the primary storage location, for example after a database was copied to a sandbox. It works only when Azure Blob storage is the storage location for ER templates.
  3. Choose whether to restore the templates right away or schedule the restore as a batch job.
  4. Start the restore, then open the execution log of the job, which lists the templates restored from backup storage to primary storage.

Source: Microsoft Learn

Common errors and fixes

MessageWhat to do
An ER format fails because its template is missingRun Restore broken templates; if no backup copy exists, delete and re-import the format with Migration cleanup. Microsoft Learn
Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Restore missing ER templatesKeep Stop making backup copies of templates set to No, and run Restore broken templates after each database copy to another environmentThe restore works from the backup copies that ER keeps in the database; with backups stopped, there is nothing to restore from.How are missing templates fixed after a copy?Turning off template backups to save space, which leaves Migration cleanup (delete and re-import) as the only fix after a copy.Test: A missing template is restored

Feature management and licence

Licence or add-inOn this system the page opens for Electronic reporting functional consultant and Electronic reporting developer. Electronic reporting consultants and developers run it after an environment copy. No Feature management feature needs to be turned on for this page.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyWhole environment: it restores the templates of all ER formats whose template is missing from primary storage. Microsoft Learn
Can it be undoneReversible: It only writes missing template files back from the backup; ER configurations aren't changed.
If you change it laterWrites missing ER template files back to the primary storage location from the backup copies in the application database. Microsoft Learn
Technical architect

6Technical

Menu itemaction:ERSolutionRestoreBrokenAttachments
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
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 itElectronic reporting functional consultant ERFunctionalConsultantElectronic reporting developer ERDeveloperGive people one of these roles. On this system, 2 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:ERSolutionRestoreBrokenAttachments
Data migrationLoad order: Restore broken templates has no data entity in Data management, so it can't be loaded from a file or a configuration template. It is a job, not data: run it in the environment where the templates are missing.Checked in Dynamics 365
Everyone

8Sources