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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scripting loop question 1

Status
Not open for further replies.

atascoman

Technical User
Oct 10, 2003
868
US
I keep getting a critical error stating that I need to have an exit for my wait loop. I have an exit built into the loop, but it doesn't seem to recognize it. The script compiles successfully and works. I have often encountered this and have not been able to figure out how to get the debugger to see that there is an exit. Here is the script I created. If there is a flaw in my scripting, please correct me.

If out of service HD_SK or
logged agent count HD_SK =0
then execute script HD_BK_APP
end if

If not out of service HD_SK
then queue to skillset HD_SK with priority 1
Wait 2
end if

Give Music On_Hold_Jam

Section Wait_Loop

If not queued then
If out of service HD_SK or
logged agent count HD_SK =0
then execute script HD_BK_APP
else queue to skillset HD_SK with priority 1
end if
end if

If age of call > 60
then execute script HD_BK_APP
end if

wait 30

execute wait_loop
 
In our loops we use command
IF AGE OF CALL>1800 THEN
DISCONNECT
END IF

jj
 
I would guess the reason that it its calling the error is that although you have an option out its an execute script command. It doesn't verify secondary scripts while it validates primary scripts.

"Note: The call branches to the referenced script, and does not return at the end of the referenced script."

It is basically saying it can't tell if there is an issue or not. Its working because your executed script is working.

Try doing this...

Section Wait_Loop

If not queued then
If out of service HD_SK or
logged agent count HD_SK =0
then execute Goto_HD_BK_APP
else queue to skillset HD_SK with priority 1
end if
end if

If age of call > 60
then execute script HD_BK_APP
end if

wait 30

execute wait_loop

Section Goto_HD_BK_APP

execute script HD_BK_APP
wait 2
Disconnect

******
This way its not seeing the execute script command inside the loop. If that doesn't work let me know and I'll run some situations here through the compiler.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top