07-18-2016 06:13 AM - edited 03-14-2019 04:20 PM
Hi All,
I have a question regarding UCCX scripting :
When a call is transfered to an agent via the Select Resource Step in an UCCX script, does this trigger a "Contact Inactive Exception" at the script level.
Best Regards
Hatem Hamdi
07-18-2016 08:18 AM
The script will not generate the Contact Inactive Exception at the script level whenever the call will be transferred successfully to the agent. You can also verify this by collecting Cisco Unified CCX Engine also known as MIVR logs using RTMT and look for something like below
Execute step of Task 4000000001
Below is a great post by Anthony to view the executed scripts via CLI in realtime:
https://supportforums.cisco.com/document/13050181/uccx-viewing-executed-script-steps-cli
Regards
Deepak
07-18-2016 12:20 PM
Hi Rawat,
This is the behavior I was expecting but I have a script which is poving me the opposite. I am handling Exceptions using the "On Exception Goto" Step.
Whenever a call is properly handed to agent by "Select Resource" the Exception is thrown and the ractuve debug jumps to the Exception handling label.
I am very confused here.
Best Regards,
Hatem Hamdi
07-19-2016 04:31 AM
Hatem, can you attach the copy of script here. Let me review it in my lab and see the reason why it is doing this.
Regards
Deepak
07-22-2017 12:23 PM
Hello,
Old thread, but same problem here.
Did you get any advances on your side?
07-24-2017 08:32 AM
I saw weird behavior in some of my scripts related to inactive contact exceptions. I can't say if it's related to anything else in this thread, but here's what I found:
There was an "on exception goto" step for the contact inactive exception. It terminated the contact and ended the script. So far, so good, but I found in the logs that I was getting hundreds of max executed steps exceeded errors every day.
What I think was happening was that the terminate contact step was re-triggering the exception, which sent the script into an infinite loop. Well, it would have been infinite if not for the max execution step limit.
So before the terminate contact step, I inserted a clear exception step. I stopped getting max executed step errors.
I don't believe those excess steps or errors were affecting any calls, but I'd rather not have that extra load on the server, and all that extra flotsam in my logs.
07-25-2017 04:20 PM
Yes, just after replying on the forum I got it as you said.
I just removed my terminate contact from the flow (not from the script).
Cheers.
07-27-2017 02:35 PM
This is pretty common for me to see.
Start On Exception ContactInactiveException Goto @@@ END Accept (--Triggering Contact--)
Select Resource (--Triggering Contact--, CSQ)
Connected
Goto @@@ END
Queued
Delay Forever and Ever @@@ END: Terminate (--Triggering Contact--) End
So when the call gets connected to the Agent, and the script goes to the @@@ END label, the Terminate step throws a Contact Inactive Exception, which sends the script back to the @@@ END label, and thus repeats until the Max Executed Steps exceeds.
So, to answer the original question, the completion of the transfer to the Agent does not throw the ContactInactiveException, however, the very first step requiring a Contact, will throw the exception. Therefore, in most cases, the best option after a successful transfer to an Agent, is simply the End step itself.
Example:
Start On Exception ContactInactiveException Goto End of Script Accept (--Triggering Contact--)
Select Resource (--Triggering Contact--, CSQ)
Connected
Goto End of Script
Queued
Delay Forever and Ever Terminate and End: Terminate (--Triggering Contact--) End of Script: End
11-01-2018 12:54 PM
Does on exception go to for Contact inactive apply to an abandoned call in the queue? We want to see those true abandoned calls, but not hang ups on main menu before select resource step. If so should we put clear exception...would it even make it to the clear exception if the go to is to the "end" step?
11-01-2018 02:17 PM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide