Hi,
I’ve been wondering which way would be better - using Try&Catch around workflow or each activity.
My automation gets data from data table and uses it to choose appropriate account and then goes through several dialog windows (mostly “Click activity”, “Type Into”, “Get text” are used). Once iteration succeeds, programme indicates it in excel.
The app I’m working with seems to be unstable since i.e. after a number of iteration UiPath cannot click on button which was clicked in previous iterations. I came up with two solutions:
a) using Try&Catch for entire workflow - once exception is caught the app is restarted and automations tries to go again through the lastly processed record. This way helps me deal with unexpected number of dialog windows (exceptions appear in different sections) and simply close the entire app and open it again
b) using Try&Catch for every activity - in catch section I can put all necessary actions which will close a dialog window and open it again so programme can try to click/get text/type into again
Every comment would be greatly appreciated. If you needed some clarification I would gladly provide you with one