Bulk query timeout

This bulk query below timeouts with the response below. It works for other customers for months. It stopped working recently only for the given plus customer with less than 10000 products 40K variants. Query is the basic part of the initial product data sync flow.

Some variations with less inventoryLevel field types work. But these are all the necessary fields to replace API. @KyleG-Shopify

mutation {
            bulkOperationRunQuery(
                query: """
{
  products {
    edges {
      node {
        tags
        title
        id
        publishedAt
        createdAt
        updatedAt
        status
        productType
        handle
        vendor
        options {
          name
          values
        }
        category {
          id
        }
        media(query: "media_type:IMAGE") {
          edges {
            node {
              ... on MediaImage {
                image {
                  altText
                  id
                  url
                  width
                  height
                }
              }
            }
          }
        }
        variants {
          edges {
            node {
              barcode
              compareAtPrice
              createdAt
              updatedAt
              position
              taxable
              inventoryPolicy
              inventoryQuantity
              price
              sku
              title
              id
              image {
                altText
                id
                url
                width
                height
              }
              selectedOptions {
                name
                value
              }
              inventoryItem {
                id
                createdAt
                updatedAt
                requiresShipping
                countryCodeOfOrigin
                harmonizedSystemCode
                provinceCodeOfOrigin
                measurement {
                  weight {
                    unit
                    value
                  }
                }
                unitCost {
                  amount
                }
                tracked
                updatedAt
                inventoryLevels {
                  edges {
                    node {
                      createdAt
                      updatedAt
                      id
                      quantities (names: ["incoming", "available", "committed", "damaged","on_hand","quality_control", "reserved","safety_stock"]){
                        name
                        quantity
                        updatedAt
                      }
                      location {
                        id
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
            """
        ) {
            bulkOperation {
              id
              status
            }
            userErrors {
              field
              message
            }

            }
        }
                    "completedAt": null,

                    "createdAt": "2025-12-08T16:17:01Z",

                    "errorCode": "TIMEOUT",

                    "fileSize": null,

                    "id": "gid://shopify/BulkOperation/7305148825751",

                    "objectCount": "296047",

                    "partialDataUrl": "[https://storage.googleapis.com/shopify-tiers-assets-prod-us-east1/bulk-operation-outputs/xxx](https://storage.googleapis.com/shopify-tiers-assets-prod-us-east1/bulk-operation-outputs/xxx)",

                    "rootObjectCount": "5655",

                    "status": "FAILED",

                    "type": "QUERY",

                    "url": null,

Hi @Merchbees

For queries involving large datasets, should we consider implementing pagination?

@kyle_liu its not a large dataset at all. There are merchants with 1.000.000+ products.

@Liam-Shopify can we get some help here?

Hi @Merchbees

If this is only happening for one specific merchant, there is likely something occuring on their environment which is causing this. I’d recommend asking the merchant to contact Shopify Support directly who will be able to analyze the logs for this store to see what might be happening - eg: if could be that an app that also have a inventory related feature could be having an impact on the successful execution of this query.

Hey @Liam-Shopify ,

It’s a public app getting product information via bulk queries as usual. For this specific plus customer we get timeout error after 45 minutes. When we remove a few fields like “damaged",“on_hand”,"quality_control” it works fine or if we run it with less connections it works as well.

We use the same sync query for more than a year and recently noticed this issue. Support suggests me to use pagination :roll_eyes:

Can someone check what’s the root cause of this bug? Customer has only 9000 products.

Hi again @Merchbees

Can someone check what’s the root cause of this bug?

The merchant will need to connect with support who can dig into the logs of the merchants store to see what’s happening here. No-one on this forum can do that for you.

Hey @Liam-Shopify ,

Just wondering, if there is an issue or bug on your system, should app devs contact to the merchants? Is this a new procedure?

This is between Shopify and a partner using Shopify’s APIs. If there is something broken here, either you or we should fix it right not the merchant?

Also one more major problem, bug/issue report page in partner dashboard doesn’t exist anymore. There is not much communication channel between partners and Shopify.