- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 12:04 AM
I created an error occurrence action and set it in the subflow to test the error handler.
Inside the error handler, we set a log output action.
However, the action doesn't seem to work even if an error occurs.
Are there any conditions for using error handlers?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 07:51 AM
Hi @bonsai ,
You cannot direclty add error handler if something breaks. When something breaks, then add it in error message of that components with help of try catch if its script. If its OOB component, use error message as 1, then do actions.
To understand more you can see this video..
https://www.youtube.com/watch?v=C8OtanKWY0o
🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 04:15 AM
Hello @bonsai
I recommend you one community link please go though it.
https://www.servicenow.com/community/developer-forum/error-handling-in-subflow/td-p/2729146
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 07:43 AM
Hello @bonsai ,
I would recommend you to please go through the below community solution
https://www.servicenow.com/community/developer-forum/error-handling-in-subflow/td-p/2729146
Please mark my answer Correct/Helpful, If applicable
Regards,
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2024 07:51 AM
Hi @bonsai ,
You cannot direclty add error handler if something breaks. When something breaks, then add it in error message of that components with help of try catch if its script. If its OOB component, use error message as 1, then do actions.
To understand more you can see this video..
https://www.youtube.com/watch?v=C8OtanKWY0o
🙂