"Cannot read properties of undefined (reading 'replace')" error from the Vector Store Tool when used with the AI Agent

“Cannot read properties of undefined (reading ‘replace’)” error from the Vector Store Tool when used with the AI Agent.

What is the error message (if any)? Error in sub-node ‘Vector Store Tool‘

No execution data available

Please share your workflow

Share the output returned by the last node

There is no output from the AI agent node.

Information on your n8n setup

  • **n8n version: 1.100.1
  • **Database (default: SQLite): default
  • **n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • **Operating system: Windows 11 home v24h2

i’ve spent 2 days trying to troubleshoot with Google Gemini and we can’t seem to find the cause

Hey,
I want to push this topic because I’m running into the same problem. I’ve got several PGVector Vector Store nodes connected to an AI agent. Sometimes everything works as expected, but other times I get a “Cannot read properties of undefined (reading ‘replace’)” error from the vector store node. It looks like the AI agent node occasionally isn’t passing the right input to the vector store tool.

Anyone else seeing this? Or any ideas for a fix?

hey, this was also happening to me but i found a way to fix it. in my case i just got rid of letters that do not exist in english like Ç. this may be the problem, i suggest you try to use english or number as the name of your collection and this will cause problems to the whole workflow not just the tool that has this

Even I got this issue now, It suddenly worked somehow and later it threw me the same error. The only parameters here are the description and limit. How can they create issues, they are literally very simple.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.