Customer Center

Welcome back

My Account Logout
#4818
Anonymous
Inactive

Yes, I did. So with timeouts that usually works. I contacted Support and talked with Shawn and got a different way to handle. The method I used came from a lunch n learn but since Shawn was thinking the use of something that is more for rules is what Boston didn't like.

Also found that this works as well to get TimeOut So It's Not set to Zero as still seeing the issue about 1 in 100 script runs though better than 10 in 100 runs.
        'Connect Stream To Fix TimeOut Issue
            TimeOut = 20
            Connect "", stStream 'Used in case TimeOut not working
        'Set TimeOut
            TimeOut = 20

New Coding is (my Note is set to the procedure name so I when I look at the script logs I can tell where I timed out for later debugging):
        StartTime = Timer()
        On Error GoTo errH
        TimeOut = 20
  
        If Round(Timer – StartTime, 0) > TimeOut Then Err.Raise seTimeOut, Note, "Timeout Event"

Prior Coding was
      If Rule("TimeOut") = True Then Err.Raise 600,Note,"Timeout Event"