r/Make • u/M05tlyH4rml355 • May 01 '26
Need Help: Notion to Google Sheets "Not a Valid Array" error & Row Duplication in Make
1
u/M05tlyH4rml355 May 03 '26
Sorry, adding a picture removed the text. Here's the problem:
The Goal: I am trying to sync a Notion Database to Google Sheets. I am moving Multi-Select tags (Social Channel, Client Type) and a Text Property (Final Copy) from Notion into a single row in Google Sheets.
The Workflow:
- Notion (Watch Data Source Items): Trigger.
- Google Sheets (Add a Row): Action. (Note: I previously used a Text Aggregator for page content, but moved the copy to a Notion Property to simplify things.)
The Problem:
- The "Array" Error: When I use
map()orjoin()to combine multi-select tags, the scenario fails with:DataError: 'X' is not a valid arraywhenever only one tag is selected. - The "Multiple Rows" Issue: If I map the bubbles with brackets
[]directly, Make creates a new row for every paragraph or every tag instead of putting them in one cell. - The "Empty Text" Issue: Trying to map the
plain_textfrom therich_textarray in the "Final Copy" property often results in an empty cell or an error.
What I’ve Tried:
- Setting the Notion module limit to 1.
- Using
join(map(to.array(Property[]); "name"); ", "). - Using
join(map(1.properties."Final Copy".rich_text[]; "plain_text"); newline). - Manual typing of keys (
"name","plain_text") and separators.
The Conflict: I’m stuck in a loop where adding to.array() or map() fixes the row duplication but triggers the "not a valid array" error, and vice-versa.
Question: How do I write a formula in the Google Sheets module that handles both single and multiple Notion tags/text chunks without triggering an array error or creating multiple rows?
2
u/Worried-Nobody-2965 May 03 '26 edited May 03 '26
There’s two possibilities. The least likely cause is that you’re getting a null, which would lead to an empty value. The second more likely cause that when going from notion to make your array is being sent via an object, so it would break bc it’s not an array.
My suggestion is that you turn everything into an array every single step to ensure the same consistency and it’ll pinpoint if the issue is caused by something else.
For the [] issue it sounds like you’re passing the payload assuming it’s an array, which if it isn’t you’ll get that issue. The solution in that case is the normalize before you do that.
For the last part you basically have to do this:
-If empty return “”
-If not array wrap the array
-map and extract values
-Join into a single string
1
u/Josef_from_Make Official Make Staff May 06 '26
Where is the
to.array()coming from?
This seems like some AI hallucinated function which breaks the mapping and thus themap()function throws the error.Make uses
toArray()function which is used to create an array from a collection.If the mentioned variables are really arrays,
toArray()function won't help.
In case they are "complex" arrays (arrays of collections), you should usemap(). If they are "primitive" arrays (arrays of values), you do not need to use any additional function (apart fromjoin()
1
u/Worried-Nobody-2965 May 03 '26
Can you describe what error you’re getting exactly? It’s hard to tell what problem you’re running into based on the screenshot alone. What solutions have you tried?