Filtering on notion date "Is Empty" returns error

When using the Notion node to filter on date type that “Is Empty” I am getting a 400 validation_error response from the server. Has anyone else faced this issue?

Here are the details of the error

    StatusCodeError: 400 - {"object":"error","status":400,"code":"validation_error","message":"body failed validation. Fix one: body.filter.date.equals should be defined, instead was `undefined`. body.filter.date.before should be defined, instead was `undefined`. body.filter.date.after should be defined, instead was `undefined`. body.filter.date.on_or_before should be defined, instead was `undefined`. body.filter.date.on_or_after should be defined, instead was `undefined`. body.filter.date.past_week should be defined, instead was `undefined`. body.filter.date.past_month should be defined, instead was `undefined`. body.filter.date.past_year should be defined, instead was `undefined`. body.filter.date.next_week should be defined, instead was `undefined`. body.filter.date.next_month should be defined, instead was `undefined`. body.filter.date.next_year should be defined, instead was `undefined`. body.filter.date.is_empty should be `true`, instead was `{}`. body.filter.date.is_not_empty should be defined, instead was `undefined`."}
            at new StatusCodeError (/usr/local/lib/node_modules/n8n/node_modules/request-promise-core/lib/errors.js:32:15)
            at Request.plumbing.callback (/usr/local/lib/node_modules/n8n/node_modules/request-promise-core/lib/plumbing.js:104:33)
            at Request.RP$callback [as _callback] (/usr/local/lib/node_modules/n8n/node_modules/request-promise-core/lib/plumbing.js:46:31)
            at Request.self.callback (/usr/local/lib/node_modules/n8n/node_modules/request/request.js:185:22)
            at Request.emit (events.js:315:20)
            at Request.<anonymous> (/usr/local/lib/node_modules/n8n/node_modules/request/request.js:1154:10)
            at Request.emit (events.js:315:20)
            at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/n8n/node_modules/request/request.js:1076:12)
            at Object.onceWrapper (events.js:421:28)
            at IncomingMessage.emit (events.js:327:22)
            at endReadableNT (internal/streams/readable.js:1327:12)
            at processTicksAndRejections (internal/process/task_queues.js:80:21)

And here is the notion node in my workflow

    {
      "nodes": [
        {
          "parameters": {
            "resource": "databasePage",
            "operation": "getAll",
            "databaseId": "274d7cde-25cb-4a2f-aa24-573e57e80015",
            "returnAll": true,
            "options": {
              "filter": {
                "singleCondition": {
                  "key": "Completed On|date",
                  "condition": "is_empty"
                }
              }
            }
          },
          "name": "Notion",
          "type": "n8n-nodes-base.notion",
          "typeVersion": 1,
          "position": [
            680,
            160
          ],
          "credentials": {
            "notionApi": "Task Workflows"
          }
        }
      ],
      "connections": {}
    }

Got fixed. We will let you know when it’s released.

1 Like

Wonderful, thanks so much @RicardoE105

Got released with [email protected]

1 Like