GraphQL get an order by its ID randomly not return results

GraphQL get an order by its ID randomly not return results

Neemias
Shopify Partner
4 0 1

Hi, 

 

Did you ever encounter a GraphQL issue where you queried an order by its ID, but Shopify returned an empty node? Even though the order was created over 10 minutes ago, attempting to retrieve it returned nothing.

This issue occurs only with some orders, as most return a successful response.

 

Here is an example of a query that works randomly.

 

<<<QUERY
  query {
    order(id: "gid://shopify/Order/{ID}") {
      name
    }
  }
QUERY

 

 

Replies 6 (6)

Liam
Community Manager
3108 341 880

Hi Neemias,

 

When you query using a specific order ID, and the query returns empty, is it always returning empty or it is delayed in returning the expected order details? Are you also processing a high number of orders?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me 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

Neemias
Shopify Partner
4 0 1

Hi Lian
Thanks for your replying 

 

Yes, it always returns empty.
No, I'm not processing a high number of orders.

363518457
Shopify Partner
18 0 1

We have also encountered the same problem. Has it been resolved?

Liam
Community Manager
3108 341 880

Are there any commonalities for the orders that are appearing with empty array nodes? eg: a specific sales channel, fulfilment method, etc

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me 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

Neemias
Shopify Partner
4 0 1

Unfortunately, we do not have access to the order from any other source, therefore is impossible to give you any commonalities.

ArtemBusygin
Shopify Partner
7 0 1

The same problem. Before everything worked well, but now I'm getting null in an order entity. Has it been resolved?