JSF SQL Exception missing parameter IN or OUT

Hello,
I am new in JSF. I wanted to view information from table stored in Oracle database XE edition. I use jdbc driver to connect Netbeans 6.0 environment to the database. Then I set the table and SQL statement with "?". Always when I want to see the information it throws exception below. I am completely lost because I couldnt find any solution on the Internet. I use Glassfish V2 server. Thank you very much for help.
Martin
com.sun.rave.web.ui.appbase.ApplicationException: java.sql.SQLException: Missing parameter IN or OUT at index:: 1
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:594)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:325)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render(PartialTraversalLifecycle.java:106)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:270)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:339)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:261)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

Open up your SessionBean1 and unfold the init method where it says Creator Managed Component Initialization and copy and paste the code for the RowSet initialization so it is clear what your query says so that somebody can help you because the way you described is not enough information for anyone to understand what's going on. You should also include the prerender method of corresponding page with table, although prerender is not listed in the Stack Trace, but it could help. Then you will have alot better chance of others helping you out!
Jason

Similar Messages

  • Crystal Runtime exception: Missing parameter values

    Our company did a PeopleTools upgrade at one of our clients recently. We upgraded them to PeopleTools 8.50.08. We had to convert all the Crystal Reports to the 2008 format using the RPT converter which is included in the Client install of PeopleTools.
    The only problem now is that a lot of the Crystal processes in PeopleSoft are failing with the following error:
    Crystal Runtime exception: Missing parameter values.
    I've checked the parameters which are being passed to the report and I see both parameters are filled:
    E:\HR881\BIN\CLIENT\WINX86\PSCRRUN.EXE -CTORACLE -CDHRMKPDEV -COPSDUT -CPOPRPSWD -I218609 -RP"PUP202K" -OT6 -OP"G:\PS\PSPRCS\log_output\HRMKPDEV\CRW_PUP202K_218609" -LGDUT -OF2 -ORIENTL "2000-10-01" "2002-06-30"
    Database type is Oracle. HRMS version is 8.8. I can run the Query which gets the data in just fine and I can also run the report from Crystal fine. This only happens with Crystal reports which have a date field as a parameter/prompt in the report.
    There's currently an SR open at Oracle, but I was hoping that someone here can help me nail this issue. I'm not too happy with the quallity of Oracle support, but that's a whole different story.

    <s>Just to be sure, did you put a space after each parameter name or is it a typo over here ?
    E:\HR881\BIN\CLIENT\WINX86\PSCRRUN.EXE -CT ORACLE -CD HRMKPDEV -CO PSDUT -CP OPRPSWD -I 218609 -RP "PUP202K" -OT 6 -OP "G:\PS\PSPRCS\log_output\HRMKPDEV\CRW_PUP202K_218609" -LG DUT -OF 2 -OR IENTL "2000-10-01" "2002-06-30"</s>
    Nicolas.
    sorry, it was wrong assumption.
    Edited by: N Gasparotto on Jun 2, 2010 5:11 PM

  • CRVS2010 Beta - Missing parameter values

    I want to export my report to pdf file and I want to set some parameters in report in runtime.
    But when I try to do it I have exception "Missing parameter values".
    Productversion: Visual Studio 2010 + Crystal Report 2008 + service pack v3.
    I read that problem was resolved in service pack v2.
    But now I don't have any idea how to fix my problem.
    I create report and add parameters ("MyParameter") as string.
    My test project:
    //Load report
    //Set db connection
    try
                            ParameterValues crParameterValues = report.DataDefinition.ParameterFields["MyParameter"].CurrentValues;
                   ParameterDiscreteValue crParameterDiscreteValue = new ParameterDiscreteValue {Value = "SBSUrl"};
                   crParameterValues.Clear();
                   crParameterValues.Add(crParameterDiscreteValue);
                   report.DataDefinition.ParameterFields["MyParameter"].ApplyCurrentValues(crParameterValues);
                   report.VerifyDatabase();
                   report.Refresh();
                      string reportFileName = string.Format(@"D:\CrystalReport\CRResult-{0}.pdf", DateTime.Now.Ticks);
                      ExportOptions rptExportOption;
                      var rptFileDestOption = new DiskFileDestinationOptions();
                      var rptFormatOption = new PdfRtfWordFormatOptions();
                      rptFileDestOption.DiskFileName = reportFileName;
                      rptExportOption = report.ExportOptions;
                           rptExportOption.ExportDestinationType = ExportDestinationType.DiskFile;
                           rptExportOption.ExportFormatType = ExportFormatType.PortableDocFormat;
                           rptExportOption.ExportDestinationOptions = rptFileDestOption;
                           rptExportOption.ExportFormatOptions = rptFormatOption;
                      report.Export(); //  I have exception here ("Missing parameter values.")
                 catch (Exception e)
                      Console.WriteLine(e);
              private void SetCurrentValuesForParameterField(ReportDocument reportDocument, ArrayList arrayList)
                   ParameterValues currentParameterValues = new ParameterValues();
                   foreach (object submittedValue in arrayList)
                        ParameterDiscreteValue parameterDiscreteValue = new ParameterDiscreteValue();
                        parameterDiscreteValue.Value = submittedValue.ToString();
                        currentParameterValues.Add(parameterDiscreteValue);
                   ParameterFieldDefinitions parameterFieldDefinitions = reportDocument.DataDefinition.ParameterFields;
                   ParameterFieldDefinition parameterFieldDefinition = parameterFieldDefinitions["MyParameter"];
                   parameterFieldDefinition.CurrentValues.IsNoValue = true;
                   parameterFieldDefinition.ApplyCurrentValues(currentParameterValues);
    Could anybody help me with this exception?

    Make sure you log on to the database, set the parameter, then export.
    See the following KBases:
    [1244475 - Error: Missing parameter value when exporting a Crystal Report with optional parameters using the CR .NET SDK|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    [1215426 - Err Msg: Missing parameter value when printing or exporting in VS .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    [1215536 - Err Msg: Missing parameter field current value when exporting/printing in .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    [1216546 - Err Msg: Missing Parameter Field Current Value when viewing a report in VS.NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
    Also, see the following forum thread for possible solutions:
    Passing Parameters CR 2008 VS 2008 ASP.net
    Ludek

  • Date variable error "Missing parameter"

    Hello!
    I have created a my_date_variable, which is then used in PL/SQL procedure,
    e.g., "create table my_test as select #my_date_variable from dual;",
    but when I execute this in ODI, I get the following error:
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
         at com.sunopsis.sql.SnpsQuery.completeHostVariable(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:619)
    Variable has default value, I tried all 3 actions - Historize, Latest Value, Not Persistent.
    When I do the same with numeric variable, my test case works perfectly.
    So, this problem appears to be only related to date variable, or maybe I just don't know how to use it.
    Karlis
    Edited by: Karlis on May 26, 2009 8:37 AM

    Hi ,
    I created the variable #my_date_variable.With Default Value as 2009-01-01 and Not Persistant.
    Then i created procedure with follwoing expression.
    "create table my_test_aw as select '#my_date_variable' aw from dual"
    Table is created with column name as aw and data value as "2009-01-01".
    Let me know is this your issue ?
    regards,
    ashwini

  • Missing Parameter Error

    Im trying to integrate Data from a CSV file into an oracle datastore. Im using LKM sql to oracle and IKM sql incremental update KMs. While loading the data the execution terminates with the error
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
    The CSV file goes like this
    Name, City
    xyz, abc
    and the datastore has the same fields.
    Any help is appreciated. Thanks in Advance

    I am trying to insert rows in the in to the Primary colum DEPT_ID_PK using the sequence DEPT_SEQ name. The follwoing is the syntax I have used in the implemetation box of the target column.
    :DEPT_SEQ.NEXTVAL
    I am getting the follwoing error. can any body help me.
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
         at com.sunopsis.sql.SnpsQuery.completeHostVariable(SnpsQuery.java)

  • Missing Parameter - Global Date Variable

    I am trying to use a global variable for a date in my interface. I have the variable declared on the schema of my staging area and when I refresh it it works fine. I put the variable as refresh followed by the interface in a package. When I run the package the interface errors on the insert flow into $I table. The error message it is giving me is as follows:
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
         at com.sunopsis.sql.SnpsQuery.completeHostVariable(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.executeUpdate(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:619)
    If I put a TO_DATE clause around the variable in the target assignment it makes no difference. Also, In the same project we are working on we have alphanumeric and numeric variables working fine. Is there something different about global variables that are dates that's not mentioned in the documentation?
    Any help is greatly appreciated as this is really strange that they work for 2 types but not the third.

    This is unlikely to have anything to do with Global or Local variables.
    The error you are experiencing is usually due to a rouge ':' in the code.
    I suspect in this case your date value includes a level of detail that returns some format like DD-MM-YYYY HH24:MI and ODI is choking on the ':'
    In this case, the workaround is to enclose your date value in double quotes.
    Hope this helps.

  • GetPrevStepLog fails with missing parameter

    when trying to refresh a variable with this code
    SELECT '<%=odiRef.getPrevStepLog("MESSAGE")%>' FROM DUAL
    I get this error.
    com.sunopsis.sql.SnpsMissingParametersException: Missing parameter
    Any ideas?
    Message was edited by:
    gglova

    Hi Gglova,
    Trying to help you.
    Quick questions,
    1. Are you using this variable in a package?
    2. If so what are all the components are there in that package?
    3. In the package flow where this variable comes ( i mean whether its coming after any interface/procedure or as the first step)?
    Thanks,
    Guru.

  • Java.sql.SQLException: Missing IN or OUT parameter at index:: 8

    we are getting the below error msg in OAF ,can anybody help us how to get resolved the error
    error details
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT NVL(PAA.DATE_START, PAA.DATE_PROJECTED_START) START_DATE, NVL(PAA.DATE_END, PAA.DATE_PROJECTED_END) END_DATE, PAATTL.NAME ABSENCE_TYPE, PAAT.ABSENCE_ATTENDANCE_TYPE_ID ABSENCE_ATTENDANCE_TYPE_ID, FCL.MEANING ABSENCE_CATEGORY, PAAT.ABSENCE_CATEGORY ABSENCE_CATEGORY_CODE, NVL(PAA.ABSENCE_HOURS, HR_ABSUTIL_SS.GETABSDURHOURS(PAAT.ABSENCE_ATTENDANCE_TYPE_ID, PAA.BUSINESS_GROUP_ID, PAA.CREATION_DATE, PAA.PERSON_ID, PAA.DATE_PROJECTED_START, PAA.DATE_PROJECTED_END, PAA.TIME_PROJECTED_START, PAA.TIME_PROJECTED_END)) ABSENCE_HOURS, (SELECT MEANING FROM HR_LOOKUPS WHERE 'A' = LOOKUP_CODE(+) AND 'LEAVE_STATUS' = LOOKUP_TYPE(+)) APPROVAL_STATUS, 'A' APPROVAL_STATUS_CODE, DECODE(PAA.DATE_START, NULL, (SELECT MEANING FROM FND_LOOKUP_VALUES WHERE LOOKUP_TYPE = 'ABSENCE_STATUS' AND LOOKUP_CODE = 'PLANNED' AND LANGUAGE = USERENV('LANG')), (SELECT MEANING FROM FND_LOOKUP_VALUES WHERE LOOKUP_TYPE = 'ABSENCE_STATUS' AND LOOKUP_CODE = 'CONFIRMED' AND LANGUAGE = USERENV('LANG'))) ABSENCE_STATUS, DECODE(PAA.DATE_START, NULL, 'PLANNED', 'CONFIRMED') ABSENCE_STATUS_CODE, (NVL((SELECT 'Y' FROM FND_ATTACHED_DOCUMENTS WHERE ENTITY_NAME = 'PER_ABSENCE_ATTENDANCES' AND PK1_VALUE = TO_CHAR(PAA.ABSENCE_ATTENDANCE_ID)), 'N')) SUPPORTING_DOCUMENTS, DECODE(PAA.DATE_START, NULL, DECODE(SIGN((PAA.DATE_PROJECTED_START + 1) - SYSDATE), 1, 'HrCancelEnabled', 'HrCancelDisabled'), DECODE(SIGN(NVL(PAA.DATE_END, SYSDATE + 1) - SYSDATE), 1, 'HrCancelEnabled', 'HrCancelDisabled')) CANCEL_ICON, DECODE(PAA.DATE_END, NULL, DECODE(PAA.DATE_START, NULL, 'HrConfirmEnabled', 'HrConfirmDisabled'), 'HrConfirmDisabled') CONFIRM_ICON, DECODE(PAA.DATE_START, NULL, 'HrUpdateEnabled', DECODE(SIGN(NVL(PAA.DATE_END, SYSDATE + 1) - SYSDATE), 1, 'HrUpdateEnabled', 'HrUpdateDisabled')) UPDATE_ICON, NULL DETAILS_ICON, PAA.ABSENCE_ATTENDANCE_ID, NULL TRANSACTION_ID, TO_CHAR(PAA.ABSENCE_ATTENDANCE_ID) SUPPORTINGDOCKEY, NVL(PAA.ABSENCE_DAYS, HR_ABSUTIL_SS.GETABSDURDAYS(PAAT.ABSENCE_ATTENDANCE_TYPE_ID, PAA.BUSINESS_GROUP_ID, PAA.CREATION_DATE, PAA.PERSON_ID, PAA.DATE_PROJECTED_START, PAA.DATE_PROJECTED_END, PAA.TIME_PROJECTED_START, PAA.TIME_PROJECTED_END)) ABSENCE_DAYS FROM PER_ABSENCE_ATTENDANCES PAA, PER_ABSENCE_ATTENDANCE_TYPES PAAT, PER_ABS_ATTENDANCE_TYPES_TL PAATTL, HR_LOOKUPS FCL WHERE PAA.PERSON_ID = :1 AND PAA.BUSINESS_GROUP_ID + 0 = :2 AND PAA.ABSENCE_ATTENDANCE_TYPE_ID = PAAT.ABSENCE_ATTENDANCE_TYPE_ID AND PAAT.ABSENCE_ATTENDANCE_TYPE_ID = PAATTL.ABSENCE_ATTENDANCE_TYPE_ID AND PAATTL.LANGUAGE = USERENV('LANG') AND FCL.LOOKUP_TYPE(+) = 'ABSENCE_CATEGORY' AND PAAT.ABSENCE_CATEGORY = FCL.LOOKUP_CODE(+) AND ((HR_API.RETURN_LEGISLATION_CODE(PAAT.BUSINESS_GROUP_ID) = 'GB' AND NVL(PAAT.ABSENCE_CATEGORY, '#') NOT IN ('M', 'GB_PAT_ADO', 'GB_PAT_BIRTH', 'GB_ADO')) OR (HR_API.RETURN_LEGISLATION_CODE(PAAT.BUSINESS_GROUP_ID) &lt;&gt; 'GB' AND NVL(PAAT.ABSENCE_CATEGORY, '#') NOT IN ('GB_PAT_ADO', 'GB_PAT_BIRTH', 'GB_ADO'))) AND NOT EXISTS (SELECT 'e' FROM HR_API_TRANSACTIONS T WHERE T.SELECTED_PERSON_ID = PAA.PERSON_ID AND T.CREATOR_PERSON_ID = NVL(:3, T.CREATOR_PERSON_ID) AND T.TRANSACTION_REF_TABLE = 'PER_ABSENCE_ATTENDANCES' AND T.TRANSACTION_REF_ID = PAA.ABSENCE_ATTENDANCE_ID AND NOT (HR_ABSUTIL_SS.GETABSENCETYPE(T.TRANSACTION_ID, NULL) IS NULL AND T.STATUS = 'W') AND T.STATUS NOT IN ('D', 'E')) AND DECODE(:6,'PLANNED','PLANNED','CONFIRMED_PLANNED') = DECODE(:6,NULL,'CONFIRMED_PLANNED','CONFIRMED','CONFIRMED_PLANNED',DECODE(PAA.DATE_START, NULL, 'PLANNED', 'CONFIRMED')) UNION ALL SELECT HR_ABSUTIL_SS.GETSTARTDATE(HAT.TRANSACTION_ID, NULL) START_DATE, HR_ABSUTIL_SS.GETENDDATE(HAT.TRANSACTION_ID, NULL) END_DATE, HR_ABSUTIL_SS.GETABSENCETYPE(HAT.TRANSACTION_ID, NULL) ABSENCE_TYPE, TO_NUMBER(HATS.INFORMATION5) ABSENCE_ATTENDANCE_TYPE_ID, HR_ABSUTIL_SS.GETABSENCECATEGORY(HAT.TRANSACTION_ID, NULL) ABSENCE_CATEGORY, HATS.INFORMATION6 ABSENCE_CATEGORY_CODE, HR_ABSUTIL_SS.GETABSENCEHOURSDURATION(HAT.TRANSACTION_ID, NULL) ABSENCE_HOURS, HR_ABSUTIL_SS.GETAPPROVALSTATUS(HAT.TRANSACTION_ID, NULL) APPROVAL_STATUS, HR_ABSUTIL_SS.GETAPPROVALSTATUSCODE(HAT.TRANSACTION_ID, NULL) APPROVAL_STATUS_CODE, HR_ABSUTIL_SS.GETABSENCESTATUS(HAT.TRANSACTION_ID, NULL) ABSENCE_STATUS, HATS.INFORMATION9 ABSENCE_STATUS_CODE, HR_ABSUTIL_SS.HASSUPPORTINGDOCUMENTS(HAT.TRANSACTION_ID, HAT.TRANSACTION_REF_ID) SUPPORTING_DOCUMENTS, HR_ABSUTIL_SS.ISCANCELALLOWED(HAT.TRANSACTION_ID, NULL, HAT.STATUS) CANCEL_ICON, HR_ABSUTIL_SS.ISCONFIRMALLOWED(HAT.TRANSACTION_ID, NULL) CONFIRM_ICON, HR_ABSUTIL_SS.ISUPDATEALLOWED(HAT.TRANSACTION_ID, NULL, HAT.STATUS) UPDATE_ICON, NULL DETAILS_ICON, HAT.TRANSACTION_REF_ID ABSENCE_ATTENDANCE_ID, HAT.TRANSACTION_ID TRANSACTION_ID, TO_CHAR(HAT.TRANSACTION_REF_ID || '_' || HAT.TRANSACTION_ID) SUPPORTINGDOCKEY, HR_ABSUTIL_SS.GETABSENCEDAYSDURATION(HAT.TRANSACTION_ID, NULL) ABSENCE_DAYS FROM HR_API_TRANSACTIONS HAT, HR_API_TRANSACTION_STEPS HATS WHERE HAT.TRANSACTION_REF_TABLE = 'PER_ABSENCE_ATTENDANCES' AND HAT.TRANSACTION_GROUP = 'ABSENCE_MGMT' AND HAT.TRANSACTION_IDENTIFIER = 'ABSENCES' AND HAT.TRANSACTION_REF_ID IS NOT NULL AND HAT.SELECTED_PERSON_ID = :4 AND HAT.CREATOR_PERSON_ID = NVL(:5, HAT.CREATOR_PERSON_ID) AND HAT.TRANSACTION_ID = HATS.TRANSACTION_ID(+) AND HAT.STATUS NOT IN ('D', 'E') AND NOT (HR_ABSUTIL_SS.GETABSENCETYPE(HAT.TRANSACTION_ID, NULL) IS NULL AND HAT.STATUS = 'W') AND DECODE(:6,'PLANNED','PLANNED','CONFIRMED_PLANNED') = DECODE(:6,NULL,'CONFIRMED_PLANNED','CONFIRMED','CONFIRMED_PLANNED',HATS.INFORMATION9) ORDER BY START_DATE DESC) QRSLT WHERE (( ABSENCE_ATTENDANCE_TYPE_ID = :7 )) ORDER BY START_DATE DESC at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2850) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1838) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424) at OA.jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:610) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:359) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:595) ## Detail 0 ## java.sql.SQLException: Missing IN or OUT parameter at index:: 8 at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    VOImplementation code
    setWhereClauseParams(null);
    setWhereClause(null);
    setWhereClauseParam(0, paramString1);
    setWhereClauseParam(1, paramString2);
    setWhereClauseParam(2, paramString3);
    setWhereClauseParam(3, paramString1);
    setWhereClauseParam(4, paramString3);
    OADBTransactionImpl oadbAbsenceSummimp = (OADBTransactionImpl)getDBTransaction();
    SSHRParams localSSHRParams = new SSHRParams(oadbAbsenceSummimp);
    setWhereClauseParam(5, oadbAbsenceSummimp.getValue("FORMPARAM"));
    oadbAbsenceSummimp.writeDiagnostics(this, "FORMPARAM----->> "+oadbAbsenceSummimp.getValue("FORMPARAM"), 1);
    oadbAbsenceSummimp.writeDiagnostics(this, "getQuery()----->> "+getQuery(), 1);
    oadbAbsenceSummimp.writeDiagnostics(this, "paramString1--"+paramString1 +"paramString2--"+paramString2+"paramString3--"+paramString3, 1);
    executeQuery();
    Many thanks in advance
    Tukuna

    :6, 'PLANNED','PLANNED','CONFIRMED_PLANNED') = DECODE( *:7* ,NULL..... //It should be :7 not :6
    Thanks
    --Anil                                                                                                                                                                                                                                       

  • Java.sql.SQLException: Missing IN or OUT parameter at index:: 1

    Hi,
    I am facing the above issue and can not determine why. I would like to create a messagechoice item on a region and when i do, and attach my VO to the messagechoice item i get the above error. When i use a region with a table view on it it seems to work fine.
    The query in the vo is something like (i am using an example)
    select person_id
    , start_date
    from employee_table
    where employee_number = :0
    the VO is created using oracle positional.
    The code in the mainpage controller is
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    String personId = String.valueOf(pageContext.getEmployeeId());
    Serializable [] s = {personId };
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod ("initLOV", s);
    the AM
    public void initLOV(String PersonId)
    ViewObjImpl vo = getViewObj1();
    if (vo!= null)
    vo.initQuery(PersonId);
    and the VO
    public void initQuery(String personId)
    int XpersonId = 8791;
    setWhereClauseParams(null); // Always reset
    setWhereClauseParam(0, XpersonId);
    executeQuery();
    The error i get is below. thanks in advance!
    Rupesh
    ## Detail 0 ##
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
         at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1566)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2996)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3043)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(Unknown Source)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3643)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.createListDataObject(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getListDataObject(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListHelper.getList(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getList(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValuePickListData.getValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OADataBoundValuePickListSelectionIndex.getValue(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.getAttributeValueImpl(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
         at oracle.cabo.ui.collection.AttributeMapProxy.getAttribute(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.cabo.ui.collection.UINodeAttributeMap.getAttribute(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValueImpl(Unknown Source)
         at oracle.cabo.ui.BaseUINode.getAttributeValue(Unknown Source)
         at oracle.cabo.ui.laf.base.BaseLafUtils.getLocalAttribute(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.getSelectedIndex(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.populateOptionInfo(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.createOptionInfo(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.OptionContainerRenderer.prerender(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.ChoiceRenderer.prerender(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.FormElementRenderer.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OARendererProxy.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListRendererProxy.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderNamedChild(Unknown Source)
         at oracle.cabo.ui.laf.base.SwitcherRenderer._renderCase(Unknown Source)
         at oracle.cabo.ui.laf.base.SwitcherRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OARendererProxy.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListRendererProxy.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.InlineMessageRenderer.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OARendererProxy.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanPickListRendererProxy.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.MessageComponentLayoutRenderer.renderColumn(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.MessageComponentLayoutRenderer._renderColumns(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.MessageComponentLayoutRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
         at oracle.cabo.ui.laf.swan.desktop.ContentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(Unknown Source)
         at OA.jspService(_OA.java:87)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1

    thanks for your quick reply, however here is the actual code for my Vo. As you can see - it isnt a sraightforward query where i can set the where clause. Do i need to initial he messageChoice item somehow? this is strange as it works when i create a tabular item.
    SELECT DISTINCT ppa.payroll_action_id
    , ppa.payroll_id
    , ptp.time_period_id
    , ppa.effective_date
    , hr_payrolls.display_period_name(ppa.payroll_action_id) display_period
    , DECODE(papf.per_information9||papf.per_information10,'YY',null,'Assignment '||paaf.assignment_number||' ')
    ||'Payroll Date '||fnd_date.date_to_chardate(ppa.effective_date) display_request
    FROM per_all_people_f papf
    , per_all_assignments_f paaf
    , pay_assignment_actions paa
    , pay_payroll_actions ppa
    , per_time_periods ptp
    WHERE papf.person_id = :0
    AND papf.effective_start_date = (select max(a.effective_start_date)
    from per_all_people_f a
    where a.person_id = papf.person_id)
    AND paaf.person_id = papf.person_id
    AND paaf.effective_start_date = (select max(a.effective_start_date)
    from per_all_assignments_f a
    where a.assignment_id = paaf.assignment_id)
    AND paa.assignment_id = paaf.assignment_id
    AND ppa.payroll_action_id = paa.payroll_action_id
    AND ppa.action_type = 'P'
    AND ptp.payroll_id = ppa.payroll_id
    AND ppa.effective_date BETWEEN ptp.start_date AND ptp.end_date
    AND ((NVL(papf.per_information9,'N') = 'Y'
    AND NVL(papf.per_information10,'N') = 'Y'
    AND xxlcc_hr_payslip_pkg.calc_net_pay(ppa.payroll_action_id,papf.person_id,NULL) > 0)
    OR ((NVL(papf.per_information9,'N') <> 'Y'
    OR NVL(papf.per_information10,'N') <> 'Y')
    AND xxlcc_hr_payslip_pkg.calc_net_pay(ppa.payroll_action_id,papf.person_id,paaf.assignment_id) > 0))
    Edited by: rupz112 on 01-Jul-2009 09:13

  • Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 1

    Hi,
    i have a variable email when error, which queries the E$ tables. If it finds any entry in the table it updates its count:
    select count(1) from ODI_WORK.E$_<%=odiRef.getSession("SESS_NO")%>CI_TXN_DETAIL.
    Here am attaching the session number to the E$ table as well, to help me in parallel processin. This variable "Email_when_Error" is used in my package. When i execute my package i get the following error:
    ODI-1228: Task EMAIL_WHEN_ERROR (Variable) fails on the target connection RJ_DATA_SERVER.
    Caused By: java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1890)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3747)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
         at oracle.odi.query.JDBCTemplate.executeQuery(JDBCTemplate.java:189)
         at oracle.odi.runtime.agent.execution.sql.RefreshVariableExecutor.execute(RefreshVariableExecutor.java:54)
         at oracle.odi.runtime.agent.execution.sql.SQLExecutor.execute(SQLExecutor.java:1)
         at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handleTask(TaskExecutionHandler.java:50)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.processTask(SnpSessTaskSqlV.java:401)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlV.treatTask(SnpSessTaskSqlV.java:230)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1595)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$2.doAction(StartScenRequestProcessor.java:580)
         at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor.doProcessStartScenTask(StartScenRequestProcessor.java:513)
         at oracle.odi.runtime.agent.processor.impl.StartScenRequestProcessor$StartScenTask.doExecute(StartScenRequestProcessor.java:1070)
         at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
         at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
         at java.lang.Thread.run(Thread.java:662)
    kindly tell me where i went wrong

    Hi,
    When i run the variable as refresh...even i got the E$ table not found error. But when it is a part of package, This is what i get in the code section:
    Refresh Variable RJ_PROJECT.EMAIL_WHEN_ERROR:
    BeanShell script error: Sourced file: inline evaluation of: ``out.print("select count(1) from ODI_WORK.E$") ; odiRef.getSession(\u201cSESS_NO\ . . . '' Token Parsing Error: Lexical error at line 2, column 19. Encountered: "\u201c" (8220), after : "": <at unknown location>
    BSF info: EMAIL_WHEN_ERROR at line: 0 column: columnNo
    out.print("select count(1) from ODI_WORK.E$") ;
    odiRef.getSession(\u201cSESS_NO\u201d)out.print("_CI_TXN_DETAIL") ;
    ****** ORIGINAL TEXT ******
    select count(1) from ODI_WORK.E$<%odiRef.getSession(?SESS_NO?)%>CITXN_DETAIL

  • ReportDocument.Export() raises "Missing Parameter Values" exception

    Hi
    Recently I encountered a question about SAP Crystal Report that I have a rpt file with several sub reports and I am required to make the data source to be XML with http/https URLs. I created different .NET pages which returns XML stream as data source for both main report and sub reports in my rpt file, and also created a sub report links which pass dynamic parameters from main report to the sub reports, everything worked fine when I entered the necessary parameters only for the main report in the design tool, both the main report and sub reports displayed perfectly.
    But it did not work in my .NET application which export the reports to PDFs, I referenced “CrystalDecisions.CrystalReports.Engine” and some other necessary DLLs into my project, and then I created an instance of ReportDocument, loaded the rpt file, set parameters which used in the main report, set connection info, and at last when I export the report it throw out an exception with “Missing Parameter Values” error message, even though I removed the sub report links which pass parameters from main report, the exception still occurred, but when I removed all the sub reports, and only export the main report it worked!!
    Here is a result of my attempts:
    Main Report
    Sub Report
    Result
    1
    With XML data source
    No report
    Works fine with dynamic parameters set to the http/https url which returns an xml results
    2
    With XML data source
    Pass a static value and print it on the report
    Works fine.
    3
    With XML data source
    Create a SQL command WITHOUT any parameters passed from main report
    Works fine
    4
    With XML data source
    Create a SQL command WITH a dynamic parameter passed from main report
    Works fine
    5
    With XML data source
    Create a xml data source WITHOUT any parameters passed from main report
    Failed with "Missing Parameter Values"
    6
    With XML data source
    Create a xml data source WITH a dynamic parameter passed from main report
    Failed with "Missing Parameter Values"
    I am confused about this issue for a few days, is there any ideas or helps? many thanks!

    OK:
    We upgraded to CR 13.0.2000.0 and Visual Studio 2012 and .Net Framework 4.5.
    Problem still happens.
    When we display the report in the designer, the url has parameters.  Here are the IIS log entries:
    2014-05-01 18:24:56 192.168.251.10 GET /quotit/apps/leadspro/CrystalServiceGateway_test.aspx @IFPPSID=1899582751211388&@styleColorScheme=10511658/13343077/10511658/13343077/16777215/15720656/16777215/15720656/24831/13426687|10511658/16777215/16777215/16777215/0/0/0/0/0/0 80 - 10.16.26.44 Java/1.6.0_37 200 0 0 959
    2014-05-01 18:24:56 192.168.251.10 GET /quotit/apps/leadspro/CrystalServiceGateway_test2.aspx @BrokerID=23433176 80 - 10.16.26.44 Java/1.6.0_37 200 0 0 742
    When we use the crystaldecisions.crystalreports.engine, no parameters are passed.  Here are the IIS log entries:
    2014-05-01 18:22:28 192.168.251.10 GET /quotit/apps/leadspro/CrystalServiceGateway_test2.aspx - 80 - 10.16.26.44 Java/1.7.0_45 200 0 0 58
    2014-05-01 18:22:28 192.168.251.10 GET /quotit/apps/leadspro/CrystalServiceGateway_test.aspx - 80 - 10.16.26.44 Java/1.7.0_45 200 0 0 115
    I cannot attach the rpt file here.  If you need it, please let me know how to get it to you.  I am attaching a screenshot of the datasource location.  I am pasting in the striped down .NET code.  Any help or pointers would be greatly appreciated.
    Thanks,
    Tom
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Configuration;
    using System.IO;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using System.Collections;
    namespace CrystalTest
        class Program
            static void Main(string[] args)
                string source = Path.Combine(@"C:\Users\thomas\Desktop\reports\eProIFP\iProReports", "summaryReportByPremium_ACA_UltraColor.rpt");
                string destination = Path.Combine(@"C:\Users\thomas\Desktop\testReports", "output.pdf");
                if (File.Exists(destination))
                    File.Delete(destination);
                ReportDocument rptDoc = new ReportDocument();
                if (File.Exists(source))
                    rptDoc.Load(source);
                    rptDoc.SetParameterValue("@IFPPSID", "1899582751211388");
                    rptDoc.SetParameterValue("@styleColorScheme", "10511658/13343077/10511658/13343077/16777215/15720656/16777215/15720656/24831/13426687|10511658/16777215/16777215/16777215/0/0/0/0/0/0");
                    rptDoc.SetParameterValue("@testID", "1");
                    CrystalDecisions.Shared.TableLogOnInfo logOnInfo = new CrystalDecisions.Shared.TableLogOnInfo();
                    foreach (CrystalDecisions.CrystalReports.Engine.Table objTable in rptDoc.Database.Tables)
                        logOnInfo.ConnectionInfo.IntegratedSecurity = true;
                        objTable.ApplyLogOnInfo(logOnInfo);
                    ExportOptions CrExportOptions = new ExportOptions();
                    DiskFileDestinationOptions crDiskFileDestinationOptions = new DiskFileDestinationOptions();
                    crDiskFileDestinationOptions.DiskFileName = destination;
                    CrExportOptions = rptDoc.ExportOptions;
                    CrExportOptions.DestinationOptions = crDiskFileDestinationOptions;
                    CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
                    CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
                    rptDoc.Export();

  • Getting java.sql.SQLException: Missing IN or OUT at index::9

    Hi,
    I am getting the following error while executing a call to a pl/sql procedure from an updateRow method inside a rowimpl file for an OA View.
    FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: Missing IN or OUT parameter at index:: 9;
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
    at oracle.apps.pa.progress.server.DlvrProgressDetailsVORowImpl.updateRow(DlvrProgressDetailsVORowImpl.java:1221)
    I have verified that the parameter passed are correct and there is nothing wrong with the values being passed,
    Can someone please assist me with this, is this a known issue ??
    Thanks,
    Anubhav

    Hi Anubhav,
    Did you forget to register the out parameter using the registerOutParameter?
    Regards
    Peter

  • ReportDocument.ExportToStream raises "Missing Parameter Values" exception

    Hi,
    I have a web app built using VS 2008 which runs many reports developed in CR 2008. Most of these reports take parameters and many have embedded subreports. Many of the reports can either be viewed directly or e-mailed. For the latter, I use ReportDocument.ExportToStream(ExportFormatType.PortableDocFormat) to export a PDF file which then gets attached to the e-mail.
    One set of reports works fine when viewed directly, but raises a "Missing Parameter Values" exception when I try to generate the PDF.  All the other reports, seemingly similar in most respects, including the number and type of parameters, work fine when calling ExportToStream.
    Here is the really strange part: the exception is spurious. I wrapped the whole thing in a try/catch block to better examine the exception, hoping to find which parameter value is actually missing.  I could not identify the missing parameter value, but once I handled the exception, the report runs fine and converts to PDF.
    Any hints as to what could be causing this problem?  It seems like a really bad hack to solve the problem using a try/catch in this way.
    Thanks.
    Dan

    Thanks for the quick response. Your code was very instructive, but did not help yet.  Here is what I have:
    (This response is too long for a single post, so I will split it and finish in the next post.)
    ReportDocument rptDoc = new ReportDocument();
    rptDoc.Load(strReportSourceFolder + strReportName + ".rpt");
    rptDoc.SetParameterValue("ClientID", lngKeyFieldID);
    rptDoc.SetParameterValue("Role", "Client");
    This is followed by an amazing chunk of code, provided to me by a guy at SAP Tech Support, who said it was necessary to pass database credentials programatically.  It iterates the tables in the ReportDocument and individually sets the LogonInfo. (I say "amazing" because it astounds me you have to jump through such hoops for something that should be routine and easy.)  The commented lines are just to help in debugging.
    ConnectionInfo conn = new ConnectionInfo();
    conn.ServerName = "myServer";
    conn.DatabaseName = "myDB";
    conn.UserID = "myUserID";
    conn.Password = "myPassword";
    Tables tables = rptDoc.Database.Tables;
    foreach (Table table in tables)
      //string str= table.TestConnectivity().ToString());
      TableLogOnInfo tableLogonInfo = table.LogOnInfo;
      tableLogonInfo.ConnectionInfo = conn;
      table.ApplyLogOnInfo(tableLogonInfo);
      //table.Location = table.Location;                        
    This is followed by the viewer stuff:
    CrystalReportViewer1.DisplayGroupTree = false;
    CrystalReportViewer1.DisplayToolbar = true;
    CrystalReportViewer1.HasToggleGroupTreeButton = false;
    CrystalReportViewer1.HasToggleParameterPanelButton = false;
    CrystalReportViewer1.Page.Title = strReportName;
    CrystalReportViewer1.ReportSource = rptDoc;
    Up to here, it works fine, displaying the report.  If the report is also to be e-mailed, the following is executed:
    if (bEmail)
      //  export to PDF, then mail that
      SmtpClient client = new SmtpClient();
      MailAddress from = new MailAddress(ConfigurationManager.AppSettings["ReportMailFrom"].ToString());
      MailMessage message = new MailMessage();
      message.From = from;
      message.SubjectEncoding = System.Text.Encoding.UTF8;
      message.Subject = "E-mail BackOffice report: " + strReportName;
      try
        foreach(ParameterField field in rptDoc.ParameterFields)
          Logger.LogEvent("test", "", field.ToString(), "Trace", null, true, true);
          Logger.LogEvent("test", "", "Name: " + field.Name, "Trace", null, false, false);
          Logger.LogEvent("test", "", "PromptText: " + field.PromptText, "Trace", null, false, false);
          Logger.LogEvent("test", "", "IsOptionalPrompt: " + field.IsOptionalPrompt, "Trace", null, false, false);
        MemoryStream memStream = (MemoryStream)rptDoc.ExportToStream(ExportFormatType.PortableDocFormat);
        Attachment data = new Attachment(memStream, MediaTypeNames.Application.Pdf);
        ContentDisposition disposition = data.ContentDisposition;
        disposition.CreationDate = DateTime.Now;
        disposition.ModificationDate = DateTime.Now;
        disposition.FileName = strReportName + ".pdf";
        disposition.DispositionType = DispositionTypeNames.Attachment;
        message.Attachments.Add(data);
      catch (Exception ex)
        Logger.LogEvent("error", "Page_Load", strReportName + " Exception: " + ex.Message, "Trace", null, true, true);
      //  ...  do the rest of the stuff to create & send the e-mail
    (The rest of this message will be in the following post.  Sorry it is so long.)

  • Missing parameter values while getting the RowsetCursor

    Hi,
    We are getting the below stack trace while getting the RowsetCursor from reportClientDocument. Please advice if are doing something wrong here or some alternate to get this working.
    //Exception Occured : com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Missing parameter values.---- Error code:-2147217394 Error code name:missingParameterValueError
    |1249487250|Exception occurred : Missing parameter values.
    |1249487250|StackTrace : com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Missing parameter values.---- Error code:-2147217394 Error code name:missingParameterValueError
            at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
            at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.RowsetController.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.RowsetController.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.RowsetCursor.a(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.RowsetCursor.getRowset(Unknown Source)
            at com.crystaldecisions.sdk.occa.report.application.RowsetController.createCursor(Unknown Source)
    The code we are using is as follows
    //Adding parameter
                                                 Fields pFields = new Fields();
              IParameterField parameterField = new ParameterField();
              parameterField.setName("PP");
              parameterField.setDescription("PPDesc");
              parameterField.setValueRangeKind(ParameterValueRangeKind.discrete);
              parameterField.setParameterType(ParameterFieldType.queryParameter);
              parameterField.setType(FieldValueType.stringField);
              parameterField.setAllowCustomCurrentValues(true);
              parameterField.setAllowMultiValue(false);
              parameterField.setAllowNullValue(false);          
              Values strValues = new Values();        
             ParameterFieldDiscreteValue pFDVStr = new ParameterFieldDiscreteValue();
             pFDVStr.setValue("myValue");
             strValues.add(pFDVStr);          
              parameterField.setDefaultValues(strValues);
              //parameterField.setCurrentValues(strValues);
              parameterField.getCurrentValues().clear();
              parameterField.getCurrentValues().add(pFDVStr);
              pFields.add(parameterField);
    //Adding the parameterised SQL to report as command table where {?PP} is a parameter
                                boNewCommandTable.setConnectionInfo(connectionInfo);
               boNewCommandTable.setCommandText(strSelect);
               boNewCommandTable.setName("MyCommandTable");
               boNewCommandTable.setParameters(pFields);
               try {
                    logger.debug(" adding query to report");
                    reportClientDocument.getDatabaseController().addTable(boNewCommandTable, null);
                    logger.debug(" done adding query to report");
               }catch(Exception e){
                    logger.fatal("query not set" + e);
                    throw e;
              reportClientDocument.getDatabaseController().logon(dbUid, dbPass);
              try {
                   reportClientDocument.verifyDatabase();
                   logger.debug("Database verified for ReportClientDocument");
              } catch (Exception e) {
                   logger.fatal("ReportSDKException Occurred " + e);
                   throw e;
    //Rowset                    
                        int rptRecordCount = 0;
              try{
                   RowsetMetaData rowsetMetadata = new RowsetMetaData();
                   Fields resultFields = reportClientDocument.getDataDefinition().getResultFields();
                   rowsetMetadata.setDataFields(resultFields);
                   RowsetCursor rowsetCursor = reportClientDocument.getRowsetController().createCursor(null, rowsetMetadata);
                   rptRecordCount = rowsetCursor.getRowset().getTotalRecordCount();
                   System.out.println("Processed: got rowset and report record count="+rptRecordCount+".");
              }catch(Exception ex){
                   logger.fatal("Exception Occured : " + ex);
                   ex.printStackTrace();
                   throw ex;

    Please post your SDK development questions to the Developers forum

  • Why do I get Missing Parameter Values error from CrystalReportViewer in VS2005

    Post Author: eseidel
    CA Forum: .NET
    Hi everyone,
    I have spent way to much time trying to figure this problem out and am getting no where now. I was hoping someone with more experience in CR for VS2005(I think v.9) and VS2005 may be able to help.  I have a report with 10 parameters that Im setting in code.  I have another 3 parameters in a subreport(with same names as 3 in main report) that are being pushed in(I hope) through my ApplyParams() method.  I have checked the output of each parameter before and after it is assigned in ApplyParams.  All values are being set....So why do I keep getting an error when I run it for Missing Parameter Values no matter what I do?  The error comes after SetDBLogonForReport(myConnectionInfo).  I have been struggling with this problem for almost 3 days now and have tried numerous approaches.  If I remove the subreport it works ok.  Why is subreport not getting parameters(I think this is where the problem stems from)?  Please any advice would be greatly appreciated.  Thank you. If need be I can e-mail the report but I don't know how much that will help without being able to access the datasources.
    Eric
    Code Snippet
    Private _Parameters As New System.Collections.Specialized.StringDictionary
    Public Property Parameters() As System.Collections.Specialized.StringDictionary
         Get
             Return (_Parameters)
         End Get
         Set(ByVal Value As System.Collections.Specialized.StringDictionary)
            If (Value Is Nothing Or _Parameters Is Nothing) Then Exit Property
            For Each entry As DictionaryEntry In Value
                _Parameters.Add(entry.Key, entry.Value)
            Next
       End Set
    End Property
    Private Sub SetParameters()
        Parameters("kiPerformance") = rptKi.ToString
        Parameters("PreparedBy") = rptPreparedBy
        Parameters("SupplierName") = rptSupplierName
        Parameters("Supplier") = rptSupplier  'Param in subreport too
        Parameters("ApprovedBy") = rptApprovedBy
        Parameters("kiPerformanceGoal") = rptKiThisGoal.ToString
        Parameters("kiForecastGoal") = rptKiForecast.ToString
        Parameters("kiNextGoal") = rptKiNextGoal.ToString
        Parameters("kiBegRange") = rptBegDate.ToString("d") 'Param in subreport too
        Parameters("kiEndRange") = rptEndDate.ToString("d") 'Param in subreport too
    End Sub
    Public Function ApplyParams()
        Me.SuspendLayout()
        Dim rpt As CrystalDecisions.CrystalReports.Engine.ReportDocument = _
        crv.ReportSource
        If (rpt Is Nothing OrElse _Parameters Is Nothing) Then Return False
        Dim crParameterFieldDefinitions As ParameterFieldDefinitions = rpt.DataDefinition.ParameterFields
         If (crParameterFieldDefinitions Is Nothing) Then Return False
         For Each crParameterFieldDefinition As ParameterFieldDefinition In crParameterFieldDefinitions
             If ((Not crParameterFieldDefinition.IsLinked) And _
                 _Parameters.ContainsKey(crParameterFieldDefinition.Name)) Then
                   Dim crParameterValues As ParameterValues = _
                   crParameterFieldDefinition.CurrentValues
                   If Not (crParameterValues Is Nothing) Then
                         Dim crParameterDiscreteValue As New ParameterDiscreteValue
                         crParameterDiscreteValue.Value =  _Parameters.Item(crParameterFieldDefinition.Name)
                         crParameterValues.Add(crParameterDiscreteValue)
                         'Console.WriteLine(crParameterFieldDefinition.Name & ": " & crParameterDiscreteValue.Value)
                        crParameterFieldDefinition.ApplyCurrentValues(crParameterValues)
                  End If
              End If
           Next
           crv.ReportSource = rpt
           Me.ResumeLayout()
           Return Nothing
    End Function
    Private Sub ConfigureCrystalReports()
            Dim myConnectionInfo As ConnectionInfo = New ConnectionInfo
            Dim pFields As New ParameterFields()
             Dim pField As New ParameterField()
             Dim disVal As New ParameterDiscreteValue()
             'Connection stuff,sorry I can't show you this part
             'Bind report
            rptCard = New ReportCard
           LoadDataSource()
           rptCard.SetDataSource(dsOcc)
           rptCard.Subreports("FailOcc").SetDataSource(dsOcc)  'Ive tried without this line as well
           rptCard.PrintOptions.PaperSize = PaperSize.Paper11x17
           rptCard.PrintOptions.PaperOrientation = PaperOrientation.Landscape
           crv.ReportSource = rptCard
           'Load parameters for report
           SetParameters()
           crv.RefreshReport()
           SetDBLogonForReport(myConnectionInfo)
    End sub
    Private Sub SetDBLogonForReport(ByVal conn As ConnectionInfo)
             Dim tableLogOnInfos As TableLogOnInfos = crv.LogOnInfo
             For Each myTableLogOnInfo As TableLogOnInfo In tableLogOnInfos
                  myTableLogOnInfo.ConnectionInfo = conn
             Next
    End Sub
    Private Sub crv_Error(ByVal source As Object, ByVal e As CrystalDecisions.Windows.Forms.ExceptionEventArgs) Handles crv.Error
          MsgBox(e.Exception.Message)
          e.Handled = True
    End Sub
    Private Sub crv_ReportRefresh(ByVal source As Object, ByVal e As CrystalDecisions.Windows.Forms.ViewerEventArgs) Handles crv.ReportRefresh
           ApplyParams()
    End Sub

    Post Author: mewdied
    CA Forum: .NET
    By any chance are the parameters in your subreport stored procedure parameters?
    There was a specific fix for stored procedure parameters available from:ftp://ftp1.businessobjects.com/outgoing/CHF/crnet20win32x86_en_chf.zip
    The specific fix is described in the readme under Problem ID # ADAPT00532856

Maybe you are looking for

  • Source of Supply for SNP Planned Order

    Hi All, I have a situation where we are feeding SNP planned orders using /sapapo/lcin (Time series to Order Network). When we use this transaction SNP planned orders are created in SNP but PDS is not attached to such orders. I would like to know how

  • Ipod won't sync with songs on Itunes

    I just recently bought a laptop and it has Windows Vista 64 bit (Home Premium). I was able to sync the Ipod (40GB 4th Gen) with the laptop as far as transferring purchases. But I can't get the Ipod to sync as far as taking songs from Itunes and putti

  • Generate a MS Word report from PDF Form

    Is there a way to generate a MS Word file output from the contents of a PDF form? Background: Back in the days when Acrobat Pro was packaged with LiveCycle Design for PDF form development, I created a very extensive document that walked the reader th

  • How to get keyboard to act like windows

    I have bootcamp installed with a copy of windows on a macbook pro. When I'm in the windows mode the keyboard will not function like windows. It is still set up for apple. Can I change this? Thanks Jeff

  • List the base tables of a view

    Hi All, I have a view but I do not have any information about the base tables and the query that was used to set up this view. Is there a way to atleast list the base tables on which the view was created! Thanks in advance! ~