Re: InventoryActivate GraphQL Error Location not found.

Solved

InventoryActivate GraphQL Error Location not found.

sh0pifyPartn3r
Visitor
1 0 1

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!

Accepted Solution (1)
ShopifyDevSup
Shopify Staff
1453 238 512

This is an accepted solution.

Hi @joose 👋
 

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.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 9 (9)

jake-frate
Shopify Partner
13 1 4

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!

joose
Shopify Partner
26 1 12

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

jake-frate
Shopify Partner
13 1 4

Issue still not solved!

joose
Shopify Partner
26 1 12

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?

joose
Shopify Partner
26 1 12

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

joose
Shopify Partner
26 1 12

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)

 

ShopifyDevSup
Shopify Staff
1453 238 512

This is an accepted solution.

Hi @joose 👋
 

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.

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

joose
Shopify Partner
26 1 12

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!

keiraarts
Shopify Partner
55 8 11

Thank you - this worked for me too.

Head of space operations on the Shopify moon-base.
Building orderediting.com, viaGlamour.com, magicsoaps.ca