Purchasing manager, Quality control clerk, Receiving clerk and 3 more roles
Business process
Manage inventory quality
Menu item
action:PdsUpdateExpDate
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. Some of it is Dynamics AX 2012 documentation, an earlier version.
Tests
A ready-to-run test, “Expiration date updated for the selected batch only”, 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 job that updates the expiration date of one or more inventory batches.
What you do here
Use this periodic task to recalculate batch expiration dates from the product's shelf life, or to set a fixed date.
Example
For example, a lab test shows that BEAT's batch B-2026-0388 of syrup BEAT-000630 keeps only until 12/31/2026 instead of 3/31/2027. BEAT runs Update expiry dates with Fixed and 12/31/2026 for that one batch, and master planning stops using it after that date.
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 batch expiration dates must change, for example after the Shelf life period in days of the product changed or a batch was found to expire earlier or later.
How often
On demand, when expiration dates need to change.
Batch settings
Set up the batch job only when many batches are selected.
What the output shows
Updated expiration dates on the selected batches. Master planning and reservation rules that use shelf life follow the new date, so an unexpected expired batch usually means a wrong manufacturing date or shelf life period.
Recalculate or set the expiration date of selected batches.
Steps from Microsoft
Go to Inventory management > Periodic tasks > Batches > Update expiry dates.
In Data calculation type, select System to set the expiration date to the batch's manufacturing date plus the shelf life period in days, or Fixed to enter the date yourself.
If you selected Fixed, enter the new date in Expiration date.
Select Select and filter the batches whose expiration date should change.
Select OK, then open the batches and check the new expiration dates; the batch is unusable after that date.
With System, the expiration date is the batch production date plus the shelf life period in days; with Fixed, you enter the date.Microsoft Learn
System
Expiration date
The new expiration date to apply when the Fixed type is used.Microsoft Learn
12/31/2026
Common errors and fixes
Message
What to do
The expiration date calculated by the System type looks wrong.
System adds the item's Shelf life period in days to a date of the batch. Check the batch's manufacturing date and the Shelf life period in days on the released product, then run the job again. Microsoft Learn
Test checklist
Note the expiration date of two batches of an item.
Change the item's Shelf life period in days or choose Fixed with a new date.
Run the job for one batch only.
Check that this batch shows the new expiration date and the other is unchanged.
Use System after the Shelf life period in days of the product changed, and Fixed only for single batches with a known new date; always filter the batches before you select OK.System recalculates the date from the batch and the product's Shelf life period in days; Fixed writes the same date to every selected batch.
On the live system, Quality control clerk, Shipping clerk, Purchasing manager, Sales manager and Warehouse worker use this page.
Checked in Dynamics 365
Solution architect
5Design impact
Shared or per company
Per company: the job reads and changes only the data of the legal entity you run it in. Batch dates are stored on the batches of that company. Checked in Dynamics 365
Can it be undone
Reversible with effort: A new run overwrites the dates again.
If you change it later
Changes the expiration date of the selected batches, which affects whether they can still be used, planned and sold. Microsoft Learn
Technical architect
6Technical
Menu item
action:PdsUpdateExpDateChecked in Dynamics 365
Form
DialogChecked in Dynamics 365
Who can open it
6 security roles. Select a role to see its duties and privileges.
PrivilegeMaintain update of shelf life datesPdsUpdateExpDateMaintain
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 itQuality control clerk InventQualityControlClerkShipping clerk InventShippingClerkPurchasing manager TradePurchasingManagerSales manager TradeSalesManagerWarehouse worker WMSWarehouseWorkerGive people one of these roles. On this system, 6 roles can run this page.Checked in Dynamics 365
Load order: Update expiry dates has no data entity in Data management. Batch dates are loaded with the batches themselves. Load released products and batches with their dates first; run this job in the new system only when dates must change.Checked in Dynamics 365