gatsbyjs/gatsby · error

unknownSourcingFailure

unknownSourcingFailure

Error message

Operation ${op.name} failed after ${e.node.objectCount} objects
              - With status: ${e.node.status} - error code: ${e.node.errorCode}
            

What it means

Error "Operation ${op.name} failed after ${e.node.objectCount} objects - With status: ${e.node.status} - error code: ${e.node.errorCode} " thrown in gatsbyjs/gatsby.

Source

Thrown at packages/gatsby-source-shopify/src/source-from-operation.ts:127

              `This operation has been canceled by a higher priority build. It will retry shortly.`
            )
            operationTimer.end()
            await new Promise(resolve => setTimeout(resolve, 5000))
            await sourceFromOperation(op)
          }
        }

        if (e.node.errorCode === `ACCESS_DENIED`) {
          reporter.panic({
            id: code,
            context: {
              sourceMessage: `Your credentials don't have access to a resource you requested`,
            },
            error: e,
          })
        }

        reporter.panic({
          id: errorCodes.unknownSourcingFailure,
          context: {
            sourceMessage: shiftLeft`
              Operation ${op.name} failed after ${e.node.objectCount} objects
              - With status: ${e.node.status} - error code: ${e.node.errorCode}
            `,
          },
          error: e,
        })
      }

      if (e instanceof HttpError) {
        reporter.panic({
          id: errorCodes.unknownApiError,
          context: {
            sourceMessage: `Received error ${
              e.response.status
            } from Shopify: ${await e.response.text()}`,

View on GitHub (pinned to 8b06340921)

Solutions

  1. Look up the Shopify errorCode in the Shopify bulk operation docs and fix the underlying data or permission problem.
  2. Reduce the operation size (e.g. fewer collections/products per run) and retry sourcing.

When it happens

Trigger: Thrown at packages/gatsby-source-shopify/src/source-from-operation.ts:127 when the library encounters an invalid state.

Common situations: Occurs when a Shopify bulk operation completes with a failure status/error code after processing some objects. Check the Shopify admin for the bulk operation result and retry sourcing.


AI-assisted analysis of gatsbyjs/gatsby@8b06340921 (2026-08-13). Data as JSON: /api/errors/aa94a0d33416ae6a. Report an issue: GitHub.