{"record":{"id":"327a1b4970fb0e8c","repo":"gatsbyjs/gatsby","slug":"111000","errorCode":"111000","errorMessage":"Couldn't initiate bulk operation query","messagePattern":"Couldn't initiate bulk operation query","errorType":"panic","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/gatsby-source-shopify/src/source-from-operation.ts","lineNumber":45,"sourceCode":"    const operationTimer = reporter.activityTimer(\n      `source ${lastBuildTime ? `changed ` : ``}shopify ${op.name}`\n    )\n\n    operationTimer.start()\n\n    try {\n      if (isPriorityBuild(pluginOptions)) {\n        await cancelOperationInProgress()\n      } else {\n        await finishLastOperation()\n      }\n\n      const {\n        bulkOperationRunQuery: { userErrors, bulkOperation },\n      } = await op.execute()\n\n      if (userErrors.length) {\n        reporter.panic(\n          userErrors.map(e => {\n            const msg = e.field\n              ? `${e.field.join(`.`)}: ${e.message}`\n              : e.message\n\n            return {\n              id: errorCodes.bulkOperationFailed,\n              context: {\n                sourceMessage: `Couldn't initiate bulk operation query`,\n              },\n              error: new Error(msg),\n            }\n          })\n        )\n      }\n\n      const resp = await completedOperation(bulkOperation.id)\n","sourceCodeStart":27,"sourceCodeEnd":63,"githubUrl":"https://github.com/gatsbyjs/gatsby/blob/e85d62f1779e353eaac1753211629a26d123e26c/packages/gatsby-source-shopify/src/source-from-operation.ts#L27-L63","documentation":"makeSourceFromOperation maps Shopify bulkOperationRunQuery userErrors into a panic; this generic message is emitted alongside/before the per-error field: message strings. It means Shopify refused to even initiate the bulk query — typically an invalid query document or invalid variables for the bulk API.","triggerScenarios":"Thrown at packages/gatsby-source-shopify/src/source-from-operation.ts:45 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the bulk-operation query/variables listed in the accompanying userError details","Ensure the query is eligible for Shopify bulk operations","Check API credentials and scopes"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e85d62f1779e353eaac1753211629a26d123e26c","analyzedAt":"2026-08-26T17:50:09.662Z","contentChangedAt":"2026-08-26T17:50:09.662Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}