Hi @Felipereis50 , I’m not quite sure how you want this to work, or the full actions to take if a file does or doesn’t exist, but the workflow you uploaded doesn’t terminate either the conditional branches, nor the outer loop:
You cannot terminate a loop inside a conditional branch if the loop started outside, this cannot work.
You would need your structure to look something like this for it to be correctly terminated:
As it stands, the final Loop End would need to be configured to “Allow changing table specification” as the output from the inner Loop End will differ depending on the branch chosen.
However, whilst the above structure is consistent, I don’t actually know what it is that you are wanting to do within the loop if the file does/doesn’t exist. Probably you are wanting to perform additional logic there?
I also haven’t worked out why you require the second (outer) loop.
What is the aim? Is it to find the first file in the list that exists?