"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