BeyondERP.Newsletter
Menu

Setup step on the On-hand entries aggregation by financial dimensions page · Inventory management

Aggregate zero on-hand rows

Run On-hand entries aggregation by financial dimensions safely and only when the data is no longer needed.

Used by
Information technology manager
Business process
Manage data
Menu item
action:InventSumSummarize
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, “Inventory value unchanged after aggregation”, 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 rolls up on-hand records with zero quantity and cleans up records that are marked as closed.
What you do hereUse this periodic task to reduce the number of on-hand records and speed up any function that reads them, while inventory value reports still show the same values.
ExampleFor example, BEAT sells coffee by batch number and has 640,000 InventSum rows for fully sold batches, some still carrying a value of 0.35 after a standard cost revaluation. The job copies those values to the site-level row of each item and deletes the batch-level rows, and the Inventory value report for site 1 still shows 1,284,310.55.
On-hand entries aggregation by financial dimensions 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 › On-hand entries aggregation by financial dimensions
Set up firstInventory value Microsoft Learn
Used next byOn-hand list Microsoft Learn
Related pagesInventory and warehouse management parameters Microsoft Learn
In this process Delete zero warehouse on-hand records · Clean up stored cost calculation details
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 InventSum holds many rows with zero quantity, for example from batch numbers that are fully sold, and functions that read on-hand have become slow.
How oftenOn demand, when the number of zero-quantity on-hand rows has grown. Microsoft gives no fixed interval.
Batch settingsRun it as a batch job, because it goes through all InventSum records to find the ones with no open quantities.
What the output showsFewer InventSum rows: zero-quantity rows are rolled up to the site level and rows marked Closed are cleaned up. Inventory value reports still show the same values per site; a different value after the run points to a problem to raise before running it again.

Source: Microsoft Learn

Setup steps on this page

Aggregate zero on-hand rows

Run On-hand entries aggregation by financial dimensions safely and only when the data is no longer needed.

Steps from Microsoft

  1. Go to Inventory management > Periodic tasks > Clean up > On-hand entries aggregation by financial dimensions.
  2. Decide whether you still need detail by batch for sold items: the job copies the remaining value of closed InventSum rows with no open quantity (for example a sold batch number) to the row for the site of the same item, and then deletes the row for the batch.
  3. Use Records to include to limit which items are aggregated in this run.
  4. Run it in the background as a batch job when the InventSum table is large.
  5. Afterwards, run an inventory value report for an affected item and site: the value should be the same as before, with fewer on-hand rows behind it.

Source: Microsoft Learn

Common errors and fixes

MessageWhat to do
Inventory value per site is different after the run.It shouldn't be: the job copies remaining values to the site-level row. Stop and raise it before you run the job again. Microsoft Learn

Test checklist

  1. Run the Inventory value report per site for three items before the run.
  2. Run the job in a copy.
  3. Run the report again and check the values per site are the same.
  4. Check that batch-level rows with no open quantity are gone.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Aggregate zero on-hand rowsRun it as a batch job when InventSum holds many zero-quantity rows, and compare inventory value per site before and after in a copy first.Microsoft explains that inventory value reports aggregate InventSum to site level, so the batch-level rows aren't needed and the values stay the same.Should zero-quantity on-hand rows be aggregated?Expecting batch-level history for sold batches on the On-hand list afterwards.Test: Inventory value unchanged after aggregation

Feature management and licence

Licence or add-inOn the live system, Information technology manager 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: Batch-level InventSum rows with no open quantity are deleted after their value is copied to the site level; they can't be split back, and historical reports that read those rows can show incomplete data. 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 laterHistorical and "as of date" reports can show incomplete data for periods where on-hand rows were removed. Microsoft Learn
Technical architect

6Technical

Menu itemaction:InventSumSummarize Checked in Dynamics 365
FormSysOperationTemplateForm Checked in Dynamics 365
Who can open it

1 security role. Select a role to see its duties and privileges.

  • RoleInformation technology managerSysServerITManager
    • DutyMaintain system settingsSysServerSettingsMaintain
      • PrivilegeClose non-quantitative on-hand entriesInventSumSummarizeProcess
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 itInformation technology manager SysServerITManagerGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:InventSumSummarize
Data migrationLoad order: On-hand entries aggregation by financial dimensions has no data entity in Data management. On-hand rows come from opening on-hand journals and transactions in the new system; nothing is migrated for this job.Checked in Dynamics 365
Everyone

8Sources

To cite this step: IM-JOBA-140, Aggregate zero on-hand rows. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/IM-JOBA-140