Make data checks and process data only if no errors

Hi everyone !

I am new to n8n. I am kind of stuck in my first automation.

My goal :

  • I have a csv in an FTP.
  • I need to extract it then make some checks on the whole data set (Here I put 2 different checks, but I will have more)
  • If there is some errors in the data, I do not go further
  • If there no errors in the data, I need to process the whole set (group, transform to xml then send http request)

For now , I did it like this :

My question is, how can I get the data from the ‘Extract from File’ Node after the If statement ?
I tried with the Edit Fields (Set) but I can not get an expression that works.

If you have any suggestion / best practices to improve the workflow I would also be very happy !

hello @BeniMela

to access the Extract from File node content after the Merge node, you can use the {{ $('Extract from File').all() }} method

2 Likes

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