A cleanup job that removes redundant data left behind by price calculations in costing versions, such as data from incomplete, terminated or canceled calculation runs.
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
PAGE GUIDEWhat the page does and how to use it8 sections. Choose a role to highlight what matters to you.
Everyone
1What it is and why
What it is
A 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 here
Run 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.
Example
For 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.
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
After price calculations from costing versions were stopped, canceled or failed and left redundant data behind.
How often
On demand, after interrupted price calculation runs.
Batch settings
Run it in the background as a batch job when many interrupted calculation runs left data behind.
What the output shows
Leftover 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.
The 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 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
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
Run 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.
Per company: it cleans the price calculation data of the costing versions in the current legal entity. Microsoft Learn
Can it be undone
No: Removed calculation data can't be restored. It is redundant data from runs that didn't complete, so run the calculation again if you need its result. Microsoft Learn
If you change it later
Deletes data left over by incomplete, terminated or canceled price calculation jobs in costing versions. Microsoft Learn
Technical architect
6Technical
Menu item
action:BomCalcItemTaskCleanupChecked in Dynamics 365
Who can open it
2 security roles. Select a role to see its duties and privileges.
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 it
To 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
Load 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