XML Document returns no matches

Answered Question

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

I have this problem too.
0 votes
Correct Answer by Jonathan Schulenberg about 7 years 8 months ago

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?

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (1 ratings)
Loading.
Jonathan Schulenberg Tue, 03/10/2009 - 12:44

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.

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.

Correct Answer
Jonathan Schulenberg Tue, 03/10/2009 - 16:02

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?

Actions

This Discussion