BeyondERP.Newsletter
Menu

Setup step on the Inventory value report data clean up page · Cost management

Archive and delete stored inventory value reports

Remove stored inventory value reports older than a date after exporting them.

Used by
Accounting manager, Inventory accountant, Inventory accountant clerk
Business process
Manage data
Menu item
action:InventValueReportTempBufferCleanUp
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 stored reports 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 stored inventory value reports that were run before a selected date.
What you do hereUse this task to delete several older inventory value reports at the same time, so that stored reports do not take up too much space in the database.
ExampleFor example, BEAT keeps every month-end inventory value report in Inventory value report storage. Once a year the inventory accountant exports the 2024 reports to the archive and runs this job with 1/1/2025, which removes the 12 stored 2024 reports.
Inventory value report data clean up 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 itWhen stored inventory value reports take up too much database space and the older ones are exported and archived.
How oftenOn demand; Microsoft notes that you typically run this job manually each time it's needed.
Batch settingsYou can schedule it on the Run in the background FastTab, but normally run it once by hand after the export is done.
What the output showsStored inventory value reports generated before the date are removed from Inventory value report storage. A report still listed after the run was generated on or after the date, or was excluded by the filter.

Source: Microsoft Learn

Setup steps on this page

Archive and delete stored inventory value reports

Remove stored inventory value reports older than a date after exporting them.

Steps from Microsoft

  1. Go to Cost management > Inventory accounting > Clean up > Inventory value report data clean up.
  2. First export every stored inventory value report you plan to delete through the Inventory value report storage data entity and keep the file outside the system.
  3. In Delete inventory value report executed before, select the date before which all stored inventory value reports are deleted.
  4. On the Records to include FastTab, select Filter to narrow the set of reports, for example by report name, then select OK.
  5. Open Inventory value report storage and check that only reports generated before the date are gone.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
Delete inventory value report executed beforeThe date before which all stored inventory value reports are deleted.Microsoft Learn
Records to includeFilter that limits which stored inventory value reports the job processes.Checked in Dynamics 365
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 deleted month-end report is needed againDeleted reports can't be restored and might not be possible to generate again for old periods. Export each report through the Inventory value report storage entity before deleting it. Microsoft Learn

Test checklist

  1. An export file exists for every deleted report.
  2. Reports generated after the date are still listed in Inventory value report storage.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Archive and delete stored inventory value reportsExport the reports through the Inventory value report storage entity, then delete reports older than the audit retention period, once a year, by hand.Old reports might not be possible to generate again because the system may time out working back through the transactions.How long are stored inventory value reports kept in the system?Deleting reports without an export and then being unable to reproduce a year-end inventory value.Test: Only old stored reports are deleted

Feature management and licence

Feature to turn onInventory value report data clean up (Mandatory from 10.0.29)Inventory value report storage (Mandatory from 10.0.29)
Licence or add-inIn this system 3 roles can open this page, among them Inventory accountant, Inventory accountant clerk and Accounting manager.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: stored inventory value reports belong to the legal entity they were run in, and the job deletes those of the current legal entity. Microsoft Learn
Can it be undoneOne-way: Deleted reports can't be restored.
If you change it laterDeleted inventory value reports might not be possible to generate again later, so export them before you delete them. Microsoft Learn
Technical architect

6Technical

Menu itemaction:InventValueReportTempBufferCleanUp Checked in Dynamics 365
Who can open it

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

  • RoleAccounting managerLedgerAccountingManager
    • DutyReview inventory valuation process performanceInventValueInvValuationProcessPerfRevie
      • PrivilegeGenerate the inventory value reportInventValueGenerate
    • DutyInquire into inventory valuation statusInventValueInvValuationStatusInquire
      • PrivilegeGenerate the inventory value reportInventValueGenerate
  • RoleInventory accountantInventCostAccountant
    • DutyReview inventory valuation process performanceInventValueInvValuationProcessPerfRevie
      • PrivilegeGenerate the inventory value reportInventValueGenerate
    • DutyInquire into inventory valuation statusInventValueInvValuationStatusInquire
      • PrivilegeGenerate the inventory value reportInventValueGenerate
  • RoleInventory accountant clerkInventCostCostClerk
    • DutyInquire into inventory valuation statusInventValueInvValuationStatusInquire
      • PrivilegeGenerate the inventory value reportInventValueGenerate
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 itInventory accountant InventCostAccountantInventory accountant clerk InventCostCostClerkAccounting manager LedgerAccountingManagerGive people one of these roles. On this system, 3 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:InventValueReportTempBufferCleanUp
Data migrationLoad order: Inventory value report data clean up has no data entity in Data management, so it can't be loaded from a file or a configuration template. It deletes stored reports. Export them first with the Inventory value report storage entity (InventInventoryValueReportStorageV2Entity), which Data management lists.Checked in Dynamics 365
Everyone

8Sources

To cite this step: CM-CLN-060, Archive and delete stored inventory value reports. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/CM-CLN-060