Try Catch excel file - if it not exists skip an activity

Hi,
I need to check if a .csv file exists or not, if it exists I have to executes activity 1 and 2, if it doesn’t exist it has to executes directly the activity 2.

How I can do this?

So far I am here:
image

Thanks,
Diego

@495713 - pls try below…

path exists activity will return a Boolean variable - say isFileExists ( create a boolean variable and assign to output )

after the pathexists activity add
if activity
isFileExists ( add this in condition block )
true block add - activity 1
false block add - activity 2

1 Like

Hi,

this is a possible solution, thanks!

What if I would like to use a smarted way like with “Try Catch”)
Any idea?

Thanks,
Diego

i feel - try/catch block with NoFileFound -> writing logic is practically not suggested.
good to keep exception related in catch block will be user friendly and manageable code…

1 Like

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