Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help with Error: message

Status
Not open for further replies.

Tralfaz7698

Technical User
Oct 12, 2005
38
US
I am trying to put some wait time in to my Wait_Loop and keep getting the error
"Line 24: Critical error: WAIT - Scripts cannot begin with this command Please choose a different command as the first command in the script.
Total: 1 critical error(s) , 0 error(s) , 0 warning(s) , 0 suggestion(s). "

Example of wait loop below:

SECTION WaitLoop

IF NOT QUEUED THEN
IF NOT OUT OF SERVICE cmp_ivr_ivrP1_sk THEN
QUEUE TO SKILLSET cmp_ivr_ivrP1_sk
WAIT 2

IF NOT OUT OF SERVICE cmp_ivr_ivrP2_sk THEN
QUEUE TO SKILLSET cmp_ivr_ivrP2_sk
WAIT 2
END IF
END IF
END IF

WAIT 30

EXECUTE WaitLoop

Suggestions appreciated,

Mark
 
I would think you are getting this error because the only command that will always execute is "wait 30".

If this is your entire script and you have a music route defined you could just add Give MUSIC XX and that should fix the problem. I would suggest putting the give music outside the loop though so it didn't issue the command every 30 seconds.
 
I should have been more clear in my post, I only pasted in the wait loop part of my script, the rest works fine.

Mark
 
I could be wrong but I think the error is caused by the name you are using for your loop; "waitloop". Wait has a specific meaning. Try renaming your loop to something else like "theloop".
 
Line 24: Critical error: WAIT - Scripts cannot begin with this command Please choose a different command as the first command in the script.


What's the command that's on line 24 and what are the preceeding 23 lines?
 
I find that if I insert a GIVE RAN xx or GIVE RINGBACK before the WAIT 30 it doesn't give me the error message, I guess it wants to do something then wait. Another interesting feature.

Thanks for the ideas.
 
I would try to copy this script and make a new one. Name the new script something else. Then try to validate it, see what happens. I have seen this before on older systems that had many changes made to the scripts. Let us know what happens!

TWM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top