Bogus/Impossible Errors? Part 1
Has anyone experienced seemingly impossible errors in CF8? I've been a CF developer for nine years now, recently started a new job where we use CF8. We use onError() in Application.cfc to catch and report errors via email. We're experiencing a number of situations where the error just seems bogus.
Here's the simplest example:
Code:
<cfif isdefined('s.business_id') AND s.business_id EQ 0>
Error:
Element BUSINESS_ID is undefined in S.
This particular bit of code executes probably 500,000 times a day. We get anywhere from 20-30 error emails per day and can never reproduce the error. It's quite annoying and totally baffling.
Things we've tried:
- putting the isdefined() condition in its own <cfif>, and nesting the second condition within it
- using structkeyexists() instead of isdefined()
