cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
877
Views
1
Helpful
7
Replies

UCCX Script Exceptions - email

sthan89
Level 1
Level 1

Is it possible to have UCCX email the exception when a call fails during script execution. I need the reason for call failure along with the caller details.

2 Accepted Solutions

Accepted Solutions

Im think there is an CUIC report that shows application failures with the exception (But can't remember the name and if it still exist)

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Thomas G. J.

View solution in original post

7 Replies 7

Jonathan Schulenberg
Hall of Fame
Hall of Fame

Yes but you would need to catch the exception in the scripts, clear it, and then jump to logic that contains the email steps. There is not a generic catch-all.

Thank You Jonathan. I am trying like below. this is my test script - i am not sure if this is the correct way to do this. i am hoping to use this as a default script so anytime a call fails due to script issue, we could catch the reason via an email.

sthan89_0-1735913291196.png

when i do reactive debugging, it doesn't get to the handle exception step. The script does fail with the below message and i am hearing the default "system problem" message

Capture.PNG

Which step threw that exception, exactly? Which step did you step over to generate that dialog?

Looking at that screenshot, I'm also unsure what you expect to get from this effort. A well-written script shouldn't be throwing exceptions in production; that's what QA/testing is for. Things that can go wrong should be handled within the script gracefully so the call isn't dropped in the first place. In practice, the ContactInactiveException is the only one used at the top of every script. And even if you generate an email alert, it seems unlikely to tell you enough context to actually troubleshoot the problem. You'd want to know exactly which step threw the exception and, in most instances, the values of any variables involved in the step that failed.

It failed @ the Select Resource Step, the CSQ was having the wrong name. But I understand your point. ContactInactiveException is the only one we have today and is working well. Considering there is no easy way to catch it all, i will drop this idea. Thanks for your replies and help.

Im think there is an CUIC report that shows application failures with the exception (But can't remember the name and if it still exist)

Please rate helpful posts and if applicable mark "Accept as a Solution".
Thanks, Thomas G. J.

Yes, that is correct. I was able to find the exceptions in Aborted Rejected Call Detail Report.