It seems that there is an error every time i try to import a workflow created by an AI tool. I cant seem to find what exactly is failing the import. It is failing on both self hosted and cloud
The âpropertyValues[itemName] is not iterableâ error is a known issue that occurs when importing AI-generated workflows, as mentioned in [github.com](propertyValues[itemName] is not iterable ¡ Issue #14775 ¡ n8n-io/n8n ¡ GitHub). This typically happens because AI tools sometimes generate JSON structures that donât match n8nâs expected format exactly.
To fix this, try these steps:
⢠First, validate your workflow JSON using a JSON validator to ensure itâs properly formatted
⢠Check if any node parameters contain arrays where n8n expects objects or vice versa
⢠Try importing the workflow in smaller parts - copy individual nodes first, then rebuild connections manually
⢠As a workaround, you can often fix the JSON by opening it in a text editor and looking for any malformed arrays or missing brackets around parameter values
If the issue persists, consider sharing the problematic JSON (with sensitive data removed) in the n8n community forum for more specific debugging help.
As you are trying to make an n8n workflow using ClaudeCode, i recommend adding an MCP on ClaudeCode which is the official n8n docs mcp â https://n8n.mcp.kapa.ai/ â , and this will allow claudeCode to see how workflows are made and basic data structures n8n workflow JSON uses, this helped me a lot when trying out AI generated workflows. As adding MCP server will allow claudeCode to actually see how things actually work in n8n, and this will help you get better AI generated JSON (Workflow Automation) , and this will also reduce the chance of âworkflow not importingâ as most of the times workflow not importing means invalid JSON for n8n flows , let me know if the issue persists!