{"record":{"id":"d12b01f5637b3db3","repo":"Budibase/budibase","slug":"google-knowledge-base-is-missing-its-file-store-co","errorCode":null,"errorMessage":"Google knowledge base is missing its file store configuration","messagePattern":"Google knowledge base is missing its file store configuration","errorType":"http","errorClass":"HTTPError","httpStatus":400,"severity":"error","filePath":"packages/server/src/sdk/workspace/ai/knowledgeBase/crud.ts","lineNumber":143,"sourceCode":"        throw new HTTPError(\"Knowledge base type cannot be changed\", 400)\n      }\n      updated = {\n        ...existing,\n        ...config,\n        type: KnowledgeBaseType.GEMINI,\n        config: { googleFileStoreId: existing.config.googleFileStoreId },\n      } satisfies GeminiKnowledgeBase\n      break\n    }\n    default:\n      throw utils.unreachable(knowledgeBaseType)\n  }\n\n  if (\n    updated.type === KnowledgeBaseType.GEMINI &&\n    !updated.config.googleFileStoreId\n  ) {\n    throw new HTTPError(\n      \"Google knowledge base is missing its file store configuration\",\n      400\n    )\n  }\n  await ensureUniqueName(updated.name, updated._id)\n  updated.name = updated.name.trim()\n\n  const { rev } = await db.put(updated)\n  updated._rev = rev\n\n  return updated\n}\n\nexport async function remove(id: string) {\n  const db = context.getWorkspaceDB()\n\n  const existing = await db.get<KnowledgeBase>(id)\n  await db.remove(existing)","sourceCodeStart":125,"sourceCodeEnd":161,"githubUrl":"https://github.com/Budibase/budibase/blob/a81a902e9a8fe55b467d106765f6638f12e35c49/packages/server/src/sdk/workspace/ai/knowledgeBase/crud.ts#L125-L161","documentation":"Error \"Google knowledge base is missing its file store configuration\" thrown in Budibase/budibase.","triggerScenarios":"Thrown at packages/server/src/sdk/workspace/ai/knowledgeBase/crud.ts:143 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":"a81a902e9a8fe55b467d106765f6638f12e35c49","analyzedAt":"2026-08-29T01:03:10.972Z","schemaVersion":2},"datasetVersion":"2026-08-29T02:17:18.158Z"}