Fixing Function 'getBlocksData' finished with error! JSON for blocks is invalid. Error

I have a flow that is pulling all calendar events from the week and aggregating them together. I want to format the slack message using blocks but I keep running into this issue “Function ‘getBlocksData’ finished with error! JSON for blocks is invalid.”

I tried removing the text aggregator and it would then send each calendar event as its own block. What I’m looking to do is have each event listed underneath in the same block.


1 Like

Welcome to the Make community!

You have to use Transform to JSON module with the text before mapping it in the slack module, because your text contains special characters.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

Thank you for your response.


I’ve added this step and am still running into the same error.

And how are you mapping the new JSON output in your Slack module?

You will have to remove any double quotes around the JSON variable in the Slack module, because if you look closely, it already contains double quotes.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

2 Likes

Thank you so much for your help! This worked

1 Like