Error handler doesn't work...

bonsai
Mega Sage

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?

 

 

 

err_action.JPGerr_flow.JPGerr_test_res.JPG

1 ACCEPTED SOLUTION

Sohithanjan G
Kilo Sage
Kilo Sage

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.

 

SohithanjanG_1-1709567433540.png

 

To understand more you can see this video.. 

https://www.youtube.com/watch?v=C8OtanKWY0o

 

🙂 

 

 

 

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)

View solution in original post

In this video, we will be talking about what is Error Handling and how can we implement it in ServiceNow. ----------------------------------------------------------------------------------------------------- 00:00 - Introduction 00:48 - What is Error Handling? 01:57 - Error Handling Components ...
3 REPLIES 3

Abhishek T1
Tera Contributor

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

Sujit Jadhav
Tera Guru

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

Sohithanjan G
Kilo Sage
Kilo Sage

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.

 

SohithanjanG_1-1709567433540.png

 

To understand more you can see this video.. 

https://www.youtube.com/watch?v=C8OtanKWY0o

 

🙂 

 

 

 

Please mark as Accepted Solution if this solves your query and HIT Helpful if you find my answer helped you. This will help other community mates too..:)
In this video, we will be talking about what is Error Handling and how can we implement it in ServiceNow. ----------------------------------------------------------------------------------------------------- 00:00 - Introduction 00:48 - What is Error Handling? 01:57 - Error Handling Components ...