• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Complex object types cannot be converted to simple values

New Here ,
Jan 26, 2007 Jan 26, 2007

Copy link to clipboard

Copied

Hosting moved to new server with newer version of CF. Site was written in CF 4.5. www.animalhelp.com

Error reads as follows:

Complex object types cannot be converted to simple values.
The expression has requested a variable or an intermediate expression result as a simple value, however, the result cannot be converted to a simple value. Simple values are strings, numbers, boolean values, and date/time values. Queries, arrays, and COM objects are examples of complex values.
The most likely cause of the error is that you are trying to use a complex value as a simple one. For example, you might be trying to use a query variable in a <CFIF> tag. This was possible in ColdFusion 2.0 but creates an error in later versions.

Have tried everything, can't figure it out!!! Anyone have ANY ideas I can try?? Attached exact code where page stops and error comes up. Hopefully it is viewable ok.
TOPICS
Advanced techniques

Views

471

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jan 26, 2007 Jan 26, 2007

Copy link to clipboard

Copied

LATEST
Your code is referencing a variable named URL. After ColdFusion 4.5, this name became a variable scope and is a reserved word. Since the URL variable is now a structure containing all data passed via HTTP Query Parameters, trying to output the variable using pound signs will cause an error. Renaming this variable to something other than URL should fix the problem.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation