Help on script required

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: J Daniel Salamanca on 13-12-2012 04:41:33 AM
I have a script which needs to read from a server using the "Create URL document" step, and then "create XML document" with the information read there.
The problem is that sometimes the server goes down so it cannot create the XML document and the call fails. Is there any way to try to skip the "create XML document" step and proceed directly to the next steps to avoid the call failing? I have seen that the "Create URL document" has a timeout field but it doesn't present an alternative branch to go if it happens.
Any help would be appreciated.
Thanks in advance

Subject: RE: Help on script required
Replied by: Joerg Wesely on 13-12-2012 12:05:08 PM
If reading the document fails, a DocumentException ist thrown. if you place a  "on exception goto"-step before the create XML Document step, you can specifiy a label to jump to in this case.
I hope that helps you

Subject: RE: Help on script required
Replied by: J Daniel Salamanca on 14-12-2012 03:14:01 AM
Thank you very much Joerg,
I have used the solution you suggest and on next Thursday I have a maintenance window to test it. I will let you know if it works, this is the first time I use that step so I am not sure if I picked up the right exception from the list.

Subject: RE: Help on script required
Replied by: J Daniel Salamanca on 07-01-2013 02:10:24 AM
Finally I could test it and it worked using the onexception step. Thank you very much for the help!

Subject: RE: Help on script required
Replied by: Manas Varma on 14-01-2013 05:11:06 AM
Hi Guys,
  Does any one have a working script for reading the contents of the XML file present in the repository and then generating an IVR on teh basis of that. We are stuck here with this proposition and don't know how to move ahead with this. We are quite new to the CCX Editor and haven't had much experience on working with UCCX Scripts. Any help with this, will be highly appreciated. Thanks..