Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Some GraphQL Admin ProductVariant Queries Stopped Returning Data

Solved

Some GraphQL Admin ProductVariant Queries Stopped Returning Data

brdata
Shopify Partner
55 2 14

Since yesterday, ProductVariants has not been returning all variants.

 

For example, in my development store chennai-games.myshopify.com:

{
  productVariants(first: 100, query: "barcode:14233246") {
    edges {
      node {
        product {
          id
        }
      }
    }
  }
}

 

{
  "data": {
    "productVariants": {
      "edges": []
    }
  },
  "extensions": {
    "cost": {
      "requestedQueryCost": 202,
      "actualQueryCost": 2,
      "throttleStatus": {
        "maximumAvailable": 1000,
        "currentlyAvailable": 998,
        "restoreRate": 50
      }
    }
  }
}

 

This is an active product searchable within the Shopify Admin interface.

search.png

 

 

 

 

 

 

 

This appears to effect multiple stores in Shopify. Several of my customers are complaining that our apps are not returning or searching variants correctly.

 

Please help.

Accepted Solution (1)

ShopifyDevSup
Shopify Staff
1453 238 527

This is an accepted solution.

Hey Everyone! Thanks for flagging this here. Our team was able to look in to this issue and it has been resolved. 

 

To confirm, I've tested using the initial query shared here by @brdata and the barcode query is working and returning the product ID as expected.

If you notice any new occurrences or if the full results are still not being returned, please reach out to our support teams with details and specific examples so they can look further. 

- https://help.shopify.com/en/support/login 

Thanks again! 

 

- Kyle G. 

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 14 (14)

EtaminStudio
Shopify Partner
5 0 7

We're experiencing similar weird behavior: a productVariants query that returned 1438 results a few days ago now only returns 438, without any change in our code and shop products.

I can't find anything related in the Changelog.

garyrgilbert
Shopify Partner
432 41 189

Looks like Shopify did a Retroactive change to the Graphql API with complete disregard to the principles of Versioning as it affects all API Versions. This would be the second time this year that something like this has happened (that I have noticed at least)

 

I submitted a ticket to partner support as well. I can trace the change to happening sometime between Sunday 02:00 and Monday 02:00 GMT+1  I have a cron job running that uses the ProductVariants GraphQL query filtered by location_id in the query param.

 

@ShopifyDevSup Can you get someone on this ASAP Please. This affects a couple of our public apps as well as countless private apps.

 

Cheers,

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
Affordable_Tech
Tourist
4 0 3

have you got a response yet to your support ticket? or a solution yet?

garyrgilbert
Shopify Partner
432 41 189

Just re-ran the query after @ShopifyDevSup replied to this thread. Looks like the issue has been resolved.

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution

Planche95
Shopify Partner
4 0 1

Same here, quering products variants with barcode stopped working for some prodcuts

Affordable_Tech
Tourist
4 0 3

I am having the same issue.  Shopify support please fix this ASAP!!!

Affordable_Tech
Tourist
4 0 3

I thought Shopify was supposed to be monitoring these forums and responding and helping solve these problems?  This productVariants querying by barcode problem has been going on now for almost TWO full days!! 

lukaszK
Shopify Partner
4 0 4

Same issue on our side. Some productVariants are not being returned.

Etra
Shopify Partner
37 0 20

I have experienced this issue as well!

thomaskenne
Shopify Partner
2 0 2

+1 here. Barcode searches are partially broken.

ShopifyDevSup
Shopify Staff
1453 238 527

This is an accepted solution.

Hey Everyone! Thanks for flagging this here. Our team was able to look in to this issue and it has been resolved. 

 

To confirm, I've tested using the initial query shared here by @brdata and the barcode query is working and returning the product ID as expected.

If you notice any new occurrences or if the full results are still not being returned, please reach out to our support teams with details and specific examples so they can look further. 

- https://help.shopify.com/en/support/login 

Thanks again! 

 

- Kyle G. 

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

garyrgilbert
Shopify Partner
432 41 189

Hi Kyle,

 

Thanks for looking into this for us. I just reran my query and the issue looks to be resolved!

 

Cheers,

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
EtaminStudio
Shopify Partner
5 0 7

Thanks a lot Kyle, the issue is fixed on our side too!

brdata
Shopify Partner
55 2 14

Hi @ShopifyDevSup,

 

I checked 3 of my customers stores and can confirm this issue is resolved.

 

Thank you! 

 

Now, if only some one can fix my loss of reputation, 2 days of wasted time, and the one-star review my app received.

😪