I am trying to get all members belongs to customer segment by segment_id in graphQL bulk operation query. Where able to get it created however when checking its status later it’s showing as FAILED with error code of INTERNAL_SERVER_ERROR.
ApiVersion: ‘2025-01’
const bulkOperationQuery = `
mutation {
bulkOperationRunQuery(
query: """
{
customerSegmentMembers(query: "segment_id:478032953655") {
edges {
node {
id
displayName
}
}
}
}
"""
) {
bulkOperation {
id
status
}
userErrors {
field
message
}
}
}
`;
I am not sure what is causing this issue. Any help would be appreciated.
Thanks!!
Often times these internal server errors can be intermittent. Have you attempted running the operation again to see if it was just a temporary issue?
If you’re still experiencing failures after retrying, are you getting any partial data back? You can check the partialDataUrl field on the BulkOperation object to see if some data was processed before the failure. Also, have you tried running this same query as a regular (non-bulk) operation with pagination? This would help us determine if the issue is specific to the Bulk Operations API or if there might be something about the data being requested that’s causing problems.
If retrying doesn’t work and you’re either getting partial data or encountering errors with the regular query too, we would need to look at the logs to investigate further. In that case, reaching out to our support teams would be the best next step so we can examine what’s happening behind the scenes.
Thanks for confirming that. Just to confirm, non bulk queries are working, and if you remove the displayName from the bulk query, does that then go through?