{"record":{"id":"de5df7a5a44d2c45","repo":"gatsbyjs/gatsby","slug":"bulkoperationfailed","errorCode":"bulkOperationFailed","errorMessage":"${e.field ? `${e.field.join(`.`)}: ${e.message}` : e.message}","messagePattern":"(.+?): (.+?)` : e\\.message\\}","errorType":"panic","errorClass":null,"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/8b06340921ffdf23125a365b9c9923690cb62ce6/packages/gatsby-source-shopify/src/source-from-operation.ts#L27-L63","documentation":"Error \"${e.field ? `${e.field.join(`.`)}: ${e.message}` : e.message}\" thrown in gatsbyjs/gatsby.","triggerScenarios":"Thrown at packages/gatsby-source-shopify/src/source-from-operation.ts:45 when the library encounters an invalid state.","commonSituations":"Occurs when a Shopify bulk operation returns field-level validation errors. Inspect the reported field and adjust the query or shop data accordingly.","solutions":["Check the logged field path and message to find the invalid data returned by the Shopify bulk operation.","Verify your Shopify API version and store data; re-run sourcing after fixing the offending records."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8b06340921ffdf23125a365b9c9923690cb62ce6","analyzedAt":"2026-08-13T02:36:21.405Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}