Menu
Feedback
Start here

Known issues

Known issues
Warehouse prioritization is not deterministic during shipping simulation
Logistics
ID: 1268196
Backlog
Published on8/7/2025
Last updated on8/7/2025
1 min read

Summary

Currently, the logistics does not always choose the warehouse with the best conditions, such as lowest processing time or shipping cost, when splitting quantities of the same SKU across multiple warehouses. Instead, the selection process for which warehouse will fulfill each item is based on the order in which warehouses appear in the system. This order comes from the availability service, which is itself unordered, making the selection non-deterministic. As a result, the simulator can select a warehouse with higher processing time and extra fee, even when better options are available (for example, preferring a warehouse with 3 processing days and an $5.00 extra fee over one with 2 days and an $1.00 extra fee).

Simulation

To reproduce the issue:

  • Set up inventory so that no single warehouse can fulfill the total requested quantity for a specific SKU (e.g., you need 3 units, but each warehouse only has 1 or 2 available).
  • Prepare two or more warehouses eligible to fulfill the missing quantity, but with different processing times and shipping fees.
  • Run a shipping simulation using the platform's logistics admin for this SKU/quantity.
  • Observe that the simulator may select a warehouse with worse (higher) cost/time, even though a better option exists.

Workaround

There is no workaround available.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback