Quantcast
Channel: Adobe Community : Popular Discussions - Reporting
Viewing all articles
Browse latest Browse all 38309

Stored Procedure Issue

$
0
0
Hi,

I am running into a problem with calling stored procedures in my Report Builder. In the 7.01 version i could just do the following call to get it to run my SP.

SPName '#cfvariable#' , '#cfvariable2#'

But now in the new 7.02 it wont reconize this. I have several reports that use stored procedures and only half are having issues.
I have searched the forums and found examples of calling SP but it didn't work either.

I have tryed the following ways to call the Stored Procedure:
<------ Everything is in advance mode ------>

<cfstoredproc procedure = "Applist" dataSource = "#session.ds#">
<cfprocparam type = "in"
dbVarName = "in_param"
cfsqltype = "CF_SQL_Char"
value = "#Session.token#">
<cfprocparam type = "in"
dbVarName = "in_param"
cfsqltype = "CF_SQL_Char"
value = "*">
<cfprocresult name = "CFReportDataQuery">
</cfstoredproc>

--I get the same error at the Bottom of this post.


<cfquery name="main" datasource="#session.ds#">
AppList '#session.token#','*'
</cfquery>

<CFQUERY name="CFReportDataQuery" dbtype="query">
SELECT *
FROM main
ORDER BY soc_sec
</CFQUERY>

--This way has worked on half of my Stored Procedures but I'm still running across this error.

report data binding error unknown column name
-OR-
---------------------------------------------------------------------- ---------------------------------------------------------------------- ------------------------------
Element FROM_DT is undefined in QUERY.


The error occurred in : line 1

-1 : Unable to display error's location in a CFML template.



---------------------------------------------------------------------- ---------------------------------------------------------------------- ------------------------------

Please try the following:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.


Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Remote Address 127.0.0.1
Referrer
Date/Time 13-Jul-06 02:48 PM

Stack Trace (click to expand)
at Statement36.evaluate(:1)


coldfusion.runtime.UndefinedElementException: Element FROM_DT is undefined in QUERY.
at coldfusion.runtime.CfJspPage.resolveCanonicalName(CfJspPage.java:1061 )
at coldfusion.runtime.CfJspPage._resolve(CfJspPage.java:1038)
at coldfusion.runtime.CfJspPage._resolveAndAutoscalarize(CfJspPage.java: 1137)
at Statement36.evaluate(<generated>:1)
at coldfusion.compiler.ExprClassLoader.evaluate(ExprClassLoader.java:134 )
at coldfusion.runtime.report.CFExprEvaluator.doCfEval(CFExprEvaluator.ja va:209)
at coldfusion.runtime.report.CFExprEvaluator.evaluate(CFExprEvaluator.ja va:282)
at net.sf.jasperreports.engine.fill.JREvaluator.evaluate(JREvaluator.jav a:170)
at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.j ava:609)
at net.sf.jasperreports.engine.fill.JRCalculator.evaluate(JRCalculator.j ava:577)
at net.sf.jasperreports.engine.fill.JRFillElement.evaluateExpression(JRF illElement.java:914)
at net.sf.jasperreports.engine.fill.JRFillTextField.evaluateText(JRFillT extField.java:319)
at net.sf.jasperreports.engine.fill.JRFillTextField.evaluate(JRFillTextF ield.java:306)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFi llElementContainer.java:215)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow( JRVerticalFiller.java:389)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVe rticalFiller.java:354)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRV erticalFiller.java:225)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVertic alFiller.java:128)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java: 833)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:89 )
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillMa nager.java:428)
at coldfusion.runtime.report.Report.runReport(Report.java:324)
at coldfusion.filter.ComponentFilter.invoke(ComponentFilter.java:96)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225 )
at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:5 2)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePers istenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:106)
at coldfusion.xml.rpc.CFCServlet.doGet(CFCServlet.java:157)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas e.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:7 8)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java: 257)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java: 527)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.ja va:204)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPoo l.java:349)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.j ava:457)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool. java:295)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)


--------------------------------------------------------------------- ---------------------------------------------------------------------- -------------------------------

Anyone Have any Suggestions??

Thanks,

Daniel

Viewing all articles
Browse latest Browse all 38309

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>