Why does a bulk operation expires?

annapurna
Tourist
12 0 2

Hi,

We are getting EXPIRED status from some bulk operation query. What could be the reason for it? Should we recreate the query again and poll once a bulk query has EXPIRED status.

 

{
    "data": {
        "node": {
            "id": "gid://shopify/BulkOperation/{removed_operation_id}",
            "status": "EXPIRED",
            "errorCode": null,
            "createdAt": "2020-09-27T10:15:42Z",
            "completedAt": "2020-09-27T10:35:29Z",
            "objectCount": "26890",
            "fileSize": null,
            "url": null,
            "partialDataUrl": null
        }
    },
    "extensions": {
        "cost": {
            "requestedQueryCost": 1,
            "actualQueryCost": 1,
            "throttleStatus": {
                "maximumAvailable": 2000.0,
                "currentlyAvailable": 1999,
                "restoreRate": 100.0
            }
        }
    }
}

 

 

 

 

0 Likes
_JB
Shopify Staff
Shopify Staff
750 86 163

Hey @annapurna,

Bulk operation exports expire after 1 week, so you'll need to run the operation again if you're seeing an expired status.

JB | Developer Support @ 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

0 Likes