Hello everyone,
I am running n8n locally on my laptop using Docker and am currently developing a workflow that listens for incoming emails, downloads an attached Excel file, and extracts data from it.
The Excel file contains program schedules for a TV channel over one year:
- Each sheet represents one month
- Each month contains multiple days
- Each day has its own program schedule
Workflow Logic: - The first loop iterates through each sheet (month)
- The second loop iterates through each day within a month and extracts that day’s program schedule
Problem: - The workflow works correctly for the first month and extracts the data as expected.
- When processing the second month, the data from the first loop is still extracted correctly.
- However, the data passed into the second loop immediately goes to the “Done” branch, which causes unexpected behavior.
- As a result, I cannot extract the program schedules for the second month.
Question: - I am considering using a sub-workflow to solve this issue, but I am unsure:
Where should I place the “Execute Sub-Workflow” node in my current workflow?
Are there any alternative approaches that would be more suitable for this scenario?
Thank you very much for your time and help. I would really appreciate any guidance or suggestions.
Describe the problem/error/question
What is the error message (if any)?
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.112.5
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):docker
- Operating system: windows