My sites have a simple error-reporting system: If there's an error in a database operation, I CFCATCH it, pass the contents of CFCATCH to a custom tag that CFDUMPS it into an email that gets sent to me, along with some other information.
I've come across a situation that - while I can't be certain would never happen with CF 5 - never actually happened to me before running CFMX. If the query refers to a form variable that is undefined, instead of getting this info in the CFCATCH output in the email, I get this: http://www.tengai.co.uk/test/CFCATCH_email.html I constructed some test templates to try different scenarios, and it looks like this happens with any scoped variable that is undefined. If you don't specify a scope, the CFCATCH info is fine, telling you that the variable doesn't exist. (Of course, as Raymond Camden pointed out earlier, no error is thrown if you use CGI.ANYVARNAME, as that scope seems to create null variables for undefined ones.) If anyone ones to try this out to replicate it, there are a couple of test templates that work together here: http://www.tengai.co.uk/test/CFCATCH_files.zip If anything seems unnecessarily complicated, it's because I was trying build up the elements of the original code in its application context, to see which bit of it all was causing the error. The query works with a DSN called "test" - just check it through and adapt to your system, pretty straightforward. Remember to put your own email address in the CFMAIL tag!! I know this is pretty obscure, but I just wondered if anyone could shed light on it... cheers, - Gyrus ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - [EMAIL PROTECTED] work: http://www.tengai.co.uk play: http://www.norlonto.net - PGP key available ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

