How to troubleshoot the UiPath Studio, where deleting global handler manually from workflow files doesn't update json?
In UiPath Studio, a global exception handler can be defined per project as follows:
- This will generate an entry in the project.json file, that will contain the name definition of the handler:
"projectVersion": "1.0.0.0",
"runtimeOptions": {
"exceptionHandlerWorkflow": "GlobalHandler_test.xaml",
"autoDispose": false,
- By deleting the global exception handler manually from the project directory the project.json file will not be updated with the modification, leading to exceptions not being correctly handled.
Studio provides a contextual menu to create, rename, delete (remove) global exception handler from project, and those actions will also update the project.json correctly.
Workaround to remove an orphan json entry for the global exception handler:
- Create a new file in the project
- Right-click on it from the project tab
- Choose Set as Global Handler
- Right-click it again
- Choose Remove Handler