# Postgres Node Issuse After Update

**URL:** <https://community.n8n.io/t/postgres-node-issuse-after-update/72421>\
**Category:** Questions\
**Created:** [January 24, 2025, 10:53am UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421 "2025-01-24T10:53:22Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayne](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wayne/32/42167_2.png) [@Wayne](https://community.n8n.io/u/Wayne)\
**Post date:** [January 24, 2025, 10:53am UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/1 "2025-01-24T10:53:22Z")

</div>

I’ve just updated n8n to “latest” and some of my workflows have started to fail, after reviewing, the insert op on the postgres node started to fail

this is the node:

this is the error:

```auto
{
  "errorMessage": "Values null/undefined cannot be used as raw text.",
  "errorDetails": {},
  "n8nDetails": {
    "n8nVersion": "1.76.1 (Self Hosted)",
    "binaryDataMode": "default",
    "stackTrace": [
      "TypeError: Values null/undefined cannot be used as raw text.",
      " at throwIfRaw (/usr/local/lib/node_modules/n8n/node_modules/pg-promise/lib/formatting.js:257:15)",
      " at Object.json (/usr/local/lib/node_modules/n8n/node_modules/pg-promise/lib/formatting.js:739:13)",
      " at /usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/helpers/utils.js:321:38",
      " at Array.forEach (<anonymous>)",
      " at convertValuesToJsonWithPgp (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/helpers/utils.js:320:10)",
      " at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/actions/database/insert.operation.js:172:66)",
      " at processTicksAndRejections (node:internal/process/task_queues:95:5)",
      " at ExecuteContext.router (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/actions/router.js:59:26)",
      " at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/PostgresV2.node.js:16:16)",
      " at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:632:19)"
    ]
  }
}

```

As I work around I’ve used the execute SQL op, however, I expect this will cause some issues across other workflows.

Note that the values being passed are not undefined, null or empty despite what the error states.

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [January 24, 2025, 10:53am UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/2 "2025-01-24T10:53:24Z")

</div>

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:**

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [January 27, 2025, 10:51am UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/3 "2025-01-27T10:51:44Z")

</div>

Hi @Wayne

Could you please share some sample data to be able to recreate the error? As of now, I cannot reproduce.

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Pena\_Digital\_Berkema](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/pena_digital_berkema/32/55773_2.png) [@Pena\_Digital\_Berkema](https://community.n8n.io/u/Pena_Digital_Berkema)\
**Post date:** [February 1, 2025, 7:38am UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/4 "2025-02-01T07:38:41Z")

</div>

we also have the same issue

---

<div class="post-metadata">

**Author:** ![Wayne](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wayne/32/42167_2.png) [@Wayne](https://community.n8n.io/u/Wayne)\
**Post date:** [February 1, 2025, 8:10am UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/5 "2025-02-01T08:10:09Z")

</div>

Hi Ria,

What data do you need?

I’m reluctant to update any prod n8n instances in case it affects anything but I can try to recreate to a dev instance if you can let me know what data you need.

Thanks  
Wayne

---

<div class="post-metadata">

**Author:** ![Oleksandr\_Dovgopol](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/oleksandr_dovgopol/32/40756_2.png) [@Oleksandr\_Dovgopol](https://community.n8n.io/u/Oleksandr_Dovgopol)\
**Post date:** [February 1, 2025, 6:07pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/6 "2025-02-01T18:07:41Z")

</div>

Hi guys,  
I have the same issue after the 1.74.1 update

 ![CleanShot 2025-02-01 at 20.08.33@2x](https://europe1.discourse-cdn.com/n8n/original/3X/0/2/02fd3411dce6b74ee0f1c34b92a7937915dddd12.jpeg)

---

<div class="post-metadata">

**Author:** ![Oleksandr\_Dovgopol](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/oleksandr_dovgopol/32/40756_2.png) [@Oleksandr\_Dovgopol](https://community.n8n.io/u/Oleksandr_Dovgopol)\
**Post date:** [February 1, 2025, 6:25pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/7 "2025-02-01T18:25:14Z")

</div>

But it looks like the problem is only with old workflows. Because if I create a new workflow it handles null/undefined well

 ![CleanShot 2025-02-01 at 20.23.09@2x](https://europe1.discourse-cdn.com/n8n/original/3X/9/f/9f07a251cb755857865a13e0222b8fa569d0f51b.png)

---

<div class="post-metadata">

**Author:** ![Wayne](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wayne/32/42167_2.png) [@Wayne](https://community.n8n.io/u/Wayne)\
**Post date:** [February 3, 2025, 9:41am UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/8 "2025-02-03T09:41:56Z")

</div>

@Oleksandr_Dovgopol good to know it’s not just me! I best not update n8n anywhere until this is fixed, I use Postgre alot!

---

<div class="post-metadata">

**Author:** ![Oleksandr\_Dovgopol](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/oleksandr_dovgopol/32/40756_2.png) [@Oleksandr\_Dovgopol](https://community.n8n.io/u/Oleksandr_Dovgopol)\
**Post date:** [February 3, 2025, 12:27pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/9 "2025-02-03T12:27:59Z")

</div>

Hi Wayne,  
We are a team now))

We also frequently use Postgres, so I was scared of that error. Do you run into it in newly created workflows or only in old ones?

---

<div class="post-metadata">

**Author:** ![ArthurLVVilla](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/arthurlvvilla/32/56021_2.png) [@ArthurLVVilla](https://community.n8n.io/u/ArthurLVVilla)\
**Post date:** [February 3, 2025, 1:34pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/10 "2025-02-03T13:34:44Z")

</div>

same issue here

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/c/7/c79312e15873cccd99eb5bb4b34978ccbde10714.png)

---

<div class="post-metadata">

**Author:** ![Wayne](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wayne/32/42167_2.png) [@Wayne](https://community.n8n.io/u/Wayne)\
**Post date:** [February 3, 2025, 4:32pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/11 "2025-02-03T16:32:02Z")

</div>

I only updated one instance of n8n and noticed it right away, not sure if it exists elsewhere, this could cause some major issues for us so I’ll wait and see before updating other instances.

I haven’t noticed any issues with new workflows yet, but I haven’t been keeping an eye out for it - but I will now!

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [February 4, 2025, 8:02am UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/12 "2025-02-04T08:02:36Z")

</div>

Hi guys,  
we are aware of this bug and working on a fix. Will update here when released.

🙏 Thanks for reporting this!

---

<div class="post-metadata">

**Author:** ![ria](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ria/32/99251_2.png) [@ria](https://community.n8n.io/u/ria)\
**Post date:** [February 4, 2025, 6:05pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/13 "2025-02-04T18:05:22Z")

</div>

Hi guys, the fix went out with `1.76.3` - can you please feedback if that’s working for you?

Thanks 🙂

> <https://github.com/n8n-io/n8n/pull/13037>
>
> \## Summary
> 
> In https://github.com/n8n-io/n8n/pull/11837 strict validation was …turned on by default for resource mappers, breaking existing workflows that relied on type conversion.
> 
> This PR reverts to the old behavior (strict=false) when the resource mapper has no \`attemptToConvertTypes\` option set.
> 
> \## Related Linear tickets, Github issues, and Community forum posts
> 
> https://linear.app/n8n/issue/NODE-2249/community-issue-sql-data-type-error
> 
> fixes #12651
> 
> \## Review / Merge checklist
> 
> \- \[\] PR title and summary are descriptive. (\[conventions\](../blob/master/.github/pull\_request\_title\_conventions.md)) 
> \- \[\] \[Docs updated\](https://github.com/n8n-io/n8n-docs) or follow-up ticket created.
> \- \[\] Tests included. 
> \- \[\] PR Labeled with \`release/backport\` (if the PR is an urgent fix that needs to be backported)

---

<div class="post-metadata">

**Author:** ![vadminas](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/vadminas/32/25168_2.png) [@vadminas](https://community.n8n.io/u/vadminas)\
**Post date:** [February 7, 2025, 9:12am UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/14 "2025-02-07T09:12:34Z")

</div>

Still the same on 1.77.3:

```auto
{
  "errorMessage": "Values null/undefined cannot be used as raw text.",
  "errorDetails": {},
  "n8nDetails": {
    "n8nVersion": "1.77.3 (Self Hosted)",
    "binaryDataMode": "filesystem",
    "stackTrace": [
      "TypeError: Values null/undefined cannot be used as raw text.",
      " at throwIfRaw (/usr/local/lib/node_modules/n8n/node_modules/pg-promise/lib/formatting.js:257:15)",
      " at Object.json (/usr/local/lib/node_modules/n8n/node_modules/pg-promise/lib/formatting.js:739:13)",
      " at /usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/helpers/utils.js:321:38",
      " at Array.forEach (<anonymous>)",
      " at convertValuesToJsonWithPgp (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/helpers/utils.js:320:10)",
      " at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/actions/database/insert.operation.js:172:66)",
      " at processTicksAndRejections (node:internal/process/task_queues:95:5)",
      " at ExecuteContext.router (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/actions/router.js:59:26)",
      " at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/PostgresV2.node.js:16:16)",
      " at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:633:19)"
    ]
  }
}

```

---

<div class="post-metadata">

**Author:** ![Oleksandr\_Dovgopol](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/oleksandr_dovgopol/32/40756_2.png) [@Oleksandr\_Dovgopol](https://community.n8n.io/u/Oleksandr_Dovgopol)\
**Post date:** [February 7, 2025, 5:17pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/15 "2025-02-07T17:17:14Z")

</div>

Hi!  
I am on 1.77.3 but still have the same issue with some workflows

 ![CleanShot 2025-02-07 at 19.13.38@2x](https://europe1.discourse-cdn.com/n8n/original/3X/3/2/32bb4510893cf0843998ceccedd887dc9cb07356.png)

What additional info could I provide here to help you debug it?

---

<div class="post-metadata">

**Author:** ![Wayne](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/wayne/32/42167_2.png) [@Wayne](https://community.n8n.io/u/Wayne)\
**Post date:** [February 11, 2025, 5:24pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/16 "2025-02-11T17:24:18Z")

</div>

Is anyone else still having this issue - I want to update n8n, but this gives me the fear 😉

---

<div class="post-metadata">

**Author:** ![nicolo](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/nicolo/32/57859_2.png) [@nicolo](https://community.n8n.io/u/nicolo)\
**Post date:** [February 13, 2025, 1:48pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/17 "2025-02-13T13:48:35Z")

</div>

Hello there !  
Just updated to 1.78.0 and the issue is still here ! 🙂

---

<div class="post-metadata">

**Author:** ![satputekuldip](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/satputekuldip/32/66633_2.png) [@satputekuldip](https://community.n8n.io/u/satputekuldip)\
**Post date:** [March 21, 2025, 4:47pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/18 "2025-03-21T16:47:40Z")

</div>

Hey guys still this error exists…

n8n version

`1.83.2 (Self Hosted)`

Stack trace

```auto
TypeError: Values null/undefined cannot be used as raw text. at throwIfRaw (/usr/local/lib/node_modules/n8n/node_modules/pg-promise/lib/formatting.js:257:15) at Object.json (/usr/local/lib/node_modules/n8n/node_modules/pg-promise/lib/formatting.js:739:13) at /usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/helpers/utils.js:333:38 at Array.forEach (<anonymous>) at convertValuesToJsonWithPgp (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/helpers/utils.js:332:10) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/actions/database/insert.operation.js:172:66) at processTicksAndRejections (node:internal/process/task_queues:95:5) at ExecuteContext.router (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/actions/router.js:59:26) at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Postgres/v2/PostgresV2.node.js:16:16) at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/execution-engine/workflow-execute.js:681:27)

```

---

<div class="post-metadata">

**Author:** ![satputekuldip](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/satputekuldip/32/66633_2.png) [@satputekuldip](https://community.n8n.io/u/satputekuldip)\
**Post date:** [March 21, 2025, 5:05pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/19 "2025-03-21T17:05:28Z")

</div>

Guys, I’ve found the solution. If any of the values is an array, and you leave it undefined, it will cause this error. However, if you use an empty array, it works.

---

<div class="post-metadata">

**Author:** ![Yash\_Nerkar](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/yash_nerkar/32/70073_2.png) [@Yash\_Nerkar](https://community.n8n.io/u/Yash_Nerkar)\
**Post date:** [April 2, 2025, 9:42pm UTC](https://community.n8n.io/t/postgres-node-issuse-after-update/72421/20 "2025-04-02T21:42:49Z")

</div>

Using 1.85.4, still getting the same issue. If anyone has the solution, please share.

[Next page](https://community.n8n.io/t/postgres-node-issuse-after-update/72421.md?page=2)
