How to read multiple files?

Describe the problem/error/question

I have a workflow that uses the Execute Command node to list files in a directory next it would read the files in n8n and lastly save info to csv. The problem is in the Read Files node it only processes 1 item and not the remaining items. How can make it loop all the items?

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.89.2
  • **Database (default: SQLite):default
  • **n8n EXECUTIONS_PROCESS setting (default: own, main):default
  • **Running n8n via (Docker, npm, n8n cloud, desktop app):npm
  • **Operating system:Windows Server 2022

Hi, did you try a loop node?

Reg
J.

Yes I tried the loop node but only 1 item is processed

Well yeah that’s kind of normal since you inverted the logic.

The read file and CSV needs to be inside the loop.

Done is when: the loop has process everything

Reg.
J

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.