Hi Everyone,
We are using bulkOperationRunQuery to fetch some data, products example, query below:
mutation {
bulkOperationRunQuery(
query: """
{
products {
edges {
node {
id
title
}
}
}
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
We are getting the “BULK_OPERATIONS_FINISH ” webhook multiple times, with different ids, but same data!
Not sure why this happens, anyone faces this before?
Thanks
Are you creating multiple bulk jobs?
DavidT
April 24, 2025, 2:35am
3
Are you returning 200 status when handling the webhook?
DavidT:
ng 200 status when handl
The webhook will resend the payload if your consumer does not handle it correctly or throws an exception during the processing workflow.
Yes only one, and I believe we can’t create multiple bulk operation jobs per app & store at the same time.
Yes we we do return 200 status after handling it.
We do response correctly.
The weird part is that we receive different ids. is that related?
can you check the webhook result and payload status in your partner dashboard of your app insights ?
Also pls check If you have more than one subscription for the same topic,
Are you still seeing this issue?
hey @Liam-Shopify ,
Yes still the same issue.
Everything looks okay on the dash.
When you say different ids what do you mean? Do you have some example payloads?
when I say different ids it means that we receive the same response for our query with the same data. but each one has a different admin_graphql_api_id .
Below 3 payloads we got for the same bulk operation query:
BULK_OPERATIONS_FINISH {
admin_graphql_api_id: 'gid://shopify/BulkOperation/4546745401525',
completed_at: '2025-05-05T09:26:20-04:00',
created_at: '2025-05-05T09:26:19-04:00',
error_code: null,
status: 'completed',
type: 'query'
}
BULK_OPERATIONS_FINISH {
admin_graphql_api_id: 'gid://shopify/BulkOperation/4546786754741',
completed_at: '2025-05-05T09:44:06-04:00',
created_at: '2025-05-05T09:44:05-04:00',
error_code: null,
status: 'completed',
type: 'query'
}
BULK_OPERATIONS_FINISH {
admin_graphql_api_id: 'gid://shopify/BulkOperation/4546788589749',
completed_at: '2025-05-05T09:44:49-04:00',
created_at: '2025-05-05T09:44:47-04:00',
error_code: null,
status: 'completed',
type: 'query'
}
This would indicate that the bulk operation query is being run multiple times, if there are different IDs.
Is it possible the app or user is triggering this multiple times, sorry that I don’t have context of the app.
Especially the last two where they are triggered 42 seconds apart makes me a little suspect here.
Thank you @JordanFinners ,
We suspected the same but we did debug it and it’s sure not triggering multiple times, we control when to trigger the query.
Hmm I would suggest logging out the bulk operation id when you create the query via the mutation and monitoring it to see if there is any user requesting it multiple times etc.
Or if a developer is running bulk queries using the app credentials for testing or something as that would also trigger the webhooks.