10-21-2012 05:57 PM - edited 03-14-2019 10:43 AM
hi guys,
i have succesfully parsed an XML file hosted on IIS server from UCCX 8.5.
however if the XML file becomes unavailable for some reason (eg. IIS service down or web server down), i would receive the "i'm sorry we're currently experiencing system problem" system announcement.
is there a way of checking for error on the "Create XML Document" step?
kind regards
daniel
10-21-2012 10:55 PM
Hi,
yes, you can insert an On Exception Goto step before the XML handling steps and direct the script to a labeled step.
Like this:
1. On Exception Goto (Label ALTERNATE)
(...)
5. document = Create XML Document
6. // do something with the document
7. End // regular execution stops here
(...)
10. label=ALTERNATE Play Prompt("Please call back later.wav")
The above script will skip to line 10 if the document is not available, but will continue at line 6 if the document reads alright.
What exception to catch? Probably com.cisco.doc.DocumentIOException, or, if you want to be on the safe side, just catch com.cisco.wfapi.WFExecutionException.
Note that the Create XML Document step does not issue any document handling command, it just creates an internal reference - so the actual HTTP request goes out later, probably when doing a Cache Document or a Get XML Document Data step.
You can read more about exceptions here: https://supportforums.cisco.com/docs/DOC-27235
G.
10-22-2012 07:04 PM
Thanks again for your help.
That document on ccx exception list is very2 useful indeed.
kind regards
Daniel
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