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 is
A periodic task that deletes stored inventory value reports that were run before a selected date.
What you do here
Use 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.
Example
For 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.
The page in Dynamics 365. page title tab to open what to set or check
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 it
When stored inventory value reports take up too much database space and the older ones are exported and archived.
How often
On demand; Microsoft notes that you typically run this job manually each time it's needed.
Batch settings
You 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 shows
Stored 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.
Remove stored inventory value reports older than a date after exporting them.
Steps from Microsoft
Go to Cost management > Inventory accounting > Clean up > Inventory value report data clean up.
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.
In Delete inventory value report executed before, select the date before which all stored inventory value reports are deleted.
On the Records to include FastTab, select Filter to narrow the set of reports, for example by report name, then select OK.
Open Inventory value report storage and check that only reports generated before the date are gone.
The date before which all stored inventory value reports are deleted.Microsoft Learn
Records to include
Filter that limits which stored inventory value reports the job processes.Checked in Dynamics 365
Run in the background
Sends 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
Message
What to do
A deleted month-end report is needed again
Deleted 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
An export file exists for every deleted report.
Reports generated after the date are still listed in Inventory value report storage.
Export 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.
Per 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 undone
One-way: Deleted reports can't be restored.
If you change it later
Deleted inventory value reports might not be possible to generate again later, so export them before you delete them. Microsoft Learn
Technical architect
6Technical
Menu item
action:InventValueReportTempBufferCleanUpChecked 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 it
To 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
Load 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
Checked in a working Dynamics 365 system, version 10.0.49: the menu item, form, table and security, the page.
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