Clean old ASN and packing structure data per module
Warehouse managementPeriodic tasksClean up
action:WHSASNPackingStructureCleanUp
Used by
Warehouse planner
Business process
Manage warehouse operations
Menu item
action:WHSASNPackingStructureCleanUp
Data entity
None for this page's own settings
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, “Clean old outbound ASN data”, 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 deletes advance shipping notice (ASN) and packing structure data for loads that were received (purchase) or shipped (sales) more than a given number of days ago.
What you do here
Use this task to remove old ASN and packing structure records, per module, so the tables don't keep growing. The dialog states that it deletes the ASN/Packing structure for the selected module where the related load was received or shipped before the number of days to keep.
Example
For example, BEAT keeps 365 days of outbound ASN packing structures (the dialog default) and runs the job monthly with Module = Sales order and Maximum clean-up records count = 100,000.
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 ASN and packing structure data of old loads is no longer needed by customers or downstream warehouses.
How often
Monthly, separately for each module.
What the output shows
ASN and packing structure records of loads older than the days to keep, up to the maximum count.
Source: Checked in Dynamics 365
Setup steps on this page
Clean old ASN and packing structure data per module
Use this job to delete ASN and packing structure data of loads received or shipped long ago.
Steps from Microsoft
Go to Warehouse management > Periodic tasks > Clean up > Clean up ASN/Packing structure.
In The number of days to keep, enter how long ASN data stays after the load was received or shipped (the dialog suggests 365).
In Module, select Sales order for outbound ASNs or the purchase option for inbound ASNs.
In Maximum clean-up records count, keep 100,000 or lower it to limit one run.
Set it up in Run in the background, then check an old load to see that its packing structure is gone.
Run it monthly per module with the 365-day default unless customers need ASNs for longer.The outbound ASN is built from the load's shipments and lines; once the structure is deleted it can't be sent again.
Warehouse management is part of the Dynamics 365 Supply Chain Management licence. In this system 1 role can open this page, among them Warehouse planner.
Per company: ASN and packing structure records belong to a legal entity (their Data management entities aren't shared). Checked in Dynamics 365
Can it be undone
Irreversible: Deleted ASN data can't be restored.
If you change it later
Deletes ASN and packing structure records of old loads. The outbound ASN is built from the load's shipments and load lines, so after the cleanup it can't be sent again for those loads. Microsoft Learn
Technical architect
6Technical
Menu item
action:WHSASNPackingStructureCleanUpChecked in Dynamics 365
Data entities
WHSOutboundLoadPackingStructureEntityOutbound load packing structures (Outbound load packing structures (sales); export them before cleaning if needed.) Microsoft data model WHSInboundLoadPackingStructureEntityInbound load packing structures (Inbound load packing structures (purchase).) Microsoft data model
Who can open it
1 security role. Select a role to see its duties and privileges.
WHSOutboundLoadPackingStructureEntity Export only, if an archive is needed.WHSInboundLoadPackingStructureEntity Export only, if an archive is needed.Load order: ASN data of closed loads isn't migrated; export it before the cleanup if it must be archived.Microsoft Learn
Checked in a working Dynamics 365 system, version 10.0.49: the menu item, form, table and security, the page.
To cite this step: WM-JOB-260, Clean old ASN and packing structure data per module. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/WM-JOB-260