Notion Update Page failing: "Could not extract page ID from URL

I am trying to update a page in Notion using the Notion node (v2). The pageId is calculated in a previous Code node (★ Merge Final Data) and passed as a string (UUID) in the field notion_page_id.

However, the Notion node throws the error Could not extract page ID from URL, even though I am passing a clean UUID (e.g., 2e69f1de-da21-81c6-9004-d1d74cc1b28e).

It seems like the node is expecting a full URL string instead of an ID, or there is a mismatch in the parameter mode (ID vs URL). I previously tried using a “Get Database” node to ensure the ID was correct, but I am facing the same issue when trying to map that ID to the update node.

What is the error message (if any)?

JSON

[
  {
    "error": "Could not extract page ID from URL: 2e69f1de-da21-81c6-9004-d1d74cc1b28e"
  },
  {
    "error": "Could not extract page ID from URL: 2e69f1de-da21-819a-aebc-c23f23ff4f2d"
  }
]

Please share your workflow

JSON

Share the output returned by the last node

JSON

[
  {
    "batch_id": "BATCH_1768219747743_byfsgg",
    "email_id": "19bb1bca41f33075",
    "nombre_subvencion": "Convocatoria de Colaboración Público-Privada 2025",
    "notion_page_id": "2e69f1de-da21-81c6-9004-d1d74cc1b28e"
    // ... (rest of the data is present but omitted for brevity)
  },
  {
    "batch_id": "BATCH_1768219747743_byfsgg",
    "email_id": "19bb1bc97fc8cd66",
    "nombre_subvencion": "Programa NEXOS (continuación antiguo Conecta PEME)",
    "notion_page_id": "2e69f1de-da21-819a-aebc-c23f23ff4f2d"
    // ...
  }
]

Information on your n8n setup

  • **n8n version:**2.2.2

  • Database (default: SQLite): default

  • n8n EXECUTIONS_PROCESS setting (default: own, main): [e.g., own]

  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker

  • Operating system: Windows

Hi @AlexOptimizalo, welcome!

First:
The error is clear: you have configured the Notion node with Database Page set to By URL, so i think it expect a URL,

Second:
which i think your issue is here, you’re using the Resource: Database Page which is something different other than the Resource: Page

This format looks like a Page ID, not a Database Page ID: