{"record":{"id":"9fed8ce2a7a1ca57","repo":"n8n-io/n8n","slug":"update-operation-is-not-implemented-for-this-vecto","errorCode":null,"errorMessage":"Update operation is not implemented for this Vector Store","messagePattern":"Update operation is not implemented for this Vector Store","errorType":"exception","errorClass":"NodeOperationError","httpStatus":null,"severity":"error","filePath":"packages/@n8n/ai-utilities/src/utils/vector-store/createVectorStoreNode/operations/updateOperation.ts","lineNumber":23,"sourceCode":"\nimport { logAiEvent } from '../../../log-ai-event';\nimport { N8nJsonLoader } from '../../../n8n-json-loader';\nimport { processDocument } from '../../processDocuments';\nimport type { VectorStoreNodeConstructorArgs } from '../types';\nimport { isUpdateSupported } from '../utils';\n\n/**\n * Handles the 'update' operation mode\n * Updates existing documents in the vector store by ID\n */\nexport async function handleUpdateOperation<T extends VectorStore = VectorStore>(\n\tcontext: IExecuteFunctions,\n\targs: VectorStoreNodeConstructorArgs<T>,\n\tembeddings: Embeddings,\n): Promise<INodeExecutionData[]> {\n\t// First check if update operation is supported by this vector store\n\tif (!isUpdateSupported(args)) {\n\t\tthrow new NodeOperationError(\n\t\t\tcontext.getNode(),\n\t\t\t'Update operation is not implemented for this Vector Store',\n\t\t);\n\t}\n\n\t// Get input items\n\tconst items = context.getInputData();\n\t// Create a loader for processing document data\n\tconst loader = new N8nJsonLoader(context);\n\n\tconst resultData: INodeExecutionData[] = [];\n\n\t// Process each input item\n\tfor (let itemIndex = 0; itemIndex < items.length; itemIndex++) {\n\t\tconst itemData = items[itemIndex];\n\n\t\t// Get the document ID to update\n\t\tconst documentId = context.getNodeParameter('id', itemIndex, '', {","sourceCodeStart":5,"sourceCodeEnd":41,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/ai-utilities/src/utils/vector-store/createVectorStoreNode/operations/updateOperation.ts#L5-L41","documentation":"Capability error in handleUpdateOperation. It fires when the selected vector store's client does not implement the update capability (isUpdateSupported returns false). The operation mode itself is valid; the specific store integration lacks the addDocuments-with-ids style update API, so the node refuses rather than silently mis-updating.","triggerScenarios":"Thrown at packages/@n8n/ai-utilities/src/utils/vector-store/createVectorStoreNode/operations/updateOperation.ts:23 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a vector store whose client implements the update method (check isUpdateSupported for the concrete store).","Perform the update directly against the vector store's own API or client instead of through this node.","Delete and re-insert the document as a workaround when update is not supported."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","contentChangedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}