n8n - 💡(How to fix) Fix Notion node v2.2: API-created workflow with malformed `filters` shape silently redirects to new draft instead of rendering [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#29136Fetched 2026-04-26 05:24:00
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
commented ×1labeled ×1mentioned ×1subscribed ×1

Error Message

Describe the problem/error/question

When a Notion node ([email protected]) is created via the public API or n8n-mcp with a filters parameter using the Notion REST API shape ({"and": [...]}) instead of the n8n-internal shape (filters.conditions[] with key|type keys), the workflow editor refuses to render the workflow. Instead of a validation error, the editor silently redirects to a fresh ?new=true draft. Each URL paste creates another empty draft, polluting the workflow list. The workflow exists server-side and is fully retrievable via GET /api/v1/workflows/:id — only the UI fails. Expected: editor loads the workflow and shows a clear validation error on the offending node, OR the create/update API rejects with a structured error. Actual: silent UI redirect with a brief unreadable error flash; orphan empty drafts created server-side.

What is the error message (if any)?

Visible only as a flash before the redirect — too short to read. No console-level error retained after navigation. Network tab shows a successful GET /workflow/<id> followed by an immediate client-side replace to /workflow/<newId>?new=true.

  • error: all

Fix Action

Fix / Workaround

Workaround / correct shape:

Code Example

{
  "name": "Notion filter bug repro",
  "nodes": [
    {
      "id": "cron",
      "name": "Cron",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [80, 80],
      "parameters": { "rule": { "interval": [{ "field": "days", "daysInterval": 1, "triggerAtHour": 6 }] } }
    },
    {
      "id": "notion",
      "name": "Notion - read",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [300, 80],
      "parameters": {
        "resource": "databasePage",
        "operation": "getAll",
        "databaseId": { "__rl": true, "mode": "id", "value": "<any-valid-db-id>" },
        "returnAll": true,
        "filterType": "manual",
        "filters": {
          "and": [
            { "property": "Date",   "date":   { "equals": "={{ $today.toISODate() }}" } },
            { "property": "Status", "select": { "equals": "planned" } }
          ]
        }
      },
      "credentials": { "notionApi": { "id": "<valid-cred-id>", "name": "Notion" } }
    }
  ],
  "connections": {
    "Cron": { "main": [[{ "node": "Notion - read", "type": "main", "index": 0 }]] }
  },
  "settings": { "executionOrder": "v1" }
}

---

"filters": {
  "conditions": [
    { "key": "Date|date",    "condition": "equals", "date": "={{ $today.toISODate() }}" },
    { "key": "Status|select", "condition": "equals", "selectValue": "planned" }
  ]
}
RAW_BUFFERClick to expand / collapse

Describe the problem/error/question

When a Notion node ([email protected]) is created via the public API or n8n-mcp with a filters parameter using the Notion REST API shape ({"and": [...]}) instead of the n8n-internal shape (filters.conditions[] with key|type keys), the workflow editor refuses to render the workflow. Instead of a validation error, the editor silently redirects to a fresh ?new=true draft. Each URL paste creates another empty draft, polluting the workflow list. The workflow exists server-side and is fully retrievable via GET /api/v1/workflows/:id — only the UI fails.

Expected: editor loads the workflow and shows a clear validation error on the offending node, OR the create/update API rejects with a structured error.

Actual: silent UI redirect with a brief unreadable error flash; orphan empty drafts created server-side.

What is the error message (if any)?

Visible only as a flash before the redirect — too short to read. No console-level error retained after navigation. Network tab shows a successful GET /workflow/<id> followed by an immediate client-side replace to /workflow/<newId>?new=true.

Please share your workflow/screenshots/recording

{
  "name": "Notion filter bug repro",
  "nodes": [
    {
      "id": "cron",
      "name": "Cron",
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.3,
      "position": [80, 80],
      "parameters": { "rule": { "interval": [{ "field": "days", "daysInterval": 1, "triggerAtHour": 6 }] } }
    },
    {
      "id": "notion",
      "name": "Notion - read",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2.2,
      "position": [300, 80],
      "parameters": {
        "resource": "databasePage",
        "operation": "getAll",
        "databaseId": { "__rl": true, "mode": "id", "value": "<any-valid-db-id>" },
        "returnAll": true,
        "filterType": "manual",
        "filters": {
          "and": [
            { "property": "Date",   "date":   { "equals": "={{ $today.toISODate() }}" } },
            { "property": "Status", "select": { "equals": "planned" } }
          ]
        }
      },
      "credentials": { "notionApi": { "id": "<valid-cred-id>", "name": "Notion" } }
    }
  ],
  "connections": {
    "Cron": { "main": [[{ "node": "Notion - read", "type": "main", "index": 0 }]] }
  },
  "settings": { "executionOrder": "v1" }
}

Reproduces 100% by:

  1. POST this JSON to /api/v1/workflows
  2. Open the resulting /workflow/:id in the editor
  3. Observe the redirect to a new empty workflow

Workaround / correct shape:

"filters": {
  "conditions": [
    { "key": "Date|date",    "condition": "equals", "date": "={{ $today.toISODate() }}" },
    { "key": "Status|select", "condition": "equals", "selectValue": "planned" }
  ]
}

Share the output returned by the last node

n/a — workflow never executes; it never opens in the editor.

Debug info

core

  • n8nVersion: 2.17.7
  • platform: docker (cloud)
  • nodeJsVersion: 24.14.1
  • nodeEnv: production
  • database: sqlite
  • executionMode: regular
  • concurrency: 5
  • license: enterprise (sandbox)

storage

  • success: all
  • error: all
  • progress: false
  • manual: true
  • binaryMode: filesystem

pruning

  • enabled: true
  • maxAge: 168 hours
  • maxCount: 2500 executions

client

  • userAgent: mozilla/5.0 (macintosh; intel mac os x 10_15_7) applewebkit/537.36 (khtml, like gecko) chrome/147.0.0.0 safari/537.36
  • isTouchDevice: false

Generated at: 2026-04-25T18:33:35.152Z

extent analysis

TL;DR

The Notion node's filters parameter should be updated to use the n8n-internal shape (filters.conditions[] with key|type keys) instead of the Notion REST API shape ({"and": [...]}) to fix the workflow editor rendering issue.

Guidance

  • Verify that the filters parameter in the Notion node is using the correct shape by checking the node's configuration in the workflow editor or the workflow JSON.
  • Update the filters parameter to use the n8n-internal shape, as shown in the provided workaround example.
  • Test the updated workflow by saving and reloading it in the editor to ensure it renders correctly.
  • If issues persist, try checking the browser console for any error messages that may indicate the cause of the problem.

Example

"filters": {
  "conditions": [
    { "key": "Date|date",    "condition": "equals", "date": "={{ $today.toISODate() }}" },
    { "key": "Status|select", "condition": "equals", "selectValue": "planned" }
  ]
}

Notes

The provided workaround example demonstrates the correct shape for the filters parameter, but it is unclear if this is the only possible solution. Further testing and debugging may be necessary to fully resolve the issue.

Recommendation

Apply the workaround by updating the filters parameter to use the n8n-internal shape, as this has been shown to resolve the issue in the provided example.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

n8n - 💡(How to fix) Fix Notion node v2.2: API-created workflow with malformed `filters` shape silently redirects to new draft instead of rendering [1 comments, 2 participants]