# Error in sub-node Postgres, please help

**URL:** <https://community.n8n.io/t/error-in-sub-node-postgres-please-help/135809>\
**Category:** Questions\
**Created:** [June 20, 2025, 12:43pm UTC](https://community.n8n.io/t/error-in-sub-node-postgres-please-help/135809 "2025-06-20T12:43:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![inspireall](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/inspireall/32/92424_2.png) [@inspireall](https://community.n8n.io/u/inspireall)\
**Post date:** [June 20, 2025, 12:43pm UTC](https://community.n8n.io/t/error-in-sub-node-postgres-please-help/135809/1 "2025-06-20T12:43:08Z")

</div>

After the agent, the memory node gives an error. It should receive the session ID, thanks to which it analyzes the correspondence with a specific user to form a response and record this response. I am sure that I correctly pass the session ID Key to the string, but no matter what I do, the error still pops up. I tried to solve the problem with AI, but without success. Please help.  
Here is a link to download my workflow, the code doesn’t fit in this post [workflow — Яндекс&nbsp;Диск](https://disk.yandex.ru/d/pg2vTutTCU6yuw)

error name - Error in sub-node Postgres  
Chat Memory"  
Got unexpected type: undefined

## Information on your n8n setup

- **n8n version:** 1.95.3
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):** browser
- **Operating system:** windows 10

```auto
![2025-06-19_15-28-17|690x290](upload://n9ZBj33uv4gJ3UkewEe4Mjirkyg.png)
![2025-06-19_15-28-33|690x343](upload://5h9GLucDBB399ez5OyUQwJrh7gI.png)
![2025-06-19_15-46-44|689x174](upload://60OcjUtY43uyF6bb4EFFKAbmLnK.png)
```

---

<div class="post-metadata">

**Author:** ![Wouter\_Nigrini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wouter_nigrini/32/150261_2.png) [@Wouter\_Nigrini](https://community.n8n.io/u/Wouter_Nigrini)\
**Post date:** [June 20, 2025, 1:20pm UTC](https://community.n8n.io/t/error-in-sub-node-postgres-please-help/135809/2 "2025-06-20T13:20:12Z")

</div>

For security and safety reasons, please avoid sharing external download links. You can select only the nodes surrounding your ai agent and paste those in the code block to reduce the size limitation

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [September 18, 2025, 1:21pm UTC](https://community.n8n.io/t/error-in-sub-node-postgres-please-help/135809/3 "2025-09-18T13:21:11Z")

</div>

Closed on September 18, 2025, 1:21pm UTC

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