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.
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”.
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
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?
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.