Hi !
I’m trying to query the sales of a shop via bulk operation but I get an internal server error probably because the number of objects is too important.
Here is the query :
bulkOperationRunQuery(
query:“{orders(query:“updated_at:>=‘2026-01-26T14:35:47.074Z’ AND updated_at:<‘2026-01-26T14:35:57.000Z’”,sortKey:UPDATED_AT){edges{node{id agreements{edges{node{id happenedAt reason…on ReturnAgreement{return{id}}sales{edges{node{id actionType lineType quantity…on ProductSale{lineItem{id}}}}}}}}}}}}”
) {
bulkOperation {
id
errorCode
},
userErrors {
code
field
message
}
}
As you see, I’m only querying the data for 1 minute, but I can’t make it work with the bulk operation. I have a fallback mecanism on classic graphql queries for which I’m forced to use pagination, which defeats the whole point of using the bulk operation API, and it looks like this problem has been going on for a long time and has been reported several times, do we have any updates on this?
And is there anything I could do on my side to prevent this?
This order has 120 elements in the “sales” attribute.