Bad request when trying to access an inventory with a huge quantity of reserved items
ID: 296066
Fixed
Published on 7/3/2024
•
Last update on 7/3/2024
Summary
When we try to see the details of reservations for an SKU in the logistics module, in the list of product inventory (Inventory & Shipping > Inventory management), we may have a problem when there are too many active reservations.
It is not possible to access or update an SKU inventory with a huge amount of reserved items, like, 100000 active reservations.
The user may see in the UI the error: "Error while trying to fetch reservation"
Or in the API response details the error: "Too many active reservations"
Simulation
- In the Inventory & Shipping > Inventory management, try to find an SKU that has a huge amount of active reservation
- Is possible that you get an error trying to view the details
- Or try to update the quantity of the SKU
- Maybe you will get the error described in the summary
Workaround
The idea is that inventory management avoids the excessive accumulation of active reserves, which implies making inventory updates more frequently, either directly in the UI or via API.