{"record":{"id":"43fbb1889518473c","repo":"chroma-core/chroma","slug":"conditional-transaction-is-closed","errorCode":null,"errorMessage":"conditional transaction is closed","messagePattern":"conditional transaction is closed","errorType":"validation","errorClass":"ChromaValueError","httpStatus":null,"severity":"error","filePath":"clients/new-js/packages/chromadb/src/collection.ts","lineNumber":1737,"sourceCode":"      throw new ChromaValueError(\n        `transactional add for id \"${id}\" requires a prior read proving the id is absent`,\n      );\n    }\n    if (operation === \"update\" && !this.knownPresent.has(id)) {\n      throw new ChromaValueError(\n        `transactional update for id \"${id}\" requires a prior read proving the id is present`,\n      );\n    }\n    if (operation === \"delete\" && !this.knownPresent.has(id)) {\n      throw new ChromaValueError(\n        `transactional delete for id \"${id}\" requires a prior read proving the id is present`,\n      );\n    }\n  }\n\n  private ensureOpen(): void {\n    if (this.closed) {\n      throw new ChromaValueError(\"conditional transaction is closed\");\n    }\n  }\n\n  private invalidReadAfterWrite(id: string): ChromaValueError {\n    return new ChromaValueError(\n      `cannot transactionally read id \"${id}\" after buffering a write for it`,\n    );\n  }\n}\n\n/**\n * Arguments for creating a CollectionHandle instance.\n */\nexport interface CollectionHandleArgs {\n  /** ChromaDB client instance */\n  chromaClient: ChromaClient;\n  /** HTTP API client */\n  apiClient: ReturnType<typeof createClient>;","sourceCodeStart":1719,"sourceCodeEnd":1755,"githubUrl":"https://github.com/chroma-core/chroma/blob/aecdd12c8a891610db8653630b066b32ceb678b5/clients/new-js/packages/chromadb/src/collection.ts#L1719-L1755","documentation":"Error \"conditional transaction is closed\" thrown in chroma-core/chroma.","triggerScenarios":"Thrown at clients/new-js/packages/chromadb/src/collection.ts:1737 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":"aecdd12c8a891610db8653630b066b32ceb678b5","analyzedAt":"2026-08-16T21:53:27.228Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}