Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error code:-2147217394 Error code name:missingParameterValueError

I am encountering a very strange error.

I am testing integration for one crystal report into my web application.

This report has two parameters.

It is just a printout of one kind of document in my application, say Quotation.

At the first time, I request the report for document QUOT001, and it's fine.

And then I wants to get the report on document QUOT002, then the error pops up.

After several trials, I can generate the report for document QUOT002.

The error just happens no where and I cannot figure why.

My sample code in the quotation-viewer.jsp (Reusing the JRCHelperSample.java) is:

// ****** BEGIN CONNECT PARAMETERS SNIPPET ****************

{

String companyCode = (String) session.getAttribute("COMPANY_CODE");

String quotationNo = (String) session.getAttribute("QUOTATION_NO");

JRCHelperSample.addDiscreteParameterValue(clientDoc, "COMPANY_CODE", "", companyCode);

JRCHelperSample.addDiscreteParameterValue(clientDoc, "QUOTATION_NO", "", quotationNo);

}

// ****** END CONNECT PARAMETERS SNIPPET ****************

// Store the report document in session

session.setAttribute(reportName, clientDoc);

// ****** BEGIN CONNECT CRYSTALREPORTPAGEVIEWER SNIPPET ****************

{

// Create the CrystalReportViewer object

CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();

// set the reportsource property of the viewer

IReportSource reportSource = clientDoc.getReportSource();

crystalReportPageViewer.setReportSource(reportSource);

// set viewer attributes

crystalReportPageViewer.setOwnPage(true);

crystalReportPageViewer.setOwnForm(true);

// Apply the viewer preference attributes

// Process the report

crystalReportPageViewer.processHttpRequest(request, response, application, null);

}

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question