Notion Search error

I get this error

[400] body failed validation. Fix one:
body.filter.or[0].select.equals should be defined, instead was undefined.
body.filter.or[0].select.does_not_equal should be defined, instead was undefined.
body.filter.or[0].select.is_empty should be defined, instead was undefined.
body.filter.or[0].select.is_not_empty should be defined, instead was undefined.

This is my module

Try to replace “Text: Contains” with “Select: Equals”

2 Likes

But I don’t want the database items where the properties equal to it, but contain it, I will replace the words “Frans” with a variable later, this is just testing

Yes I see your point - the first filter in the screenshot is using the property named “Type”, which is a Select property in Notion, according to what’s written next to it.

Same for the third filter in the screenshot, which is using the property “Vak”, of Select type.

Since the “select” property type in Notion is an array (see documentation), it is required to use the appropriate filter condition (“Select: Equals”), because using “Text: Contains” is a data type mismatch, and outputs an error message.

On the other hand, you can keep “Text: contains” as the filter condition on the “Name” property (second filter in the screenshot), since that is indeed a text data type.

You can let me know in case I am misunderstanding anything

2 Likes

I understand thanks.

this solves it

1 Like