Validation error for tag cfloop


hi all,

 

complete newbie cf here.  i've inherited (or bought) online business has site written in cf.  haven't done sort of stuff before work sql living , object oriented stuff plus have done bit of html , php cf isn't mind blowing me (in simple form).

 

i've downloaded site on computer run local copy can hack pieces if needs be.  reason, have few problems site running locally.  first error i'm getting attribute validation error tag cfloop.

 

basically, index.cfm has bit of code in it:

<cfinvoke component="#datasets#" method="storedprocedure" returnvariable="getfeaturedwineries_qry">
    <cfinvokeargument name="storedprocedure" value="usp_getfeaturedwineries">
</cfinvoke>

 

ok, easy enough.  anyway, there's call down page to:

<cfinclude template = "#request.cfmpath#includes/displayfeaturedwineries.cfm">

 

within displayfeaturedwineries.cfm code calls stored proc invoked above:

<cfloop query="getfeaturedwineries_qry" startrow="1" endrow="2">

 

bam, that's error occurs.  "the value of attribute query, getfeaturedwineries_qry, invalid.

 

what???  stored proc exists , returns 2 records (which begs me wonder why have startrow , endrow anyway, doesn't work or without it).

 

the other interesting thing works on production, no problem!!!  wtf?  how can work on production not locally.

 

the thing i'm starting think is:

a)  i've missed setting somewhere in cf or

b)  i'm running apache compared iis or

c)  i'm running sql 2008 , cf 9 no doubt different production host server.

 

should b or c causing type of problem??

 

thanks,

matt

here thing try.

 

1. can use cfdump tag output values of variables assist in troubleshooting.  if use cfdump output value of getfeaturedwineries_qry on line before cfloop contents appear expected?

 

2. cfdump of #request.cfmpath#includes/displayfeaturedwineries.cfm point file exists on system?

 

3. same #datasets#.

 

4. in regards apache vs. iis, there issue path or other value being case sensitive in apache?

 

5. in regards sql server sql profile/trace show queries/stored procedures being executed?

 

it might helpful have more of code @ more details how enviroment setup.

 

cfdump tag documentation

http://help.adobe.com/en_us/coldfusion/9.0/cfmlref/wsc3ff6d0ea77859461172e0811cbec22c24-7e f7.html



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support