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, “Old cache records are removed”, 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 cleans up the costing sheet cache, which holds costing sheets temporarily to help generate prices.
What you do here
Use this task to delete records in the costing sheet cache that have reached a specified age in days.
Example
For example, BEAT runs this job every night with Delete cache records aged (days) set to 7, so costing sheet records built for the week's price calculations are removed and rebuilt the next time a costing sheet is shown.
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 the costing sheet cache has grown large, for example after many BOM calculations or price calculations.
How often
On demand, or on a recurring batch schedule that suits how often you run price calculations.
Batch settings
A recurring batch job outside business hours keeps the cache small without manual work.
What the output shows
Costing sheet cache records of the specified age or older are removed. Costing sheets are generated again when needed, so a slower first display afterwards is normal.
Records in the cache that are this many days old or older are deleted. Only numbers higher than 0 can be entered.Checked in Dynamics 365
7
Use truncate instead of delete
A switch on the dialog, set to Yes in BEAT; while it is on, the age field is unavailable.Checked in Dynamics 365
Yes
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
The age field can't be edited
Use truncate instead of delete is set to Yes, which makes the age field unavailable on the dialog. Set the switch to No to delete by age. Checked in Dynamics 365
Schedule the job as a recurring batch job outside business hours, sized to how often price calculations run.The CostSheetCache table only holds costing sheets temporarily to help generate prices, so old records can go and are rebuilt when needed.
Load order: Clean up the costing sheet cache has no data entity in Data management, so it can't be loaded from a file or a configuration template. The cache holds temporary costing sheets that the system rebuilds; nothing is migrated.Checked in Dynamics 365