InventoryActivate GraphQL Error Location not found

Hi All,

Is there anyone who can help me with my problem, I am trying to use GraphQL inventoryActivate script on our shop and keep getting error “This variant couldn’t be stocked because the location wasn’t found.”, It seems that GraphQL can’t use the locations created on FulfillmentServiceCreate API. I have no problem with this when using REST API but for faster integration I want to use GraphQL.

Thank you!

Hi,

I just ran into the same issue. I know that I have a valid Location, but I when I use GraphQL inventoryActivate with it, I get the error: “The variant couldn’t be stocked because the location wasn’t found”.

I hope this can be resolved soon!

Did you solve this issue?

If I create fulfillment service and get locationId, then I can’t use that locationId to activate inventory .. I will get the same error message that the location wasn’t found

Issue still not solved!

Seems that if I query locations from REST api I get different list of locations (with my fulfillment service) and in graphql I don’t. Maybe a bug in shopfiy?

I wrote an message to shopify support, but I guess it is a long road to get answer from there.

If someone is reading this thread that have access:

< x-request-id: 549b80b4-7dbc-49f8-bbd1-1f7a225379a8 (all locations, rest API)

< x-request-id: 33332fa7-3531-43c4-837d-c8d01bbb68ed (this one has missing location, GraphQL)

< x-request-id: 9e8426e9-b7d6-4630-83ef-83abfb61a732 (location that is missing does exists, GraphQL)

Hi @joose :waving_hand:

Would you kindly review whether your fulfillment service has the permitsSkuSharing field set to true? I’ve seen similar issues when the fulfillment service can’t stock inventory alongside other locations.

Seems that it is false. This is not an option that we have changed in the last ~6 months and it has worked before.

But that seems to do the magic, thank you! So solution to my problem was: permitSkuSharing = true

Thank you!

Thank you - this worked for me too.