ColdFusion · Exception
What does Complex object types cannot be converted to simple values mean in ColdFusion?
A query, array, struct, or other complex value was used somewhere CFML expects a simple value (a string, number, boolean, or date). A common, non-obvious cause is naming a loop or query variable the same as a CFML reserved scope name, such as url or file, which silently shadows the built-in scope with a complex object instead of the simple value the rest of the page expects.
A query, array, struct, or other complex value was used somewhere CFML expects a simple value (a string, number, boolean, or date). A common, non-obvious cause is naming a loop or query variable the same as a CFML reserved scope name, such as url or file, which silently shadows the built-in scope with a complex object instead of the simple value the rest of the page expects.
Check for a variable named url, file, form, or another reserved CFML scope name being reused as an ordinary variable or loop index nearby, since that collision is a frequent, hard-to-spot cause. Otherwise, trace which function or tag actually received the complex value and confirm it was meant to receive a simple one.