Invalid reference in parameter "category". Invalid IML. Make crashed when I tried to connect a Notion database to Webflow CMS with stitch code

I am novice Pls help me, Make crashed(

My goal was to connect a Notion database to Webflow CMS. So there I was about to connect category parameters, it didn’t work when I just indicated category parameter of Notion. So I here I found I need to add stitch code like this:
{{switch({{1.properties_value.Categories.name}};“Accessories”;“fa773c6b665d2228d8b9d7898eb9e111”;“Hoody”;“78176417bed8210347c0f2585d27e298”)}}

After adding this code Make crashed. So now I cannot even change categories to default and save(3)

Screenshot 2024-02-15 at 14.12.15
2.


3.

Welcome to the Make community!

Does the error go away after reloading the web page on your browser?

If not, export the blueprint and remove the code. Then import into a new scenario.

2 Likes

Hello) Yes it doesn’t go away when I reload page. I deleted a module and recreated it. But if write again this code, it crashes) Still have a problem in connecting properties( “Select” (Notion) and “Option”(Webflow).

You cannot nest two sets of {{ }}

Currently you are doing this

{{switch({{1.properties_value.Categories.name}};“Accessories”;“fa773c6b665d2228d8b9d7898eb9e111”;“Hoody”;“78176417bed8210347c0f2585d27e298”)}}

Perhaps try

{{ switch(1.properties_value.Categories.name;"Accessories";"fa773c6b665d2228d8b9d7898eb9e111";"Hoody";"78176417bed8210347c0f2585d27e298") }}
2 Likes

This {{ }} arised after when I copy from that field. It actually it doesn’t have that {{}}

Copy my second code above into your field, and take a screenshot of the mapping and error if it doesn’t work.

2 Likes

1. Pasted your second code

Screenshot 2024-02-15 at 16.01.50

2. Run a code.

Screenshot 2024-02-15 at 16.03.17

3. Again that problem. And again cannot save that module

Nope, if you pasted it into a blank/empty field, you should get this.

Click to play gif:

temp

You need to first clear the field, and paste the copied code exactly.

Copy the code by clicking the copy button when you mouseover the top-right of the code block
Screenshot_2024-01-17_200117

{{switch(1.properties_value.Categories.name; "Accessories"; "fa773c6b665d2228d8b9d7898eb9e111"; "Hoody"; "78176417bed8210347c0f2585d27e298")}}
3 Likes

Now I pasted your last code. But now I got another error

Screenshot 2024-02-15 at 16.14.06

Screenshot 2024-02-15 at 16.14.38

Good that’s progress, now simply remap the variables in black (select/pick from an existing module).

You might have already deleted module 1, so you need to update the variables referencing module 1.

2 Likes

Thank you a lot) Scenario is working and running without error. But not delivering that information(Category). Why it can happen?

1. Added a new product

Screenshot 2024-02-15 at 17.19.44

2. It is delivering to webflow. But without “Category”


No problem, glad I could help!

1. If you have a new question in the future, please start a new thread. This makes it easier for others with the same problem to search for the answers to specific questions, and you are more likely to receive help since newer questions are monitored closely.

2. The Make Community guidelines encourages users to try to mark helpful replies as solutions to help keep the Community organized.

This marks the topic as solved, so that:

others can save time when catching up with the latest activity here, and

  • allows others to quickly jump to the solution if they come across the same problem

To do this, simply click the checkbox at the bottom of the post that answers your question:
Screenshot_2023-10-04_161049

3. Don’t forget to like and bookmark this topic so you can get back to it easily in future!

1 Like