Read File, Error path not working

Describe the problem/error/question

When the file exist : ok.

When the file doesnt exist : workflow stop and does not take the error path…

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

1.72.1 / self hosted

Hey @presta_melt,

This is an odd one but it is intentional that we don’t output an error if a file doesn’t exist, What you can do to work around this is enable the option to always output data then check if $json exists so your workflow might look something like the quick example below.

We could look at adding an error option for no files found as well if you think that would be useful to have.

1 Like

TY

Sure a file that doesn’t existe- should raise an error…

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