Shipment purge
This purge removes shipment data from the system. This reduces the load on frequently accessed tables. This transaction picks up all shipments that have been marked as ‘Closed' and archives them into their history tables. See Shipment history purge. It also archives and purges the shipment's child tables.
This is not a pipeline transaction. It also does not work from the task queue.
Any enterprise using the Console must schedule purge transactions.
Orders related to the shipments should have been purged by order purge. Shipments should have been closed by the Close Shipment transaction. For more information, see Close shipment.
You can use purge codes pseudo-logic to analyze purges. If the following conditions are met, a shipment is picked up for purge:
- The last modification performed on the shipment should fall before the lead time (in days) setup.
- The value of the ShipmentClosedFlag field should be set to "Y".
- The order record should already be purged for all shipment lines.
Attributes
The following are the attributes for this time-triggered transaction:
Attribute | Value |
---|---|
Base Transaction ID | SHIPMENTPRG |
Base Document Type | Order |
Base Process Type | Order Delivery |
Abstract Transaction | No |
APIs Called | None |
User Exits Called | YFSBeforePurgeUE |
Criteria parameters
The following are the criteria parameters for this transaction:
Parameter | Description |
---|---|
Action | Required. Triggers the transaction. |
Number of Records To Buffer | Optional. Number of records to retrieve and process at one time. If left blank or specified as 0 (zero), it defaults to 5000. |
Number of Days To Execute | Optional. Maximum number of days before the lead days the agent will look for shipment records to purge. |
EnterpriseCode | Optional. Enterprise for which the Shipment Purge needs to be run. If not passed, then all enterprises are monitored. |
Live | Optional. Mode in which to run. Valid values are:
|
PurgeCode | Required. Cannot be modified. Used for internal calculations, such as determining retention days. Corresponds with the PurgeCode used in Business Rules Purge Criteria. |
ColonyID | Required in a multi schema deployment where a table may exist in multiple schemas. Runs the agent for the colony. |
Statistics tracked
The following statistics are tracked for this transaction:
Statistic Name | Description |
---|---|
NumShipmentsPurged | Number of Shipments purged. |
NumShipmentLinesPurged | Number of Shipment Lines purged. |
Pending job count
For this transaction, the pending job count is the number of records that can be purged from the YFS_Shipment table.
Events raised
None.
Tables purged
YFS_ADDITIONAL_ATTRIBUTES
YFS_ADDITIONAL_DATE
YFS_AUDIT
YFS_CONTAINER_DETAILS
YFS_LOAD_SHIPMENT_CHARGE
YFS_MONITOR_ALERT
YFS_SHIPMENT_CONTAINER
YFS_SHIPMENT_STATUS_AUDIT
YFS_SHIPMENT
YFS_INSTRUCTION_DETAIL
YFS_SHIPMENT_MONITOR_ALERT
YFS_HEADER_CHARGES
YFS_LINE_CHARGES
YFS_TAX_BREAKUP
YFS_SHIPMENT_HOLD_TYPE
YFS_SHIPMENT_HOLD_TYPE_LOG
YFS_SHIPMENT_TAG_SERIALS
YFS_SHIPMENT_LINE
YFS_SHIPMENT_LINE_REQ_TAG
YFS_ACTIVITY_DEMAND
YFS_CONTAINER_STS_AUDIT
YFS_CONTAINER_ACTIVITY