VoiceGuide IVR Software Main Page
Jump to content

Evaluate Expression Not Working

Recommended Posts

Hi. I am using version 6 of VoiceGuide. While designing a flochart, I am facing some problems with Evaluate Expression module.

 

I am trying to generate a unique id from an expression and push that into database in the next module. But the problem is the expression isn't evaluating and no value is in the result variable (user specifed).

 

The expression is:

 

[Cstr($RV_NN) + "_"  + Cstr($RV_HH) + "_" + Cstr($RV_DD) + "_" + Cstr($RV_MM) + "_" + Cstr($RV_YY) + "_" + Cstr($RV_LINEID)]

or 

[Cstr($RV_NN) & "_"  & Cstr($RV_HH) & "_" & Cstr($RV_DD) & "_" & Cstr($RV_MM) & "_" & Cstr($RV_YY) & "_" & Cstr($RV_LINEID)]

 

I am attaching screenshots of the Evaluate Expression module, VBScript module, and the result from call log and also the flowchart (fraction). What am I doing wrong here ? Is there any result variable to capture the whole date at once ?

 

Thank you for your support.

 

 

post-2927-1201676635_thumb.jpg

post-2927-1201676746.jpg

post-2927-1201676781_thumb.jpg

post-2927-1201676795_thumb.jpg

Share this post


Link to post

I think the problem may be the brackets at the begining and end of the expression. You need to include these in the string. Alos no need to use all those CStr() functions.

 

Try:

 

"[$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID]"

 

or

 

Cstr("[$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID]")

Share this post


Link to post
I think the problem may be the brackets at the begining and end of the expression. You need to include these in the string. Alos no need to use all those CStr() functions.

 

Try:

 

"[$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID]"

 

or

 

Cstr("[$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID]")

 

Still now working. Now the leading and trailing '[' are included in the module trace log and nothing is inside the result variable that I defined.

 

Share this post


Link to post

If you do not want to have the square brackets in the expression then just remove them, so the expression becomes:

 

"$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID"

 

or

 

Cstr("$RV_NN_$RV_HH_$RV_DD_$RV_MM_$RV_YY_$RV_LINEID")

 

It works fine for us on our test system. If you still have problems please post the traces from your system capturing the call so that we may see what is happening on your system.

 

Could you please post a copy of VoiceGuide's Trace Logs which captures the problem, this will allow us to see what happened.

 

Enable logging by setting the log levels to 10 in VG.INI as per below:

[Log]

 

VoiceGuide=10

Then restart VG and make a test call which demonstrates the problem.

 

Trace files will be created in VG's \log\ subdirectory.

 

Please post the traces and the VoiceGuide script used.

 

When posting traces/scripts please .ZIP them up and post them as attachments.

 

Share this post


Link to post

Ok, Still not working. I am attaching the script and log files created from VoiceGuide. And I am also attaching the Error Message from Windows when the function is executing.

 

Thanks for the support.

Post.zip

post-2927-1201686244_thumb.jpg

Share this post


Link to post

I think I got it now. Thanks for all the support. The main problem was in vbscript code which handled the string and integer and panicked when it encountered '_'. Wrapping the thing inside "" solves that.

 

But is there any way to assign any result variable/global variable from vbscript code. That would have helped a lot. Thank you.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×