Odd Error using CFFLUSH

Thought I would blog about this, as it wasted almost 2 hours of my time trying to get to the bottom of it.

I was using CFFLUSH on a work project and ColdFusion was returning the following error message:

You have called cfflush in an invalid location, such as inside a cfquery or cfthread or between a CFML custom tag start and end tag.

What was confusing, was that there were no CFQUERY, CFTHREAD or Custom Tags in the code!

The problem turned out to be an output=”false” attribute on a component function, which called the function containing the CFFLUSH. This is obvious with hindsight, however the error message sent me on a wild goose chase :-)


Leave a Reply

Copyright © 2005, David Beale

  • Valid XHTML 1.0!
  • Valid CSS
  • Level Triple-A conformance icon, W3C-WAI Web Content Accessibility Guidelines 1.0