FileMaker 401 error - odd behavior

Discussion created by bman2232 on Dec 31, 2015
Latest reply on Jan 7, 2016 by bman2232

For reference, here is the pertinent portion of the script in question:


Enter Find Mode [ ]

Go to Object [ Some object]

Set Field By name [ Some Field ]

Commit Record/Request [ No dialogue ]

Perform Find [ ]

If [ Get(LastError) = 401 ]

   Do something

End If



When I run this script on the server, the 401 error is triggered. When I run the script locally (pause on error), the 401 error is triggered. When I step through the script in script debugger, there is no 401 error trigger. What am I missing?