Skip to main content
Known Participant
May 27, 2009
Question

My <cfdump var="#q_RptResult#"> show error

  • May 27, 2009
  • 3 replies
  • 1037 views

I'm calling a stor. proc. (in Sybase). If I don't cfdump the resultset, my application run without showing me any problem but when I put cfdump I got the error message saying: CF does not know what q_RptResult is

My code below:

<cfstoredproc procedure="myreport" datasource="#DSN#">

   <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@compcode" value="#compcode#">

   <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@InventYear" value="#InventYear#">

  <cfprocresult name="q_RptResult">

</cfstoredproc>

<cfdump var="#q_RptResult#"> <--- this causing error. Eliminate cfdump eliminate the error message

This topic has been closed for replies.

3 replies

Dileep_NR
Inspiring
June 13, 2009

Hi,

          Please make sure your SP is return an 'OUT'

Inspiring
June 12, 2009

Try moving the CFPROCRESULT tag above the CFPROCPARAM tags. I am not sure if that will solve the issue but everywhere I use these tags the CFPROCRESULT comes first. Give it a shot.

<cfstoredproc procedure="myreport" datasource="#DSN#">

  <cfprocresult name="q_RptResult">

   <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@compcode" value="#compcode#">

   <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" dbvarname="@InventYear" value="#InventYear#">

</cfstoredproc>

BKBK
Community Expert
Community Expert
May 28, 2009

Could we see the error message? In any case, don't you require a cfprocparam of type 'out'?