We have a fulfillment app and approximately 1 month ago we started to get this error for a specific variant when trying to set inventory levels:
{"errors":["An item cannot be active at more than one location if one of them is a fulfillment service location."]}
We didn’t make any changes at this time and this variant is also not new.
I read through the docs and tried to add this to the API call:
"relocate_if_necessary": true
This didn’t work, I got this error back:
This item can't be disconnected from its location because it has unfulfilled orders.
I tried to reproduce this in my test store by setting a product to another location, creating an unfulfilled order and then setting it back to our App’s location and it works as expected, the unfulfilled order is kept at the old location but it allows me to make the API call and I don’t get any errors back.
What triggers this error for this particular variant and how can we set back that variant to our App’s location?
Fulfilling all the orders is impractical, they have thousands or unfulfilled orders for this variant back to 2020 and an average of 500 new orders a day.