Any possibility you use a UDF that could rewrite the value of myquery? If you wrap the check in try/catch and cfdump myquery, what do you see?
On 12/10/05, Terry Ford <[EMAIL PROTECTED]> wrote: > <cfquery datasource=ds name="myquery" > cachedwithin="#CreateTimeSpan(0,3,0,0)#"> > select * from blah where yadda yadda yadda... > </cfquery> > <cfif myquery.recordcount eq 0> > No records found. > ... > </cfif> > > This bit of code is executed thousands of times a day (CFMX 6.1 linux). Most > of the time it works just fine. However, occasionally after the server has > been running for a number of days under load this template will start > sporadically producing this error: > > "Element RECORDCOUNT is undefined in myquery" > > Has anyone seen this sort of behavior before and does anyone have any idea > why myquery.recordcount may suddenly not exist? > > Regards, > Terry > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:226725 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

