djc728 Posted October 7, 2024 Posted October 7, 2024 Is it possible for the Perform Find script step to generate a Get(Last Error) of 0 and NOT find any records OR should Get(Last Error ) ALWAYS return a 401 if no records are found? And if Get(Last Error) could produce a 0 with no records found under what circumstances would that happen to come up under?
bcooney Posted October 7, 2024 Posted October 7, 2024 401 is not the only error returned from an unsuccessful find. So the proper error trapping is to capture the error, and then examine the code. You may wish to continue the script if the error code is a 401, but exit if it’s any other code. I cannot think of any circumstance where an unsuccessful find returns error code =0
djc728 Posted October 7, 2024 Author Posted October 7, 2024 Thank you that's what I thought. . . Along these same lines. . .so if a perform find does generate a get(last error) = 0 is it safe to say that at least 1 record was found? Dom
bcooney Posted October 7, 2024 Posted October 7, 2024 Yes. You can always further confirm with getasboolean(get(foundcount)).
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now