BeyondERP.Newsletter
Menu

Job page · Warehouse management

Clean up ASN/Packing structure

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.

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
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 isA 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 hereUse 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.
ExampleFor 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.
Clean up ASN/Packing structure 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

Business processManage warehouse operations
Menu pathWarehouse management › Periodic tasks › Clean up › Clean up ASN/Packing structure
Set up firstAll loads Microsoft Learn
Used next byAll loads Microsoft Learn
Related pagesInbound load planning workbench Microsoft Learn
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 itWhen ASN and packing structure data of old loads is no longer needed by customers or downstream warehouses.
How oftenMonthly, separately for each module.
What the output showsASN 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

  1. Go to Warehouse management > Periodic tasks > Clean up > Clean up ASN/Packing structure.
  2. In The number of days to keep, enter how long ASN data stays after the load was received or shipped (the dialog suggests 365).
  3. In Module, select Sales order for outbound ASNs or the purchase option for inbound ASNs.
  4. In Maximum clean-up records count, keep 100,000 or lower it to limit one run.
  5. Set it up in Run in the background, then check an old load to see that its packing structure is gone.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExample
The number of days to keepASN and packing structure data of loads received or shipped before this number of days is deleted. The dialog opens with 365.Checked in Dynamics 365365
ModuleWhich ASN data to clean: Sales order (shipped loads) or purchase (received loads).Checked in Dynamics 365Sales order
Maximum clean-up records countThe most records one run deletes. The dialog opens with 100,000.Checked in Dynamics 365100000

Common errors and fixes

MessageWhat to do
A customer asks for an ASN that can't be sent againIts packing structure was older than the days to keep. Agree how long customers can ask for ASNs before setting the retention. Microsoft Learn

Test checklist

  1. Run the job in a test company with Module = Sales order and 365 days.
  2. Open a load shipped more than 365 days ago and check its packing structure is gone.
  3. Open a load shipped last month and check its packing structure is still there.

Source: Checked in Dynamics 365

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Clean old ASN and packing structure data per moduleRun 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.How long is ASN and packing structure data kept?Running it for both modules with a short retention while inbound loads are still being disputed.Test: Clean old outbound ASN data

Feature management and licence

Licence or add-inWarehouse management is part of the Dynamics 365 Supply Chain Management licence. In this system 1 role can open this page, among them Warehouse planner.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer 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 undoneNo: Deleted ASN and packing structure data can't be restored. Export it with the ASN entities first if a copy is needed. Microsoft Learn
If you change it laterDeletes 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 itemaction:WHSASNPackingStructureCleanUp Checked in Dynamics 365
Data entitiesWHSOutboundLoadPackingStructureEntityOutbound 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.

  • RoleWarehouse plannerWHSWarehousePlanner
    • DutyMaintain warehouse planningWHSWarehousePlanningMaintain
      • PrivilegeMaintain clean up ASN/Packing structureWHSASNPackingStructureCleanUpProcess
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 itWarehouse planner WHSWarehousePlannerGive people one of these roles. On this system, 1 role can run this page.Checked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=action:WHSASNPackingStructureCleanUp
Data migrationWHSOutboundLoadPackingStructureEntity 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
Everyone

8Sources