Perform Find With No Found Records Returns 0 Not 401
I'm developing a system where a scripted find with Set Error Capture on is returning 0 when no records are found. This should return 401. I've tried searching different fields with the same results. I've created a new file with the same script and that does return 401 as expected. Any ideas why the original file doesn't return the correct error code?