UCCX Holiday Error

Answered Question
Oct 8th, 2009
User Badges:

Hello,my script doesn't recognize holidays, i created a XML file with the dates a holiday script and the main script pointing to the holiday script , when i check with the reactive debug he checks the holiday and it goes to the open menu. any suggestion?

Correct Answer by jmorlan about 7 years 7 months ago

Try these. Make sure to put the dates.xml file in the document repository, and not in the wfavvid folder.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 4.7 (3 ratings)
SAN J Thu, 10/08/2009 - 12:26
User Badges:

Does the date on the xml file match up exactly (format-wise) with today's date that you're comparing with? Use the debug to compare today's date with the xml date.

Marco Villani Thu, 10/08/2009 - 12:37
User Badges:

thank you for the reply,that is how it looks like. and the XML file its saved on the wfavid folder.

<?xml version="1.0" encoding="ISO-8859-1"?>











SAN J Thu, 10/08/2009 - 12:49
User Badges:

I take it you're using the subflow to call into the Holiday script? On your subflow step (on the second tab), do you have the proper variables configured so the Main script get's the result back from the Holiday script?

Abdulbaseer Mohammed Thu, 10/08/2009 - 13:32
User Badges:
  • Silver, 250 points or more

Here are some more details. very likely you may not be reading your xml. Below are some details however if it does not help shoot me an email I have 2 scripts one main one to check holiday and the holiday xml file I can share. [email protected]

Updated for IPCC Express 4.0 and above by [email protected]

The ipccx4holiday script uses an xml file, dates.xml, as a list of holiday dates. The

script will compare "todays date" with all of the date entries in the file. If it finds

a match, it will set the boolean variable todayIsAHoliday to "true". This script

can be called as a subflow with this boolean variable. The variable can be

tested by the calling script to perform the desired holiday action if true.

The dates.xml file should be placed in the install folder, typically:

c:\Program Files\wfavvid

A template for the text file input is included below. Change the 3 sample dates,

add dates for 4-10, and add more if needed.

<?xml version="1.0" encoding="ISO-8859-1"?>




jmorlan Thu, 10/08/2009 - 17:41
User Badges:

When you do a reactive debug verify that the boolean variable that you are trying to use is changing to true. This will first tell you if you are getting the expected results from the subflow. Looks like there are two different variables for some reason that are mapped between the script and subflow. Not really sure why, but would suggest just using one.

Secondly, your if statements need to compare something. For instance todayIsAHoliday==true

Marco Villani Thu, 10/08/2009 - 19:33
User Badges:

I tried with only one if but it skips the Boolean variable like that, and i tried specifying go to the calendar if it was true with no luck. not sure why but is not understanding the XML file.

Thanks for your input.

Correct Answer
jmorlan Fri, 10/09/2009 - 07:35
User Badges:

Try these. Make sure to put the dates.xml file in the document repository, and not in the wfavvid folder.

davidkcampbell Fri, 10/09/2009 - 07:47
User Badges:

Try a string variable rather than a boolean. I have noticed that sometimes boolean's don't pass cleanly from a subflow. This has been on the later versions of UCCX.

brad.modelle Tue, 06/11/2013 - 12:06
User Badges:

This is an awesome thread. Still relevant. You rock, jmorlan.


This Discussion