03-10-2009 11:04 AM - edited 03-14-2019 03:47 AM
I'm using CRS 3.5 (Queue Manager IP IVR) and in a few scripts I'm reading an XML document to get some data.
What can I do when I don't get any data back?
Is there an exception I can capture?
thanks
Solved! Go to Solution.
03-10-2009 04:02 PM
If you debug the script, and a match was not found, what does the HMO_TFN variable have for a value immediately after the Extract XML Doc Data step?
03-10-2009 12:44 PM
There are a few document exceptions which you can use. They typically catch when there is a syntax error in the XML for example. If a specific value had nothing in it, the variable should be null. You can use a simple If statement at that point.
03-10-2009 12:52 PM
Thanks for the reply, I used an If statement but it still doesn't work.
I'm using an "Extract XML Doc Data" step with xpath "//SSC/DNIS[ENTITY=" + Entity_ID + "]/TFN".
If there's a match it copies the result into a variable called HMO_TFN which I then pass through a number of variables using the java substring(x,x) class; but if it doesn't find a match it fails... but it fails at the first instance of the substring(x,x) though and not really after the extract xml object.
03-10-2009 04:02 PM
If you debug the script, and a match was not found, what does the HMO_TFN variable have for a value immediately after the Extract XML Doc Data step?
03-11-2009 06:06 AM
I ended up using a DocumentException and that did it.
thanks for your help
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