Bug: Shipments stuck in Picked and Shipping status — not advancing to Shipped #1
Open
opened 2026-06-29 08:18:05 +00:00 by van
·
1 comment
Labels
Clear labels
Amazon SP-API
bug
Doing
eBay API
FBA Restock
FBA Restock
FBA Restock
fulfillment
Planning
Planning
Planning
Planning
Planning
prod
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
QA
shipstation
shipstation
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
eStack Sprint Board
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: rob/estack-laminas#1
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Page: Shipments (
/retail/shipments) / Shipment Detail (/retail/shipments/{id})Description
Shipments are getting stuck at two different points in the status flow and never reaching Shipped, which means parent orders never reach Complete. The pattern is channel-specific:
Because neither group advances to Shipped, parent orders remain Active and SKU allocations are never released. The SKU widget shows these as active Retail Shipments, reducing Available to Sell incorrectly.
Example: Shipment #5280 (eBay) — tracking number present, Reported Back = Yes, Status = Picked. Parent Order #62765 = Active.
From the Shipments list (1,727 total), the majority of recent shipments are in Picked or Shipping — only a small number show Shipped. This is affecting a large volume of shipments across all stores and all dates including current shipments.
Expected status flow
The rule is simple: if a shipment has a tracking number, it is considered shipped and must complete the full status cycle through to Shipped. The parent order must then automatically advance to Complete.
Channel-specific suspected causes
eBay / ShipStation — stuck in Picked:
The Picked → Shipping transition is not being triggered after label generation. Either:
shippedAttimestamp is not being set, blocking the state machine conditionWalmart — stuck in Shipping:
Shipments are reaching Shipping (submitted to Walmart) but not advancing to Shipped. Either:
Impact
Steps to reproduce
/retail/shipments)Backfill required
Once the root cause is fixed, a backfill script is needed to advance all currently stuck shipments:
Rule: any shipment with a tracking number that is in Picked or Shipping status must be advanced to Shipped.
Backfill sequence Van must follow in order:
status IN ('Picked', 'Shipping') AND tracking_number IS NOT NULL AND tracking_number != ''shippedAtif not already setThis applies to all dates — there is no cutoff. Any shipment with a tracking number is considered shipped regardless of when it was created.
Files to check
shippedAtand triggers Picked → Shipping transitionPriority
Critical — affects the majority of shipments and orders site-wide; inventory allocations are significantly incorrect across all SKUs