// guides · n8n error index

n8n Simple Vector Store not working? 23 tests, every error decoded

Why the n8n Simple Vector Store returns duplicates, nothing or null scores, and what Cannot embed empty or undefined text means. Tested on n8n 2.43.7.

Updated 2026-10-25 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. How we tested, and what is real

    On 25 October 2026 we ran 23 executions on n8n 2.43.7 with n8n execute: the Simple Vector Store node (version 1.3) in Insert and Get Many modes, the Default Data Loader (1.1) and Embeddings OpenAI (1.2, text-embedding-3-small). We pointed the OpenAI credential's Base URL at a small local stand-in that returns simple word-count vectors and logs every request. So no real OpenAI model was called and the scores only make sense compared with each other; what n8n sent, how many calls it made, what it stored and its error texts are real.

  2. Duplicate results: Get Many runs once per item

    If Get Many comes after Insert in the same workflow, it receives every item Insert outputs and runs the search once for each. With 3 inserted documents we got 9 results (3 copies of the ranking) and paid for 3 query embeddings; with Limit 1, 3 copies of the same document. Turn on Settings > Execute Once on the Get Many node, or start retrieval from its own trigger.

  3. Empty results: the store lives in memory

    Simple Vector Store keeps everything in n8n's memory. A Get Many in a new process returned 0 items with a green node and no warning. n8n itself warns that the data is lost when n8n restarts, may be cleared when memory runs low, and is shared by every user on the instance. A different Memory Key on the insert and load side gives the same silent 0 items. Since version 1.2 keys are shared between workflows (1.0 and 1.1 added the workflow ID). For anything that must survive a restart, use a real vector database.

  4. Null scores: dimensions must match

    Inserting with the Embeddings option Dimensions set to 256 and searching with the default (1536) did not fail: every score was null and results came back in insert order. Use the same embeddings model and the same dimensions on both sides. If you change either, insert everything again.

  5. Junk documents: do not chain two vector store nodes

    A vector store node placed after Insert receives Insert's output, which is document objects with pageContent and metadata, not your original items. With Load All Input Data it stored 15 junk documents (blob, application/json, line numbers) and the Get Many after it ran 15 times. Connect each vector store node to the node that holds your original data instead.

  6. Only string values get embedded

    With Load All Input Data only string values become text: {"text": "...", "id": 1} embedded just the text, and a nested order with an ID and a note embedded just refund. Put everything you want searchable in one string field, or switch the Default Data Loader to Load Specific Data and point it at that field. If that expression is empty (a field name the item doesn't have), you get the misleading Document loader is not initialized.

  7. "Cannot embed empty or undefined text" and sub-node errors

    In Get Many, a prompt like {{ $json.question }} on items that have no question field fails with Cannot embed empty or undefined text; this is common when the items come from Insert instead of your trigger. An empty static prompt fails with Parameter "Prompt" is required.. With no embeddings connected you get A Embedding sub-node must be connected and enabled, and Insert without a document loader gives A Document sub-node must be connected and enabled.

  8. Credential errors, chunk size and one bad document

    Unlike the chat model nodes, the embeddings node shows OpenAI's reason directly: 401 Incorrect API key provided; 429 You exceeded your current quota means billing, not a rate limit; a Base URL without /v1 gives 404 Invalid URL (POST /embeddings). Simple text splitting cuts at 1000 characters with 200 overlap, so 3 texts of 1,273 characters became 6 chunks; a Recursive Character Text Splitter at 4000 gave 3. All chunks go to OpenAI in one request by default (Batch Size 200), so one document over the model's limit failed the whole Insert and nothing was stored, even with On Error: Continue. Split very long texts first.

All test results

We ran 23 executions; some rows group several. Left: what we set up. Right: what n8n did (real; the vectors came from our stand-in, see the first step).

TestResult
Insert 3 documents, then Get Many in the same workflowGet Many got 3 items, searched 3 times and returned 9 results (3 copies of the ranking); the query was embedded 3 times (3 billed calls)
Same with Limit 13 copies of the same top document
Get Many only, in a new n8n process0 items, node green, no warning: the in-memory store was empty
Insert with Memory Key vector_store_key, load with other_key0 items, no warning
Insert with Embeddings option Dimensions 256, query with the default (1536)Node succeeded, every score null, results just in insert order
Second Simple Vector Store node (Insert) chained after the first InsertIt stored Insert's output (document objects): 15 junk documents like blob and application/json; the Load after it ran 15 times (60 results)
Load All Input Data on {"text": "...", "id": 1}Only the text was embedded; the number was dropped
Load All Input Data on nested {"order": {"id": 1, "note": "refund"}}pageContent was just refund
Load Specific Data with {{ $json.body }} on items that only have textDocument loader is not initialized (the real cause is an empty expression)
Load Specific Data with {{ $json.text }}Worked (text/plain)
Get Many prompt {{ $json.question }} on items without questionCannot embed empty or undefined text
Get Many with an empty static promptParameter "Prompt" is required.
No Embeddings sub-node connectedA Embedding sub-node must be connected and enabled
Insert with no Document loader connectedA Document sub-node must be connected and enabled
Wrong API key401 Incorrect API key provided, shown directly
No credits (429 insufficient_quota)429 You exceeded your current quota, please check your plan and billing details: billing, not a rate limit
Base URL without /v1404 Invalid URL (POST /embeddings)
3 texts of 1,273 characters, Simple text splitting6 chunks (1000 characters, 200 overlap)
Same with a Recursive Character Text Splitter at 40003 chunks
Embedding Batch Size 23 embedding requests of 2 chunks (the default 200 sends one request)
One document too long (scripted 400 context length)The whole Insert failed and nothing was stored; On Error: Continue still ended the execution in error

Checklist

Good to know

What we did not test

Real OpenAI embeddings (all vectors came from our stand-in), other embeddings providers, persistent vector stores (Pinecone, Qdrant, Supabase, PGVector), the Retrieve-as-tool mode, metadata filters, and n8n Cloud.

FAQ

Why does the n8n Simple Vector Store return duplicate results?

Get Many runs once per incoming item. After an Insert of 3 documents it searches 3 times. Turn on Execute Once on the Get Many node or give retrieval its own trigger.

Why does my n8n Simple Vector Store return nothing?

It is in memory: a restart empties it, and a different Memory Key on insert and load finds nothing. Both fail silently with 0 items.

Why are all scores null in the n8n vector store?

The embeddings used to insert and to search have different dimensions or models. Use the same on both sides and insert again.

What does "Cannot embed empty or undefined text" mean in n8n?

The Get Many prompt expression resolved empty, usually because the items come from Insert and have no question field.

What does "Document loader is not initialized" mean in n8n?

In our tests it meant the Load Specific Data expression pointed at a field that does not exist, so there was no text to load.

Does the n8n Simple Vector Store keep data after a restart?

No. It is stored in memory, lost on restart, may be cleared when memory is low and is shared across users. Use a persistent vector database for production.

Related guides

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.