The error you're encountering:
"propertyValues[itemName] is not iterable"
is a common issue when trying to import improperly structured workflows into n8n—especially JSON that may look valid but fails internal n8n format expectations, such as:
- Node
ids must be alphanumeric or UUIDs, not names like "Telegram Trigger" (that's a name, not a valid id)
- The overall structure might seem like JSON, but there's a mismatch in how
connections or node objects are built
- Potential data parsing issues with property values inside nodes (e.g.,
updates, rules, etc.)
- Improper formatting, such as using older n8n versions vs newer formatting standards (e.g., in
switch node outputs)
✅ Here’s What You Can Do (Fix Guide)
Instead of manually checking a 600+ line JSON, let me help you validate and fix step-by-step.
✅ 1. Basic Fix for the JSON Ending
Make sure the final character of your JSON is } — currently, you're ending it with this invalid character:
}ù
❌ Remove that final ù. It corrupts the JSON.
✅ 2. Replace All id Fields With Unique IDs
You are using node names like this:
"id": "Telegram Trigger"
n8n expects id fields to be like "1", "2" or UUID-like strings.
✅ Replace all "id" values with simple numbers or UUIDs, e.g.:
- "id": "Telegram Trigger"
+ "id": "1"
- "id": "Get State"
+ "id": "2"
Do not use human-readable names for the id field.
Leave the "name" field for human-readable purposes.
✅ 3. Fix Your Switch Node Connections
The Switch node must define mappings per output index. Your current format is invalid for the current n8n versions, which expect this shape:
✅ Example structure:
"Switch State": {
"main": [
[{"node": "Ask Location", "type": "main", "index": 0}],
[{"node": "Set Location", "type": "main", "index": 0}],
[{"node": "Set Job Title", "type": "main", "index": 0}],
[{"node": "Set Gender & Complete", "type": "main", "index": 0}],
[{"node": "Get Complete State", "type": "main", "index": 0}]
]
}
This ensures each rule in your Switch node connects to a specific node output.
✅ 4. Check for undefined or empty parameters, rules, updates
For example, this part from your JSON is correct:
"updates": [
{
"updateKey": "message"
}
]
But if any node has empty arrays or improper properties (e.g. "rules": undefined), the import will fail.
✅ 5. Validate the JSON Format
Before importing, make sure your JSON is cleanly formatted and valid JSON (test it in https://jsonlint.com)
✅ Solution: Let’s Make It Easier
Since it’ll take a long time manually fixing this large JSON, I suggest:
👉 Best Option (Recommended):
Upload your current .json file to a paste service (like Pastebin or GitHub Gist), send me the link, and I’ll fix and return a working n8n workflow JSON.
👉 Alternative (Cleaner version):
Would you like me to give you a fully working minimal version of your Telegram + DataStore + Switch + HTTP Request + Code + Response workflow?
That might be faster and more stable than trying to fix this large JSON blob that likely has multiple structure issues.
✅ Summary
| Problem | Fix |
|---|
"propertyValues[itemName] is not iterable" | Usually occurs due to malformed internal structures (e.g., wrong id, bad output format, Switch rules, etc.) |
id values are invalid | Replace with integer or UUID-like IDs |
Extra character at the end (ù) | Remove it |
| Improper Switch node links | Use array per output as shown above |
| Improper JSON values | Make sure no fields are null, undefined, or expressions in the wrong place |
Let me know how you’d like to proceed:
- ✅ Provide a cleaned version I can validate and send back
- 🚀 Start from scratch with a modular minimal version
- 📎 Or send the JSON via paste tool and I’ll fully repair it.