CFMX automatically converts variables with dots into structures. I
wonder if cfdumping request.rootpath or request.Mirrordir might be
interesting. 

> -----Original Message-----
> From: James Sleeman [mailto:[EMAIL PROTECTED]]
> Sent: jeudi 4 juillet 2002 18:35
> To: CF-Talk
> Subject: CFMX bug ??
> 
> 
> Hi all,
>     I'm just working on porting our intranet (which is 
> currently running
> under CF5) to CFMX, and right off the bat I have a little 
> strangeness....
> 
> I have a query, Q_Changers which contains the names of files 
> that need to be
> copied, generating the query works fine, but the copy code...
> 
> <CFLOOP LIST="#ValueList(Q_Changers.Name)#" INDEX="file">
>    <CFFILE ACTION="COPY" SOURCE="#REQUEST.RootPath##file#"
> DESTINATION="#REQUEST.MirrorDir#\#file#" >
> </CFLOOP>
> 
> fails with...
> 
> Complex object types cannot be converted to simple values.
> 
> The Error Occurred in J:\InnovativeMedia\app_globals.cfm: line 122
> Called from J:\InnovativeMedia\StaffAdmin\app_locals.cfm: line 12
> Called from J:\InnovativeMedia\StaffAdmin\index.cfm: line 9
> 
> 120 :
> 121 :   <CFLOOP LIST="#ValueList(Q_Changers.Name)#" INDEX="file">
> 122 :    <CFFILE ACTION="COPY" SOURCE="#REQUEST.RootPath##file#"
> DESTINATION="#REQUEST.MirrorDir#\#file#" >
> 123 :   </CFLOOP>
> 124 :
> 
> but I'm not using any complex objects there, all variables on 
> line 122 are
> simple strings, (REQUEST.RootPath & REQUEST.MirrorDir are 
> directory paths,
> and file is of course just a filename).  Not to mentiong the 
> intranet is
> functioning correctly under CF5 as I type.
> 
> Ideas anybody ?
> 
> ---
> James Sleeman
> 
> 
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.373 / Virus Database: 208 - Release Date: 7/2/2002
> 
> 
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to