Hi
I want Uipath to loop row by row an Excel file with the URL of different files. Some of the files maybe missing or their paths are not specified correctly in the Excel file. If that happens, I want Uipath to just move on the next row.
What is the Catch I should use?
Thank you
Srini84
(Srinivas Kadamati)
July 15, 2020, 4:23am
3
@Anonymous2
Try is to Place you logic to make your sequence to run without any exceptions
Catch - Is to place your logic if your sequence got any exceptions
In your case Say you have given a path to check whether it is exist or not
If exist then catch will not execute, If not exist then catch will be executed
Hope this is clear
Mark as solution if this helps
Thanks
1 Like
Hi All
Maybe my Qn is not clear enough. I want to know the specific “Exception” I should place in the Catch for missing files or inaccessible folder location
Thank you
Codegias
(Mohammad Shah Faizal)
July 15, 2020, 5:12am
5
Are you taking about which exception block you should use in order to catch missing file?
if thats the case, use IO exception and in order to get message of exception use can use exception.message
hasib08
(Motiwala Hasib)
July 15, 2020, 5:12am
6
Use can use
Exception.message or Exception.source
Which will give you more details on the exception in catch section.
Thanks
Srini84
(Srinivas Kadamati)
July 15, 2020, 5:24am
8
@Anonymous2
Can you tell me which activities you are trying?
as @Lakshay_Verma said you can make sure whether the path is exist or not using pathexists activity
Hope this helps
Thanks