{"record":{"id":"611709f7a2e0d0cf","repo":"vercel/ai","slug":"google-batch-options-batchid-is-not-complete","errorCode":null,"errorMessage":"Google batch \"${options.batchId}\" is not complete.","messagePattern":"Google batch \"(.+?)\" is not complete\\.","errorType":"validation","errorClass":"InvalidArgumentError","httpStatus":null,"severity":"error","filePath":"packages/google/src/google-batch.ts","lineNumber":357,"sourceCode":"      ...convertGoogleBatchStatus(operation),\n      warnings,\n    };\n  }\n\n  async experimental_doGetBatchStatus(\n    options: BatchV4OperationOptions,\n  ): Promise<BatchV4Status> {\n    return convertGoogleBatchStatus(await this.retrieveBatch(options));\n  }\n\n  async experimental_doGetBatchResults(\n    options: BatchV4OperationOptions,\n  ): Promise<ReadableStream<BatchV4ItemResult<LanguageModelV4GenerateResult>>> {\n    const operation = await this.retrieveBatch(options);\n    const batchStatus = convertGoogleBatchStatus(operation);\n\n    if (batchStatus.status === 'pending') {\n      throw new InvalidArgumentError({\n        argument: 'batchId',\n        message: `Google batch \"${options.batchId}\" is not complete.`,\n      });\n    }\n\n    const inlinedResponses =\n      operation.metadata?.output?.inlinedResponses?.inlinedResponses ??\n      operation.response?.inlinedResponses?.inlinedResponses;\n\n    if (inlinedResponses != null) {\n      return convertAsyncIteratorToReadableStream(\n        this.iterateBatchResults(\n          inlinedResponses.map(result => ({\n            key: result.metadata.key,\n            response: result.response,\n            error: result.error,\n          })),\n        ),","sourceCodeStart":339,"sourceCodeEnd":375,"githubUrl":"https://github.com/vercel/ai/blob/69428b1f8b037e4d118fb4853428d5c4e620493c/packages/google/src/google-batch.ts#L339-L375","documentation":"Error \"Google batch \"${options.batchId}\" is not complete.\" thrown in vercel/ai.","triggerScenarios":"Thrown at packages/google/src/google-batch.ts:357 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"}