I don't believe the vertical bar (|) is a valid Name Character.  Try using
"_" or "-" instead.

-----Original Message-----
From: John Barleycorn [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 3:20 PM
To: CF-Talk
Subject: strange error message


Hello, i moved a template from a 4.0 server to a 4.5 server and now i get a 
very strange error message. Can anyone tell me why i'm getting this error? 
Thanks for the help.

the code that generates an error:

<cfoutput query="categories">

<cfset tempCategoryName = Replace(TRIM(category_nm), " ", "^", "ALL")>
<cfparam name="#category_id#|#tempCategoryName#" default="">
</cfoutput>

The error message:

Error Diagnostic Information
An error has occurred while processing the expression:

   
1|Appointments=CFTempOnlyForSetVariableNeverUseThisNameInYourCFMLCode1223334
44455555654321



Invalid token found on line 1 at position 2. ColdFusion was looking at the 
following text:

|
Invalid expression element. The usual cause of this error is a misspelling 
in the expression text.

The error occurred while processing an element with a general identifier of 
(CFPARAM), occupying document position (32:1) to (32:58) in the template 
file c:\...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to