Notion: Validation failed for 1 parameter(s). Array of objects expected in parameter 'objects'

Hi guys,

I am encountering this error message on my scenario below :point_down:

This is my scenario :point_down:

Here is the extract of the scenario:

blueprint.json (106.9 KB)

Thank you in Advance guys

On my way to becoming a Make master :crossed_fingers:

Hi Youssef,
What type of content are you appending?
Here you can find a list of block types available via the Notion API and their representation: Block

Hello Simo

Thanks a lot for your quick response. The content that I am appending is the email text that I want to add to my database item.
Do we need json only in object ?
I was directly using text email in objects.

Thanks in advance

I am not sure - could you send a screenshot of how the module that returns the error is setup?

1 Like

Hi,

I am experiencing the same error! Any guidance on how to do custom mapping to Content Objects correctly?

1 Like

It may be happening because you are passing a single string where an array is expected but cant be sure on this. If you could provide the screenshot, it will be helpful. It could be a data type mismatch as well

1 Like

here it is

image

Result is the following: it is text
image

have you tried toString(result) in content objects

1 Like

Just tried it right now but the problem persists :neutral_face:

Instead of turning on “Map” in “Content Objects”, turn it off. Then add a new block via the dedicated button and select paragraph as the type. Then map the “Result” field from OpenAI into the “Content” field

1 Like

Thanks a loot !! It is working like magic :pray:
Any rationale behind so I don’t repeat it in future ?

thanks, @Simo, @abhilash_naik for your help really appreciate it

Nice! If you turn on the mapping on “Content objects”, you need to construct the appropriate JSON as required by the dedicated endpoint in the Notion API: Append block children

If instead you construct it manually following Make’s interface, Make constructs the correct JSON for the request for you

1 Like