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.
Iâve also observed this behavior with one of the members in my community.
@TrinhNhatHuy Would you be so kind to pin some data to your nodes so I can replicate this on my end without having to connect to any data source, please?