{"record":{"id":"9b5b2713c23a90a3","repo":"vercel/ai","slug":"anthropic-batch-options-batchid-is-not-comple","errorCode":null,"errorMessage":"Anthropic batch \"${options.batchId}\" is not complete.","messagePattern":"Anthropic batch \"(.+?)\" is not complete\\.","errorType":"validation","errorClass":"InvalidArgumentError","httpStatus":null,"severity":"error","filePath":"packages/anthropic/src/anthropic-messages-batch.ts","lineNumber":298,"sourceCode":"      batchId: batch.id,\n      ...convertAnthropicBatchStatus(batch),\n      warnings: batchWarnings,\n    };\n  }\n\n  async experimental_doGetBatchStatus(\n    options: BatchV4OperationOptions,\n  ): Promise<BatchV4Status> {\n    return convertAnthropicBatchStatus(await this.retrieveBatch(options));\n  }\n\n  async experimental_doGetBatchResults(\n    options: BatchV4OperationOptions,\n  ): Promise<ReadableStream<BatchV4ItemResult<LanguageModelV4GenerateResult>>> {\n    const batch = await this.retrieveBatch(options);\n\n    if (convertAnthropicBatchStatus(batch).status === 'pending') {\n      throw new InvalidArgumentError({\n        argument: 'batchId',\n        message: `Anthropic batch \"${options.batchId}\" is not complete.`,\n      });\n    }\n\n    if (batch.archived_at != null) {\n      throw new InvalidArgumentError({\n        argument: 'batchId',\n        message: `Anthropic batch \"${options.batchId}\" results are no longer available.`,\n      });\n    }\n\n    if (batch.results_url == null) {\n      throw new InvalidResponseDataError({\n        data: batch,\n        message: `Anthropic batch \"${options.batchId}\" completed without batch output.`,\n      });\n    }","sourceCodeStart":280,"sourceCodeEnd":316,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/anthropic/src/anthropic-messages-batch.ts#L280-L316","documentation":"Error \"Anthropic batch \"${options.batchId}\" is not complete.\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/anthropic/src/anthropic-messages-batch.ts:298 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"69428b1f8b037e4d118fb4853428d5c4e620493c","analyzedAt":"2026-08-30T12:32:21.016Z","schemaVersion":2},"datasetVersion":"2026-08-30T13:17:10.514Z"}