n8n-io/n8n · error · NodeOperationError
Only the "retrieve" and "retrieve-as-tool" operation mode is
Error message
Only the "retrieve" and "retrieve-as-tool" operation mode is supported to supply data
What it means
Error "Only the "retrieve" and "retrieve-as-tool" operation mode is supported to supply data" thrown in n8n-io/n8n.
Source
Thrown at packages/@n8n/ai-utilities/src/utils/vector-store/createVectorStoreNode/createVectorStoreNode.ts:498
try {
const mode = this.getNodeParameter('mode', 0) as NodeOperationMode;
// Get the embeddings model connected to this node
const embeddings = (await this.getInputConnectionData(
NodeConnectionTypes.AiEmbedding,
0,
)) as Embeddings;
// Handle each supply data operation mode with dedicated modules
if (mode === 'retrieve') {
return await handleRetrieveOperation(this, args, embeddings, itemIndex);
}
if (mode === 'retrieve-as-tool') {
return await handleRetrieveAsToolOperation(this, args, embeddings, itemIndex);
}
throw new NodeOperationError(
this.getNode(),
'Only the "retrieve" and "retrieve-as-tool" operation mode is supported to supply data',
);
} catch (error) {
normalizeVectorStoreError(this.getNode(), error, itemIndex);
}
}
};
View on GitHub (pinned to 5ac6606e81)
When it happens
Trigger: Thrown at packages/@n8n/ai-utilities/src/utils/vector-store/createVectorStoreNode/createVectorStoreNode.ts:498 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of n8n-io/n8n@5ac6606e81 (2026-08-12).
Data as JSON: /api/errors/e5b2f03d2ce8ebed.
Report an issue: GitHub.