Solved

GraphQL Bulk Query not consistent with shop data: "gid://shopify/BulkOperation/4224531300598"

TrippleFiveNano
Shopify Partner
5 1 0

Hi,

 

I am testing an application on my development store.

 

It has discounts which are not all showing up in the result sets when I query it with the Bulk operations, but when I query it non-bulk with the GraphiQL app, I see all of them. The data is inconsistent between the two results. I have no idea what to do next. I have tested this with multiple queries, which used to work and pass tests, now they don't.

 

Here is the id for the bulk operation: 

"gid://shopify/BulkOperation/4224531300598"
 
Kind regards,
TFN
Accepted Solution (1)

TrippleFiveNano
Shopify Partner
5 1 0

This is an accepted solution.

Some more context, changing the api version from 2023-10 to 2024-01 now yields the correct results again.

View solution in original post

Replies 3 (3)

TrippleFiveNano
Shopify Partner
5 1 0

This is an accepted solution.

Some more context, changing the api version from 2023-10 to 2024-01 now yields the correct results again.

ShopifyDevSup
Shopify Staff
1366 228 479

Hey @TrippleFiveNano , thanks for following up to confirm that changing the API version is now returning correct results. 

 

If you notice this happening again, I'd recommend making sure you're logging your x-request-id and the bulk operation id's. Then pop in to one of our support channels, preferably partner support if you're a partner, but merchant or plus support will work as well. From there we will be able to take a closer look at this specific context and review our logs if needed to see if we can find out why you're not getting full results from the Bulk Operation. 

 

One thing to keep in mind as well is to make sure to include the status field in your request to monitor if it failed or not. We do return a partial data file even when failures occur, so that may be a possible reason here too. Documentation on that here: https://shopify.dev/docs/api/usage/bulk-operations/queries#operation-failures 

 

Hope that helps, 

 

- 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

TrippleFiveNano
Shopify Partner
5 1 0

Hi Kyle G.


I will make sure to log that header next time I report. Will you be able to use the bulk operation id to see why this has happened, the status returned COMPLETE according to my logs. The relevant id is gid://shopify/BulkOperation/4224531300598

 

Thanks,

TFN