May 17, 2008
For ColdFusion hosting try HostMySite.com. |
Home /
Groups /
ColdFusion Talk (CF-Talk)
Error: attempted to dereference a scalar variable
We have a live survey and we took a look at the application log and we ranGerald Guido 05/09/08 10:28 A Assuming that "Q.q4_a_int" is a recordset, try changing it toMatt Quackenbush 05/09/08 10:34 A We have a live survey and we took a look at the application log and we ran into this several times in the course of 20 min. I am assuming it is one user. >> You have attempted to dereference a scalar variable of type class java.math.BigDecimal as a structure with members. It seems to happen in random places The value is always numeric (or a number in a list) and is getting pulled from MSSQL. It looks like it happens when we are doing conditionals, either a cfif or an IIF or a ListFind this is (one of) the line where it threw the error: <cfif Q.q4_a_int EQ 1 > Any clues? -- "The pursuit of truth and beauty is a sphere of activity in which we are permitted to remain children all our lives." - Albert Einstein Assuming that "Q.q4_a_int" is a recordset, try changing it to "Q.q4_a_int[1]". I'm kinda grabbing at straws here, but if your recordset contains more than one record (which I'm guessing it should not), that might result in the error message you are seeing. Typically speaking though, that particular error message means that whatever variable is being referenced as a struct is not actually a struct. HTH On Fri, May 9, 2008 at 9:27 AM, Gerald Guido wrote: ----- Excess quoted text cut - see Original Post for more -----
|
Mailing Lists
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||