N8n-ai cloud - Xata Memory Error

Describe the problem/error/question

I am trying to use the Xata platform as a memory server via n8n cloud, using a simple workflow consisting of manual chat → conversation agent with OpenAI node as the model and Xata connected (with the correct credentials) as a memory source. However, the agent returns an error upon execution. Looking at the agent logs, it is replying to me, however it seems it can’t store (or retrieve) the chat session.

What is the error message (if any)?

Error: input values have 2 keys, you must specify an input key or pass only 1 key as input
    at getInputValue (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/@[email protected]/node_modules/@langchain/core/dist/memory.cjs:31:15)
    at Proxy.saveContext (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@google-ai+gen_l2pdhycmx5ubucgl6yjsjdwoyq/node_modules/langchain/dist/memory/chat_memory.cjs:52:75)
    at AgentExecutor.call (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@google-ai+gen_l2pdhycmx5ubucgl6yjsjdwoyq/node_modules/langchain/dist/chains/base.cjs:136:31)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.conversationalAgentExecute (/usr/local/lib/node_modules/n8n/packages/@n8n/nodes-langchain/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js:57:24)
    at Workflow.runNode (/usr/local/lib/node_modules/n8n/packages/workflow/dist/Workflow.js:696:19)
    at /usr/local/lib/node_modules/n8n/packages/core/dist/WorkflowExecute.js:656:53

Please share your workflow

Share the output returned by the last node

ERROR: input values have 2 keys, you must specify an input key or pass only 1 key as input

Information on your n8n setup

  • n8n version: n8n@ai-beta
  • Database (default: SQLite): Xata
  • n8n EXECUTIONS_PROCESS setting (default: own, main): default
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Cloud
  • Operating system: MacOS Sonoma

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Alex_Stewart,

Thanks for the report, I have managed to reproduce this and have created a dev ticket to look into it further which we will be tracking as NODE-1040

1 Like

Thank you - is there a way for us to see the status of the ticket?

Hey @Alex_Stewart,

Not at the moment, But maybe we should sort something out for that :thinking:

Would be great for cases where multiple people report a problem so they can see progress without filling up the forum with questions/replies

Yeah, I was thinking that. I have found that the search is not used much as well so we may implement some tweaks for that.

1 Like

Any update on this?

Hey @Alex_Stewart,

Not yet, I will take a look at it later today though and see if I can get it sorted in the next release.

Jon, any update you have on this?

Hey @Max.M,

I didn’t get a chance to take a look, It should be picked up soon though.