BeyondERP.Newsletter
Menu

Setup step on the Price calculation redundant data cleanup page · Cost management

Clean up after interrupted price calculations

Remove the data left by price calculations that didn't complete.

Used by
Information technology manager, Inventory accountant clerk
Business process
Define costing versions in Dynamics 365 Supply Chain Management
Menu item
action:BomCalcItemTaskCleanup
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, “Cleanup after a canceled calculation”, 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 cleanup job that removes redundant data left behind by price calculations in costing versions, such as data from incomplete, terminated or canceled calculation runs.
What you do hereRun this job after price calculations from costing versions stopped or were canceled, when no other price calculation is running, so their leftover data doesn't build up.
ExampleFor example, a BEAT calculation of the 2027-STD costing version for 3,500 manufactured items is canceled halfway; once no other price calculation is running, the cost clerk runs this cleanup to remove the data the canceled run left behind, and then starts the calculation again.
Price calculation redundant data cleanup 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 itAfter price calculations from costing versions were stopped, canceled or failed and left redundant data behind.
How oftenOn demand, after interrupted price calculation runs.
Batch settingsRun it in the background as a batch job when many interrupted calculation runs left data behind.
What the output showsLeftover data from incomplete, terminated or canceled price calculation jobs is removed. The calculated prices in the costing versions are the result you keep; if a new calculation still behaves oddly, look at the batch log of the failed run.

Source: Microsoft Learn

Setup steps on this page

Clean up after interrupted price calculations

Remove the data left by price calculations that didn't complete.

Steps from Microsoft

  1. Go to Cost management > Inventory accounting > Clean up > Price calculation redundant data cleanup.
  2. Check on the Batch jobs page that no price calculation from a costing version is running, as the warning on the dialog asks.
  3. Use it after price calculations from costing versions were incomplete, terminated or canceled, because those runs leave redundant data behind.
  4. Select OK, or run it in the background for a large cleanup.
  5. Check the batch job log for errors and run the calculation from the costing version again.

Source: Microsoft Learn

Fields on the page

FieldWhat it means
WarningThe dialog warns that the function removes redundant data from the price calculation process, and that no price calculation job may be running when you start it.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
Warning: This function will remove redundant data from the price calculation process. Please ensure that there are no running price calculation jobs before executing the function.Wait until every price calculation batch job has ended, then run the cleanup. Checked in Dynamics 365
Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean up after interrupted price calculationsRun it after any canceled or failed costing version calculation, before the calculation is started again, and only when no price calculation is running.Incomplete, terminated or canceled calculation runs leave redundant data, and the dialog warns not to run the cleanup while price calculations run.Who runs the price calculation cleanup and when?Starting the cleanup while another price calculation batch job is still running.Test: Cleanup after a canceled calculation

Feature management and licence

Feature to turn onCleanup redundant data from price calculation (Added in 10.0.37, on by default from 10.0.41, mandatory from 10.0.43)
Licence or add-inIn this system 2 roles can open this page, among them Inventory accountant clerk and Information technology manager.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: it cleans the price calculation data of the costing versions in the current legal entity. Microsoft Learn
Can it be undoneOne-way: Removed data can't be restored; rerun the calculation if its result is needed.
If you change it laterDeletes data left over by incomplete, terminated or canceled price calculation jobs in costing versions. Microsoft Learn
Technical architect

6Technical

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

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

  • RoleInformation technology managerSysServerITManager
    • DutyMaintain system settingsSysServerSettingsMaintain
      • PrivilegeClean up cost calculation detailsBOMCalcCleanUpProcess
  • RoleInventory accountant clerkInventCostCostClerk
    • DutyMaintain cost masterCostingVersionCostMasterMaintain
      • PrivilegeClean up cost calculation detailsBOMCalcCleanUpProcess
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 clerk InventCostCostClerkInformation technology manager SysServerITManagerGive 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:BomCalcItemTaskCleanup
Data migrationLoad order: Price calculation redundant data cleanup has no data entity in Data management, so it can't be loaded from a file or a configuration template. It removes leftovers of calculations run in the system; nothing is migrated.Checked in Dynamics 365
Everyone

8Sources

To cite this step: CM-CLN-070, Clean up after interrupted price calculations. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/CM-CLN-070