Entity has incorrect type

by @jehiah on 2005-03-08 10:52UTC
Filed under: All , ColdFusion

I got this odd problem today, where ColdFusion 6.1 kicks back an error when calling a component function. This is what it kicks back:

Entity has incorrect type for being called as a function.
The symbol you have provided FUNCTIONNAME is not the name of a function.
The error occurred in c:/path/to/your.cfc: line 477
<cfinvoke method="FUNCTIONNAME" returnvariable="return_query" />

This doesn’t error the first time it executes, but the second. It turns out that in the suspect function I named a variable with the same name as the query.

doh

Thanks to the tips here

Subscribe via RSS ı Email
Jehiah Czebotar