BeyondERP.Newsletter
Menu

Setup step on the Inventory on-hand report data clean up page · Inventory management

Delete old on-hand report data

Run Inventory on-hand report data clean up safely and only when the data is no longer needed.

Used by
Accounting manager, Buying agent, Customer service manager and 28 more roles
Business process
Manage data
Menu item
action:InventOnhandStorageReportCleanUp
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 runs before the date lose their data”, 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 deletes the stored on-hand data of reports that were run before a given date.
What you do hereUse this periodic task to remove saved data from old on-hand reports.
ExampleFor example, BEAT stores an Inventory on-hand report every month-end and has 36 stored runs. On a Sunday, when nobody runs the report, it deletes the stored data of runs before 1/1/2026 and keeps the last ten months.
Inventory on-hand 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

Business processManage data
Menu pathInventory management › Periodic tasks › Clean up › Inventory on-hand report data clean up
Set up firstInventory on-hand report storage Microsoft Learn
Used next byInventory on-hand report storage Microsoft Learn
Related pagesInventory value report data clean up Microsoft Learn
In this process Consolidate old inventory transactions · Delete old dimension history report data
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 data from old Inventory on-hand report runs is no longer needed, at a time when nobody is running that report.
How oftenOn demand, when old report data has piled up. Microsoft gives no fixed interval.
Batch settingsSchedule it at a time when the Inventory on-hand report isn't running.
What the output showsNo report. The stored on-hand data of report runs before the date is deleted. If someone needs an old run, it must be run again; it then shows on-hand as of the new run.

Source: Microsoft Learn

Setup steps on this page

Delete old on-hand report data

Run Inventory on-hand report data clean up safely and only when the data is no longer needed.

Steps from Microsoft

  1. Go to Inventory management > Periodic tasks > Clean up > Inventory on-hand report data clean up.
  2. Read the warning: don't run the cleanup while the Inventory on-hand report is running.
  3. In Delete inventory on-hand report executed before, enter the newest date to keep. Stored data of reports run before that date is deleted.
  4. Use Records to include to limit which report runs are cleaned up, and set batch options if needed.
  5. Afterwards, open the stored Inventory on-hand report runs: only runs from that date onward still have their data.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
Delete inventory on-hand report executed beforeData from reports run before this date is deleted.Microsoft Learn 1/1/2026

Common errors and fixes

MessageWhat to do
An old on-hand report run no longer has data.It was executed before the date you entered. Run the report again; it then shows on-hand as of the new run, not the old date. Microsoft Learn

Test checklist

  1. Count the stored Inventory on-hand report runs before and after a date.
  2. Run the job in a copy with that date.
  3. Check that only runs from the date onward still have data.
  4. Open one newer run and check its totals.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Delete old on-hand report dataKeep the runs finance needs, for example the last 12 month-ends, and schedule the cleanup when nobody runs the Inventory on-hand report.The job deletes report data executed before the newest date to keep, and the dialog warns not to run it while the report runs.How many stored on-hand report runs should be kept?Deleting month-end runs that auditors still use as evidence.Test: Only runs before the date lose their data

Feature management and licence

Licence or add-inOn the live system, Quality control manager, Warehouse manager, Materials manager, Quality control clerk and Production supervisor use this page.

Checked in Dynamics 365

Solution architect

5Design impact

Shared or per companyPer company: the job reads and changes only the data of the legal entity you run it in. Checked in Dynamics 365
Can it be undoneIrreversible: The stored on-hand data of report runs before the date is deleted for good. Don't run the cleanup while the Inventory on-hand report is running. Run it first in a copy of production, such as a sandbox refreshed from production, and give the privilege only to the people who own the cleanup.
If you change it laterDeletes the stored on-hand data of Inventory on-hand report runs before the date you enter. Microsoft Learn
Technical architect

6Technical

Menu itemaction:InventOnhandStorageReportCleanUp Checked in Dynamics 365
FormDialog Checked in Dynamics 365
Who can open it

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

  • RoleAccounting managerLedgerAccountingManager
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleBuying agentTradeBuyingAgent
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleCustomer service managerTradeCustomerServiceManager
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleCustomer service representativeTradeCustomerServiceRepresentative
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyMaintain service ordersSMAServiceOrdersMaintain
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleField Service Integration UserFieldServiceIntegrationUser
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleField service technicianSMAFieldServiceTechnician
    • DutyInquire into service ordersSMAServiceOrderProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyMaintain service ordersSMAServiceOrdersMaintain
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleInventory accountantInventCostAccountant
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleInventory accountant clerkInventCostCostClerk
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleMaintenance clerkEntAssetMaintenanceClerk
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleMaintenance managerEntAssetMaintenanceManager
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleMaterials managerInventMaterialsManager
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into warehouse operation progressWMSWarehouseOperationProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleProduct design managerBOMProductDesignManager
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleProduct designerBOMProductDesigner
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleProduction managerProdProductionManager
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleProduction supervisorProdProductionSupervisor
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleProject assistantProjProjectClerk
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleProject managerProjProjectManager
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RolePurchasing managerTradePurchasingManager
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleQuality control clerkInventQualityControlClerk
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into warehouse operation progressWMSWarehouseOperationProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleQuality control managerInventQualityControlManager
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into warehouse operation progressWMSWarehouseOperationProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleReceiving clerkInventReceivingClerk
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into warehouse operation progressWMSWarehouseOperationProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleRetail serviceRetailService
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleRetail store managerRetailStoreManager
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleSales clerkTradeSalesClerk
    • DutyInquire into related inventory statusInventRelatedInventoryStsInqrWithoutRep
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleSales managerTradeSalesManager
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into service ordersSMAServiceOrderProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleSales representativeTradeSalesRepresentative
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into service ordersSMAServiceOrderProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleService delivery managerSMAServiceDeliveryManager
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into service ordersSMAServiceOrderProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyMaintain service ordersSMAServiceOrdersMaintain
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleService dispatcherSMADispatcher
    • DutyInquire into service ordersSMAServiceOrderProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyMaintain service ordersSMAServiceOrdersMaintain
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleShipping clerkInventShippingClerk
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into warehouse operation progressWMSWarehouseOperationProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleWarehouse managerWMSWarehouseManager
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into inventory statusInventStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into warehouse operation progressWMSWarehouseOperationProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
  • RoleWarehouse workerWMSWarehouseWorker
    • DutyInquire into related inventory statusInventRelatedInventoryStatusInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
    • DutyInquire into warehouse operation progressWMSWarehouseOperationProgressInquire
      • PrivilegeView on-hand inventory per itemInventOnhandItemView
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 itQuality control manager InventQualityControlManagerWarehouse manager WMSWarehouseManagerMaterials manager InventMaterialsManagerQuality control clerk InventQualityControlClerkProduction supervisor ProdProductionSupervisorGive people one of these roles. On this system, 31 roles can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:InventOnhandStorageReportCleanUp
Data migrationLoad order: Inventory on-hand report data clean up has no data entity in Data management. Stored report data is built by running the report in the new system; it isn't migrated.Checked in Dynamics 365
Everyone

8Sources

To cite this step: IM-JOBA-180, Delete old on-hand report data. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/IM-JOBA-180