There’s some stuff on the web about this error in Coldfusion that I found helpful, but because it is such a useless error in the sense of telling you what the problem is I figured I would post my specific problem and solution.
In my case I was running a primary public function that called a few other private functions. The gist of my problem was that I had an argument in my primary public function with the name ‘generatepassword’. One of my private functions was also named ‘generatepassword’. When the private function was being called I suppose it wasn’t able to determine whether the argument or the method was to be called, and hence threw the error that really gives no explanation of this whatsoever.
I suppose that the ‘incorrect type’ is the argument that it was trying to call as a function. Who knows. Whatever the error may say, that was the problem. My search through google turned up similar cases. If you find yourself having this problem check your variable names and make sure that none of them conflict with your method names.
whoa. i just ran into this issue today, but you blogged this on my birthday. must have been an early present, cause i was at a real loss for what was causing this.
thanks!
[...] via Entity has incorrect type for being called as a function in Coldfusion 8 « pukkared. [...]
Awesome! My issue was similar to yours indeed. I’m glad I ran into this article or else I would have been at work much longer trying to figure it out!
Thanks!
im struck in this error eventhough i have done thorough check. this same program works in other folder but not in my workspace. please help me.
im new here.