Dear all, I'm kinda new into CFM. In fact, in another word, I got totally no experience on cfm. I am now working on a project to troubleshoot the cfm page. The problem occur when : 1. User click on listing to action page 2. Action page throw exception on a variable is undefined in session. I'd found the following code in the action page which look weird to me and it might cause the problem: <CFQUERY NAME = "PROJ" DATASOURCE="#TESTSOURCE#> Select PROJ.PRONAME from Project PROJ where PROJ.PROCODE = '1234' </CFQUERY> <CFSET session.PROJNAME = #PROJ.PRONAME#> The exception throw is "Element PROJNAME is undefined in SESSION" Appreciate for any fast reply. Thanks in advance!
Are you sure your query is returning any data? You can put this in to find out: <cfdump var="#proj#"><cfabort> If PROCODE is an integer, you will need to lose the quotes: ...where PROJ.PROCODE = 1234 You should also CFLOCK when setting session variables: <cflock type="session" scope="exclusive" timeout="30"> <cfset session.foo = #foo#> </cflock> Hope that helps...
IsRoss() is correct - the error may infact be further down but carry out IsRoss()'s instructions and let us know the results