I use try catch as below.

try
- check file exist
If not exist go to catch and return value file that not exist.
catch
- write log error
exit to big catch and return value that file that not exist.
Please guide me for solve it.
I use try catch as below.

try
catch
Please guide me for solve it.
check above as reference
@pravallikapaluri I have 2 try catch ( main try catch and sub try catch)
If not found file abc.xlsx in sub try I want return value abc.xlsx to catch main for send mail not found file abc.xlsx
How to pass value?
Do you perform any other processing in the outer T/C?
If not you can send email from the inner T/C and avoid the outer one.
Cheers
How about defining a variable for that?
Cheers
@J0ska In try sub process I have variable boo_exit = True or False
If false I want pass file that not found to catch main flow for send mail and another process.
Define another variable and store not found file name into that.
That is not a rocket science…
Cheers
@J0ska How to edit code?
Can you suggest me?
Personally I wold use the following approach:
1/ Store name of file to be checked in variable (e.g. FileNameVariable)
2/ If not found (boo_exit = False) use that variable in catch main flow for send mail and another process.
Cheers
Cheers
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.