VoiceGuide IVR Software Main Page
Jump to content

Vbscript Not Working

Recommended Posts

VG5.2.5049

 

When VBScript was working:

 

083856.33 5 state [Get Next Sale Dates] Running VB Script...

083856.33 5 rv replace start (strlen>500)

083856.33 5 rv ns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\tender\}[scriptPath]{C:\Program Files\VoiceGuide\Scripts\tender}[$RV_STARTTIME]{28/11/2007 8:38:54 AM}[$RV_DEVICEID]{5}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{}[$RV_DNIS]{}[DNIS]{}[DbQuery StoreName_RowCount]{1}[DbQuery StoreName_1_1]{IpswichTender Center}[WelcomeEnquiries]{1}[DbQuery CalcDate_RowCount]{1}[DbQuery CalcDate_1_1]{25}[DbQuery CalcDate_2_1]{11}[DbQuery CalcDate_3_1]{2007}[DbQuery CalcDate_4_1]{3}[DbQuery CalcDate_5_1]{5}[DbQuery CalcDate_6_1]{1}[DbQuery CalcDate_7_1]{25/11/2007}[Evaluate Xmas2_Input]{(28 >= 18 and 11 = 12 and 28 <= 31) OR (28 >= 1 and 11 = 1 and 28 <= 7)}[Evaluate Xmas2]{False}[xmas]{False}

083856.39 5 eng run vbs [wscript "C:\Program Files\VoiceGuide\temp\vbs_5_1_1128083856.vbs" //I] copy of script in: vbs_5_1_1128083856.vbs

083856.44 5 Run Script waiting. iRunWait=1 (shellid=2356, process=2020)

083856.44 5 timer set 1 EV_TIMEOUT_CHECKONSTATE

083857.42 5 timer fired EV_TIMEOUT_CHECKONSTATE

083857.42 5 ScriptEventCode 9007 iLineState=1501

083857.42 5 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

083857.42 5 task completed (shellid=2356, process=2020) vgm=4, iRunWait=1, iRunWait_ExeResult_NextVgm=0

083857.42 5 Found result file: VGRUNRESULT_5.TXT

083857.42 5 Run Results >>>[FriSaleDate]{Friday, 7 December}[satSaleDate]{Saturday, 8 December}[sunSaleDate]{Sunday, 9 December}[FirstRecDate]{Thursday, 29 November}[LastRecDate]{Wednesday, 5 December}[NextFirstRecDate]{Thursday, 13 December}[NextLastRecDate]{Wednesday, 19 December}[DayinCycle]{3}<<<

 

 

And now not working:

 

080414.98 7 state [Next Sale Dates3] Running VB Script...

080415.00 7 rv replace start (strlen>500)

080415.02 7 rv ns [PathSysVoice]{C:\Program Files\VoiceGuide\system\voice\}[PathApp]{C:\Program Files\VoiceGuide\}[PathDataVm]{C:\Program Files\VoiceGuide\data\}[PathVgSys]{C:\Program Files\VoiceGuide\system\}[scriptsPath]{C:\Program Files\VoiceGuide\Scripts\tender\}[scriptPath]{C:\Program Files\VoiceGuide\Scripts\tender}[$RV_STARTTIME]{11/12/2007 8:04:05 AM}[$RV_DEVICEID]{7}[$RV_CIDNAME]{}[PathApp]{C:\Program Files\VoiceGuide\}[$RV_CIDNUMBER]{}[$RV_DNIS]{}[DNIS]{}[DbQuery StoreName_RowCount]{1}[DbQuery StoreName_1_1]{IpswichTender Center}[WelcomeEnquiries]{timeout}[DbQuery ExtraMsg_RowCount]{1}[DbQuery ExtraMsg_1_1]{False}[DbQuery ExtraMsg_2_1]{Our next antique and collectable sale will be on the 26th 27th and 28th of october}[Evaluate ExtraMsg_Input]{False = True}[Evaluate ExtraMsg]{False}[DbQuery New Store_RowCount]{1}[DbQuery New Store_1_1]{70}[Evaluate New Store_Input]{70 < 2}[Evaluate New Store]{False}[initial Menu]{1}[DbQuery CalcDate_RowCount]{1}[DbQuery CalcDate_1_1]{9}[DbQuery CalcDate_2_1]{12}[DbQuery CalcDate_3_1]{2007}[DbQuery CalcDate_4_1]{2}[DbQuery CalcDate_5_1]{5}[DbQuery CalcDate_6_1]{1}[DbQuery CalcDate_7_1]{09/12/2007}[Evaluate Xmas2_Input]{(11 >= 8 and 12 = 12 and 11 <= 9)}[Evaluate Xmas2]{False}[xmas]{False}[Evaluate Xmas3_Input]{11 >= 10 and 12 = 12 and 11 <= 16}[Evaluate Xmas3]{True}[xmas]{True}

080415.02 7 eng run vbs [wscript "C:\Program Files\VoiceGuide\temp\vbs_7_1_1211080415.vbs" //I] copy of script in: vbs_7_1_1211080415.vbs

080415.05 7 Run Script waiting. iRunWait=1 (shellid=2344, process=1460)

080415.05 7 timer set 1 EV_TIMEOUT_CHECKONSTATE

080416.08 7 timer fired EV_TIMEOUT_CHECKONSTATE

080416.08 7 ScriptEventCode 9007 iLineState=1501

080416.09 7 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

080416.09 7 task still running (shellid=2344, process=1460)

080416.09 7 Terminating process (timeout reached).

080416.11 7 timer clear

080416.11 7 state [Play Sale Dates New] Playing

080416.13 7 rv replace start: [$RV[FriSaleDate], $RV[satSaleDate] and $RV[sunSaleDate].]

 

 

I can see that the difference is this "Terminating process(timeout reached)".

 

why would this start happening?

Share this post


Link to post

It would appear that in the VBScript module there is a timeout path which is aborting the execution of the VBScript once the timeout is reached.

 

Removing the 1 second timeout path should allow the VBScript to complete.

 

If you continue having problems with this please post the script which is being used on this system.

 

Share this post


Link to post

yes there is and always has been a timeout path in all the vbscripts, timeout(0) and it has never been a problem before and isnt in any of the other sites where the same scripts are running.

 

Anyways the solution was I took out the timeout and replaced with fail and everything seems to be working fine.

 

perplexed but happy its working now.

 

thanks for pointing me in the direction.

Share this post


Link to post

A "Timeout 0" path in a Run VBScript or Run Program module will result in timeout path being taken immediately (or one second after the script is started).

 

When in a Run VBScript module the timeout path is taken, then the VBScript is terminated.

 

When in a Run Program module the timeout path is taken, then the program is terminated.

 

You should only use a timeout path in a VBScript/Run Program module to protect against the VBScript/Program taking too much time (if for example a database is not responding or similar).

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
×