Missing IN or OUT  parameters randomly

Hi,
I got the error "Missing IN or OUT parameters".
The bind variable setting was already set according to the suggestion found in the internet. However, the error is persisted. As I checked in the log file, the query executed are different between when there was no error and when the error occured even though it is the same action and the same code.
Is there anybody experienced this problem? Why are the query different and how can I fix this?
Thanks.
nat...
Note: Below are parts of log detail....
This is the query when it is ok...
SELECT * FROM (SELECT
CoverageEO.CLAIM_ID,
CoverageEO.CONTRACT_ID,
CoverageEO.COVERAGE_REF_ID,
CoverageEO.VERSION_NO,
CoverageEO.COVERAGE_CODE,
CoverageEO.COVERAGE_TYPE,
CoverageEO.EFFECTIVE_DATE,
CoverageEO.EXPIRE_DATE,
CoverageEO.POLICY_REF,
CoverageEO.MEMBER_PARTNER_ID,
CoverageEO.SALARY,
CoverageEO.MEMBER_POLICY_STATUS,
CoverageEO.MEMBER_INCEPTION_DATE,
CoverageEO.PLAN_INT_ID,
CoverageEO.COMP_PARTNER_ID,
CoverageEO.COMP_CONTRACT_ID,
CoverageEO.COMP_POLICY_REF,
CoverageEO.COMP_STATUS,
CoverageEO.COMP_STATUS_DATE,
CoverageEO.COMP_FIRST_EFF_DATE,
CoverageEO.WAITING_PERIOD,
CoverageEO.WAITING_PERIOD_UNIT,
CoverageEO.TRANSFER_DATE,
CoverageEO.TRANSFER_FLAG,
CoverageEO.LIVING_CLM_PAY_TO,
CoverageEO.LIVING_CLM_PAYMENT_METHOD,
CoverageEO.DEATH_CLM_PAY_TO,
CoverageEO.DEATH_CLM_PAYMENT_METHOD,
CoverageEO.REFUND_PREM_PAY_TO,
CoverageEO.REFUND_PREM_PAYMENT_METHOD,
CoverageEO.ER_PAY_TO,
CoverageEO.ER_PAYMENT_METHOD,
CoverageEO.CONTINUOUS_DAYS,
CoverageEO.ELIGIBLE_STATUS_INITIAL,
CoverageEO.ELIGIBLE_STATUS,
CoverageEO.TOTAL_ACTUAL_AMOUNT,
CoverageEO.TOTAL_APPROVED_AMOUNT,
CoverageEO.TOTAL_NET_APPROVED_AMOUNT,
CoverageEO.TOTAL_EXCEED_AMOUNT,
CoverageEO.TOTAL_EXCEED_PAID_TO_MSP,
CoverageEO.TOTAL_EXCEED_NOT_PAID,
CoverageEO.NOT_COVER_ACTUAL_AMOUNT,
CoverageEO.NOT_COVER_EXCEED_AMOUNT,
CoverageEO.TOTAL_CO_INS_AMOUNT,
CoverageEO.TOTAL_COPAY_AMOUNT,
CoverageEO.TOTAL_FDD_AMOUNT,
CoverageEO.DECISION_STATUS,
CoverageEO.DECISION_DATE,
CoverageEO.DECISION_BY,
CoverageEO.PAYMENT_STATUS,
CoverageEO.CONT_CLM_GRP,
CoverageEO.CONT_PARENT_CLAIM_ID,
CoverageEO.CREATED_BY,
CoverageEO.CREATED_DATE,
CoverageEO.LAST_UPDATED_BY,
CoverageEO.LAST_UPDATED_DATE,
CoverageEO.TOP_INDICATOR,
CoverageEO.COVER_END_DATE,
CoverageEO.COVER_START_DATE,
CoverageEO.AGENT_CODE1,
CoverageEO.AGENT_CODE2,
CoverageEO.NEXT_DUE_DATE,
CoverageEO.CREDIT_TERM,
CoverageEO.CYCLE_END_DATE,
CoverageEO.CYCLE_START_DATE,
CoverageEO.VALID_DATE_FLAG,
CoverageEO.IS_CONTINUOUS,
CoverageEO.BENEFIT_AMOUNT,
CoverageEO.NET_PAID_AMOUNT,
CoverageEO.REMARK_CUSTOMER,
CoverageEO.REMARK_MSP,
CoverageEO.POLICY_YEAR,
CoverageEO.NOT_COVER_EXCEED_FLAG,
CoverageEO.FDD_EXCEED_AMOUNT,
CoverageEO.FDD_EXCEED_FLAG,
CoverageEO.CO_INS_EXCEED_AMOUNT,
CoverageEO.CO_INS_EXCEED_FLAG,
CoverageEO.COPAY_EXCEED_AMOUNT,
CoverageEO.COPAY_EXCEED_FLAG,
CoverageEO.FDD_AMOUNT,
CoverageEO.CO_INS_PERCENT,
CoverageEO.CO_INS_AMOUNT,
CoverageEO.COPAY_AMOUNT,
CoverageEO.EXCEED_REASON,
CoverageEO.EXCEED_REASON_OTH
, (SELECT U.ASSESSOR_ID FROM ECS_USERS U
WHERE LOWER(CoverageEO.DECISION_BY) = LOWER(U.USERNAME)) ASSESSOR_ID
FROM
GCS_T_COVERAGE CoverageEO
ORDER BY
CoverageEO.CLAIM_ID, CoverageEO.POLICY_REF, CoverageEO.COVERAGE_CODE) QRSLT WHERE CLAIM_ID = :Bind_ClaimId
This is the query when we got the error...
SELECT * FROM (SELECT
CoverageEO.CLAIM_ID,
CoverageEO.CONTRACT_ID,
CoverageEO.COVERAGE_REF_ID,
CoverageEO.VERSION_NO,
CoverageEO.COVERAGE_CODE,
CoverageEO.COVERAGE_TYPE,
CoverageEO.EFFECTIVE_DATE,
CoverageEO.EXPIRE_DATE,
CoverageEO.POLICY_REF,
CoverageEO.MEMBER_PARTNER_ID,
CoverageEO.SALARY,
CoverageEO.MEMBER_POLICY_STATUS,
CoverageEO.MEMBER_INCEPTION_DATE,
CoverageEO.PLAN_INT_ID,
CoverageEO.COMP_PARTNER_ID,
CoverageEO.COMP_CONTRACT_ID,
CoverageEO.COMP_POLICY_REF,
CoverageEO.COMP_STATUS,
CoverageEO.COMP_STATUS_DATE,
CoverageEO.COMP_FIRST_EFF_DATE,
CoverageEO.WAITING_PERIOD,
CoverageEO.WAITING_PERIOD_UNIT,
CoverageEO.TRANSFER_DATE,
CoverageEO.TRANSFER_FLAG,
CoverageEO.LIVING_CLM_PAY_TO,
CoverageEO.LIVING_CLM_PAYMENT_METHOD,
CoverageEO.DEATH_CLM_PAY_TO,
CoverageEO.DEATH_CLM_PAYMENT_METHOD,
CoverageEO.REFUND_PREM_PAY_TO,
CoverageEO.REFUND_PREM_PAYMENT_METHOD,
CoverageEO.ER_PAY_TO,
CoverageEO.ER_PAYMENT_METHOD,
CoverageEO.CONTINUOUS_DAYS,
CoverageEO.ELIGIBLE_STATUS_INITIAL,
CoverageEO.ELIGIBLE_STATUS,
CoverageEO.TOTAL_ACTUAL_AMOUNT,
CoverageEO.TOTAL_APPROVED_AMOUNT,
CoverageEO.TOTAL_NET_APPROVED_AMOUNT,
CoverageEO.TOTAL_EXCEED_AMOUNT,
CoverageEO.TOTAL_EXCEED_PAID_TO_MSP,
CoverageEO.TOTAL_EXCEED_NOT_PAID,
CoverageEO.NOT_COVER_ACTUAL_AMOUNT,
CoverageEO.NOT_COVER_EXCEED_AMOUNT,
CoverageEO.TOTAL_CO_INS_AMOUNT,
CoverageEO.TOTAL_COPAY_AMOUNT,
CoverageEO.TOTAL_FDD_AMOUNT,
CoverageEO.DECISION_STATUS,
CoverageEO.DECISION_DATE,
CoverageEO.DECISION_BY,
CoverageEO.PAYMENT_STATUS,
CoverageEO.CONT_CLM_GRP,
CoverageEO.CONT_PARENT_CLAIM_ID,
CoverageEO.CREATED_BY,
CoverageEO.CREATED_DATE,
CoverageEO.LAST_UPDATED_BY,
CoverageEO.LAST_UPDATED_DATE,
CoverageEO.TOP_INDICATOR,
CoverageEO.COVER_END_DATE,
CoverageEO.COVER_START_DATE,
CoverageEO.AGENT_CODE1,
CoverageEO.AGENT_CODE2,
CoverageEO.NEXT_DUE_DATE,
CoverageEO.CREDIT_TERM,
CoverageEO.CYCLE_END_DATE,
CoverageEO.CYCLE_START_DATE,
CoverageEO.VALID_DATE_FLAG,
CoverageEO.IS_CONTINUOUS,
CoverageEO.BENEFIT_AMOUNT,
CoverageEO.NET_PAID_AMOUNT,
CoverageEO.REMARK_CUSTOMER,
CoverageEO.REMARK_MSP,
CoverageEO.POLICY_YEAR,
CoverageEO.NOT_COVER_EXCEED_FLAG,
CoverageEO.FDD_EXCEED_AMOUNT,
CoverageEO.FDD_EXCEED_FLAG,
CoverageEO.CO_INS_EXCEED_AMOUNT,
CoverageEO.CO_INS_EXCEED_FLAG,
CoverageEO.COPAY_EXCEED_AMOUNT,
CoverageEO.COPAY_EXCEED_FLAG,
CoverageEO.FDD_AMOUNT,
CoverageEO.CO_INS_PERCENT,
CoverageEO.CO_INS_AMOUNT,
CoverageEO.COPAY_AMOUNT,
CoverageEO.EXCEED_REASON,
CoverageEO.EXCEED_REASON_OTH
, (SELECT U.ASSESSOR_ID FROM ECS_USERS U
WHERE LOWER(CoverageEO.DECISION_BY) = LOWER(U.USERNAME)) ASSESSOR_ID
FROM
GCS_T_COVERAGE CoverageEO
ORDER BY
CoverageEO.CLAIM_ID, CoverageEO.POLICY_REF, CoverageEO.COVERAGE_CODE) QRSLT WHERE ((CLAIM_ID = :Bind_ClaimId) AND CLAIM_ID = :fbkKy__0 AND CONTRACT_ID = :fbkKy__1 AND COVERAGE_REF_ID = :fbkKy__2 AND VERSION_NO = :fbkKy__3)
<ViewObjectImpl> <bindParametersForCollection> [5143] (0) ViewObjectImpl.bindParametersForCollection(21441) Bind params for ViewObject: [com.aacp.gcs.vo.base.CoverageVO]ClaimAssessmentAM.CoverageVO_1046_findByKey_
<OracleSQLBuilderImpl> <bindParamValue> [5144] (0) OracleSQLBuilderImpl.bindParamValue(4657) Binding param "fbkKy__0": 372610
<OracleSQLBuilderImpl> <bindParamValue> [5145] (0) OracleSQLBuilderImpl.bindParamValue(4657) Binding param "fbkKy__1": 1986116
<OracleSQLBuilderImpl> <bindParamValue> [5146] (0) OracleSQLBuilderImpl.bindParamValue(4657) Binding param "fbkKy__2": 19749
<OracleSQLBuilderImpl> <bindParamValue> [5147] (0) OracleSQLBuilderImpl.bindParamValue(4657) Binding param "fbkKy__3": 1
It seems :Bind_ClaimId variable is missing but all :fbkKy__x variables are binded.

Hi Frank,
Already run the application in the debug mode and got log files. The long queries posted here were from the log files. That's why I saw the queries executed when the error occurred and when there was no error were different.
When there was no error, the sql statement invoked had only 1 variable and it was binded correctly. But when the error occurred, the system used the different sql statement with 4 variables and no value assigned to the Bind_ClaimId variable.
I wonder why the sql statement executed from the same action and the same code are different. What is the constraint/ condition for the system to generate the sql statement? Is it related to view link or data model in AM? How to fix this?
Thanks.
nat...

Similar Messages

  • Missing IN or OUT parameters error -filtering treeModel using VL Accessor

    Hi All ,
    jdev 11.1.1.6 , ADF BC
    I am trying to filter a leaf node of a tree hierarchy using Frank's example @ Pg 12 - http://www.oracle.com/technetwork/developer-tools/adf/learnmore/feb2011-otn-harvest-328207.pdf
    I try to do this in a AM method -
    if (r != null) { RowSet rs = (RowSet)r.getAttribute("EmployeesView");
    if (rs != null) { ViewObject accessorVO = rs.getViewObject();
    //applyViewCriteria on accessorVO now...But somehow after I get the ViewObject the ViewLink paramValues become null due to which I get the error
    java.sql.SQLException: Missing IN or OUT parameter at index:: 2after I do accessorVO.executeQuery()...
    I also see a message immediately after I get the accessorVO in the code bit mentioned above
    <accessor VO name via ViewLink reference> ViewRowSetImpl.setParamValues params changed.The Rowset rs has the params in it when I inspect the same :(
    Can anyone help with what I am missing.

    Anybody has any idea?
    The only difference is probably that I am trying to show this in the below tree-like structure instead of a actual af:treeTable.
    <af:iterator id="i1" value="#{bindings.LocationsView1.collectionModel}"
                         var="locRow">
              <af:outputText value="#{locRow.City}" id="ot2"/>
    <af:iterator id="i2" value="#{locRow.children}" var="deptRow">
                <af:outputText value="#{deptRow.DepartmentName}" id="outputText1"/>
    <af:table value="#{deptRow.children}"
                          var="row" rowSelection="single" id="t1">
                  <af:column sortProperty="FirstName" sortable="false"
                             headerText="#{bindings.EmployeesView1.hints.FirstName.label}"
                             id="c1">
                    <af:outputText value="#{row.FirstName}" id="ot1"/>
                  </af:column>
                </af:table>
              </af:iterator>I am basically trying to filter the Departments i.e. 2nd node .. TreeBinding in page definition has been configured properly.
    I am able to replicate this for a simple Loc-Dept-Emp hierarchy.
    https://docs.google.com/file/d/0B_z-FVMhYSKPQ0FQTDF0ZUdSdHc/edit?pli=1 (Uploaded rar file . Select File -> Download)
    Is this a bug ?
    Can we workaround this ...
    highly appreciate any help.

  • I have copied my iTunes library onto a new computer, but when I play back the songs there seems to be random "miss" or "drop out".  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    I have copied my iTunes library onto a new computer, but when I play back the songs using the new computer, there seems to be random "miss" or "drop out" during play back, similar to a small scratch on a vinyl record.  Although when I play the same song over again, the "miss" occurs in a different location during the song.  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    You don't say which version of iTunes you are using, but the symptoms you describe have been encountered by some users with the 64-bit version of iTunes 12.1.
    There is an alternative version for 64-bit editions of Windows here:
    iTunes 12.1 for Windows (64-bit — for older video cards)
    that seems to address the most of the playback issues that some users have been reporting with the full 64-bit version of 12.1.0.77 - including problems with Bluetooth speakers where either sound is degraded or completely absent.  The alternative installer here is the same architecture as most previous "64-bit" versions of iTunes, i.e., a 32-bit application with a 64-bit installer.  The "for older video cards" label appears to be something of a misnomer as some people have reported that this corrects problems found on current / high-spec systems.
    Some users have reported that after installing this alternative version it is necessary to adjust the "Play audio using" selection (normally to "Direct Sound" rather than "Windows Audio Session", though this may vary based on your audio hardware/drivers) in Edit > Preferences > Playback to restore glitch-free audio (one part of the reported symptoms is that the "Direct Sound" choice isn't available, usually in Windows 8).  It may also be necessary to ensure that your Bluetooth speakers are active and selected as the default audio device before you run iTunes.
    If this doesn't address the issue, you may want to think about reverting to iTunes 12.0 - see Turingtest2's notes on Troubleshooting issues with iTunes for Windows updates for steps needed to completely remove all installed iTunes components, and for links to the 12.0 installers.

  • Export To Excel - Missing IN or OUT parameter at index:: 1

    Hi All,
    I have designed new OAF search page along with Export to Excel button on Result table but after search event when i try to export the data into Excel using inbuilt "Export to Excel" btn feature, I am getting below exception. How can I resolve this exception ..I have added search parameters programmatically in code and it also wrking.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT DISTINCT CONTRACT_ID, SERIAL_NUM,
    SITE_NAME, MODEL_ID,
    MODEL_VER, PROCESS_STATUS,
    DECODE(PROCESS_STATUS,'ERRORED','OraErrorText', 'SUCCESS', 'OraTipLabel' )AS FONT_COLOR
    FROM GEPS_ICAM_SCHEDULE) QRSLT WHERE (CONTRACT_ID = :1 AND MODEL_ID = :2 AND SERIAL_NUM = :3 AND SITE_NAME = :4 AND PROCESS_STATUS = :5)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2680)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1683)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:82)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    java.sql.SQLException: Missing IN or OUT parameter at index:: 1
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
         at oracle.jdbc.driver.OracleStatement.checkBindsInAndOut(OracleStatement.java:2000)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2924)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4481)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
         at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:613)
         at oracle.apps.fnd.framework.webui.OAExportHelper.getRegionResults(OAExportHelper.java:737)
         at oracle.apps.fnd.framework.webui.OAExportHelper.getPageResults(OAExportHelper.java:454)
         at oracle.apps.fnd.framework.webui.OAExportHelper.processFormRequest(OAExportHelper.java:306)
         at oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean.processFormRequest(OASubmitButtonBean.java:515)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAFlowLayoutBean.processFormRequest(OAFlowLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1037)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OATableHelper.processFormRequest(OATableHelper.java:404)
         at oracle.apps.fnd.framework.webui.beans.table.OATableBean.processFormRequest(OATableBean.java:1053)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2676)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1683)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at oa_html._OA._jspService(_OA.java:82)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:385)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:178)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:619)
    Thanks
    Yogesh

    Thanks Kumar for reply ..but I already handled it thru programmatically and we dont do this for "Export to Excel" button.. It automatically extract result data from the attached VO ....The thing that I dont understand is the binding exception upon "Export to excel" button selection..
    Just fyi .. have used below query to get result data in VOImpl ..
    public void initScheduleSearch(String strContractNum,
    String strModelId,
    String strSerialNum,
    String strSiteName,
    String strScheduleStatus
    this.setQuery("");
    StringBuffer whereClause = null;
    try
    whereClause = new StringBuffer(1000);
    Vector parameters = new Vector(6);
    int clauseCount = 0;
    int bindCount = 0;
    setWhereClauseParams(null); // Always reset
    if ((strContractNum != null) && (!("".equals(strContractNum.trim()))))
    whereClause.append(" CONTRACT_ID = :");
    whereClause.append(++bindCount);
    parameters.addElement(strContractNum);
    clauseCount++;
    else
    whereClause.append(" CONTRACT_ID IS NULL");
    clauseCount++;
    if((strModelId != null) && (!("".equals(strModelId.trim()))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" MODEL_ID = :");
    whereClause.append(++bindCount);
    parameters.addElement(strModelId);
    clauseCount++;
    } else
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" MODEL_ID IS NULL");
    clauseCount++;
    if ((strSerialNum != null) && (!("".equals(strSerialNum.trim()))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SERIAL_NUM = :");
    whereClause.append(++bindCount);
    parameters.addElement(strSerialNum);
    clauseCount++;
    }else
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SERIAL_NUM IS NULL");
    clauseCount++;
    if ((strSiteName != null) && (!("".equals(strSiteName.trim()))))
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SITE_NAME = :");
    whereClause.append(++bindCount);
    parameters.addElement(strSiteName);
    clauseCount++;
    else
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" SITE_NAME IS NULL");
    clauseCount++;
    if (!"ALL".equals(strScheduleStatus) && !"".equals(strScheduleStatus) &&
    null!= strScheduleStatus)
    System.out.println(" After strScheduleStatus" + strScheduleStatus );
    if (clauseCount > 0)
    whereClause.append(" AND ");
    whereClause.append(" PROCESS_STATUS = :");
    whereClause.append(++bindCount);
    parameters.addElement(strScheduleStatus);
    clauseCount++;
    setWhereClause(whereClause.toString());
    if (bindCount > 0)
    Object[] params = new Object[bindCount];
    parameters.copyInto(params);
    setWhereClauseParams(params);
    this.executeQuery();
    catch(OAException e)
    if(isLoggingEnabled(1))
    return;
    finally
    whereClause.delete(0,whereClause.length());
    whereClause = null;
    setWhereClauseParams(null);
    this.setQuery("");
    }

  • OAF - Missing In or Out Parameter at Index Error

    Hello,
    Here below is my requirement
    I have developed a custom OAF page which queries a list of suppliers from a custom table. I have a button at the bottom of the table which. when clicked should query the SEEDED supplier page (this page is same as the supplier page accessed from the Payables Manager responsibility -> Suppliers -> Supplier Entry/Inquiry -> query any supplier -> the first page that shows up is the QuickUpdatePG). I want to pass parameters to this seeded QuickUpdatePG page with the values selected in my custom OAF Page. I am using SetForwardURL with little luck. Here below is the code I have tried to use and this code is in the CO of my custom page (ProcessFormRequest)
    -- The below code works but doesn't query the supplier in the destination page
    pageContext.setForwardURL(
    "POS_HT_SP_B_QUK_UPD" //"AP_APXVDMVD"
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null
    ,h
    ,true
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    StringBuffer whereclause = new StringBuffer(100);
    OAViewObject suppview = (OAViewObject)am.findViewObject("SuppSummVO");
    SuppSummVOImpl suppvo = (SuppSummVOImpl)am.getSuppSummVO1();
    SuppSummVORowImpl suppvorow = (SuppSummVORowImpl)suppvo.getCurrentRow();
    whereclause.append( "1=1 and Vendor_name="+"'"vorow.getSupplierName()"'");
    whereclause.append(" and segment1 = "+"'"vorow.getSupplierNumber()"'");
    suppvo.setWhereClause(whereclause.toString());
    System.out.println ("Query is "+suppvo.getQuery());
    suppvo.executeQuery();
    suppvo.createRow();
    suppvo.setCurrentRow(suppvorow);
    -- I searched forums and also the OAF Dev Guide and have tried this code below. This raises the error as "Missing IN or OUT parameter at index:: 2" I am unable to find a fix for this
    pageContext.setForwardURL(
    "POS_HT_SP_B_QUK_UPD" //"AP_APXVDMVD"
    ,OAWebBeanConstants.KEEP_MENU_CONTEXT
    ,null
    ,h
    ,true
    ,OAWebBeanConstants.ADD_BREAD_CRUMB_NO
    ,OAWebBeanConstants.IGNORE_MESSAGES);
    Vector parameters = new Vector (1);
    int bindCount = 0;
    int clauseCount = 0;
    OAViewObject suppliervo = (OAViewObject)am.getVendorsVO1();
    suppliervo.setWhereClauseParams(null);
    StringBuffer whereclause = new StringBuffer(100);
    whereclause.append("Vendor_id = :");
    whereclause.append(++bindCount);
    parameters.addElement(vorow.getVendorId());
    clauseCount++;
    suppliervo.setWhereClause(whereclause.toString());
    if (bindCount > 0){
    Object[] params = new Object[1];
    params.toString();
    parameters.copyInto(params);
    System.out.println("value again is "+parameters.get(0));
    suppliervo.setWhereClauseParams(params);
    } else {
    System.out.println("");
    suppliervo.executeQuery();
    The seeded page takes 1 parameter (Vendor ID) to query the details. I am passing the details of Vendor ID using Vector and setWhereClauseParams. The where clause of the page is as below
    select co1, col2, col3.....from po_vendors pv, ap_awt_groups aag,
    ap_awt_groups pay_aag
    , rcv_routing_headers rcpt
    , fnd_currencies_tl fct
    , fnd_currencies_tl pay
    , fnd_lookup_values pay_group
    , ap_terms_tl terms
    , po_vendors parent
    , per_employees_current_x emp
    , hz_parties hp
    , AP_INCOME_TAX_TYPES aptt
    , per_all_people_f papf
    where pv.vendor_id = :1
    and pv.party_id = hp.party_id
    and pv.parent_vendor_id = parent.vendor_id
    and pv.awt_group_id = aag.group_id
    and pv.pay_awt_group_id = pay_aag.group_id
    and pv.RECEIVING_ROUTING_ID = rcpt.ROUTING_HEADER_ID(+)
    and fct.language = userenv('lang')
    and pay.language (+)= userenv('lang')
    and pv.invoice_currency_code = fct.currency_code
    and pv.payment_currency_code = pay.currency_code
    and
    pv.pay_group_lookup_code = pay_group.lookup_code
    and pay_group.lookup_type (+)='PAY GROUP'
    and pay_group.language (+)=userenv('lang')
    and pv.terms_id = terms.term_id
    and terms.language = userenv('LANG')
    and terms.enabled_flag ='Y'
    and pv.employee_id = emp.employee_id
    and pv.employee_id = papf.person_id
    and pv.type_1099 = aptt.income_tax_type (+)) QRSLT WHERE (Vendor_id = :1)
    My doubt is should the :1 have the actual value passed or is the query built righly. At the end of this query is the error that says "java.sql.SQLException: Missing IN or OUT parameter at index:: 2"
    Any help is highly appreciated.
    Please let me know if any additional information is needed to have a better idea about the issue I am facing.
    Thanks,
    Sudhamsu

    Hi Sudhamsu,
    This error is coming becoz ur using same bind variable :1 in the VO query.
    extend the VO and use different bind variabale like (:1,:2);
    and pass the parameters using setWhereClauseParames in CO..it will fix the issue.
    Thanks
    GK

  • Procedure multiple out parameters into a cursor

    Hi,
    I have a procedure that returns multiple out parameters.  How do I combine those and return as a cursor?
    Here is the procedure I use (modified for forums)
    PROCEDURE SAMPLEPROCEDURE
    (in_param1 IN NUMBER,
    in_param2   IN VARCHAR2,
    output_ONE   IN VARCHAR2,
    output_TWO   IN VARCHAR2,
    output_THREE   IN VARCHAR2,
    output_FOUR   IN VARCHAR2,
    output_FIVE   IN VARCHAR2,
    output_SIX   IN VARCHAR2,
    IS
    BEGIN
          output_one := 'YAH!';
         SELECT count(*) into output_TWO FROM   tablea WHERE  tablea.columnB = in_param1;
         IF (variable1 = 0) THEN
            output_one := 'SOMETHING MISSING';
            RETURN;
         END IF;
          SELECT count(*) into CHECKINGACCOUNT_COUNT from ACCOUNT WHERE   TABLE = in_param1 AND  ACCOUNT.TYPE = 'CHECKING';
       IF  (CHECKINGACCOUNT_COUNT <> 0) then
      SELECT count(*) into output_THREE FROM   tableB WHERE  tableB.columnB = in_param1;
      SELECT columnC into output_FOUR FROM   tableC WHERE  tableC.columnC = in_param1;
      SELECT SUM(columnD) into output_FIVE FROM   tableD WHERE  tableD.columnD = in_param1;
       if(output_FIVE >= input_param2) then
      output_FIX := 'RETURN VALUE';
       end if;
    END IF;
    end SAMPLEPROCEDURE;

    Should Use 'OUT' for Output parameter instead of 'IN' in your procedure, its wrong.
    For fetching more than one row from procedure, use REFCURSOR.
    Follow the Code:
    CREATE OR REPLACE PROCEDURE proc_cursor (in_n_sal   
    IN
    NUMBER,
    ov_n_sumsal   
    OUT NUMBER,
    ov_n_empno    
    OUT sys_refcursor,
    ov_cr_details 
    OUT sys_refcursor)
    AS
    BEGIN
       SELECT   SUM (sal)
    INTO   ov_n_sumsal
    FROM   emp
    WHERE   sal = in_n_sal; /*here , the query returns only one row*/
    open ov_n_empno for
       SELECT   empno
    FROM   emp
    WHERE   sal = in_n_sal;/*here the query may return more than one row , so i used refcursor for fetching the result set*/
    open ov_cr_details for
       SELECT   SUM (sal), empno
    FROM   emp
    WHERE   sal = in_n_sal
    group by empno;/*here also i used refcursor , to achieve more than one row and two more columns result set*/
    END;
    EXECUTION:
    SQL> variable  OV_N_SUMSAL number;
    SQL> variable OV_N_EMPNO number;
    SQL> variable OV_N_EMPNO refcursor;
    SQL> variable OV_CR_DETAILS refcursor;
    SQL> EXECUTE PROC_CURSOR ( 800, :OV_N_SUMSAL, :OV_N_EMPNO, :OV_CR_DETAILS );
    PL/SQL procedure successfully completed.
    SQL> PRINT OV_N_SUMSAL;
    OV_N_SUMSAL
           1600
    SQL> PRINT OV_N_EMPNO;
         EMPNO
          1888
          1239
    SQL> PRINT OV_CR_DETAILS;
      SUM(SAL)      EMPNO
           800       1888
           800       1239
    SQL>
    I hope this one will help you.

  • How to get multiple out parameters from a pl/sql stored procedure in ADF Jdeveloper 11g release2

    I´m trying to call from AppModuleImpl a stored procedure from my oracle DB which receives one input parameter and returns 5 out parameters. 
    I´m using jdeveloper 11g release2  ADF and I have created a java bean "ProRecallPlatesBean " with the atributes and accesors and I serialize it. just like in this article http://docs.oracle.com/cd/E24382_01/web.1112/e16182/bcadvgen.htm#sm0297
    This is my code so far:
    public ProRecallPlatesBean getCallProRecallPlates(String numPlates) {
    CallableStatement st = null;
    try {
              // 1. Define the PL/SQL block for the statement to invoke
              String stmt = "begin CTS.Pk_PreIn.proRecallPlates(?,?,?,?,?,?); end;";
              // 2. Create the CallableStatement for the PL/SQL block
              st = getDBTransaction().createCallableStatement(stmt,0);
              // 3. Register the positions and types of the OUT parameters
              st.registerOutParameter(2,Types.VARCHAR);
    st.registerOutParameter(3,Types.VARCHAR);
    st.registerOutParameter(4,Types.VARCHAR);
    st.registerOutParameter(5,Types.VARCHAR);
    st.registerOutParameter(6,Types.VARCHAR);
    // 4. Set the bind values of the IN parameters
    st.setString(1,numPlates);
    // 5. Execute the statement
    st.executeUpdate();
    // 6. Create a bean to hold the multiple return values
    ProRecallPlatesBean result = new ProRecallPlatesBean();
    // 7. Set values of properties using OUT params
    result.setSpfVal(st.getString(2));
    result.setTransportTypeVal(st.getString(3));
    result.setTransportCompanyVal(st.getString(4));
    result.setCompanyDescrVal(st.getString(5));
    result.setDGAPrint(st.getString(6));
    // 8. Return the result
    return result;
    } catch (SQLException e) {
    throw new JboException(e);
    } finally {
    if (st != null) {
    try {
    // 9. Close the JDBC CallableStatement
    st.close();
    catch (SQLException e) {}
    In Jdeveloper I went into AppModule.xml JAVA>Client Interface section and expose "getCallProRecallPlates" Then I can see "getCallProRecallPlates" in Data Controls, I drag and drop it to a JSF page, an input text component and a button are generated in order to put in there the procedure input parameter (numPlates).
    I don't know if I'm on the right track.
    When I click the button, the "result" variable is supposed to be filled with data from the stored procedure. I want each of those values to be displayed in Output text or input text adf components but I dont know how. Thank you very much in advance I´m a newbie and i'll appreciate your help!

    What version are you on?
    Works fine for me on my 11g:
    SQL> create or replace procedure testxml (clob_out out clob)
      2  is
      3     l_clob   clob;
      4     l_ctx    dbms_xmlquery.ctxhandle;
      5  begin
      6     l_ctx := dbms_xmlquery.newcontext ('select * from dual');
      7     l_clob := dbms_xmlquery.getxml (l_ctx);
      8     clob_out := l_clob;
      9     dbms_xmlquery.closecontext (l_ctx);
    10  end testxml;
    11  /
    Procedure created.
    SQL>
    SQL> variable vout clob;
    SQL>
    SQL> exec testxml (:vout)
    PL/SQL procedure successfully completed.
    SQL>
    SQL> print vout
    VOUT
    <?xml version = '1.0'?>
    <ROWSET>
       <ROW num="1">
          <DUMMY>X</DUMMY>
       </ROW>
    </ROWSET>But definitely you can optimize your proc a bit: Try
    create or replace procedure testxml (clob_out in out nocopy clob)
    is
       l_ctx    dbms_xmlquery.ctxhandle;
    begin
       l_ctx := dbms_xmlquery.newcontext ('select * from dual');
       clob_out := dbms_xmlquery.getxml (l_ctx);
       dbms_xmlquery.closecontext (l_ctx);
    end testxml;
    /

  • Is there a way to dynamically determine the number of out parameters for a server side procedure?

    Hi,
    Below is a helper method used for calling a server-side function which loops through the inbound bindVars parameter to populate the function's IN parameters. Is there a way to dynamically determine the IN/OUT parameters based on the procedure name in the stmt parameter? No members of the CallableStatement class seemed promising, but the getParameterMetaData() method in the PreparedStatement class seemed like it could be helpful lead. However, I have not found any detailed descriptions (yet) of how to use it.
    protected Object callStoredFunction(int sqlReturnType, String stmt,
      Object[] bindVars) {
      CallableStatement st = null;
      try {
      // 1. Create a JDBC CallabledStatement 
      st = getDBTransaction().createCallableStatement(
      "begin ? := "+stmt+";end;",0);
      // 2. Register the first bind variable for the return value
      st.registerOutParameter(1, sqlReturnType);
      if (bindVars != null) {
      // 3. Loop over values for the bind variables passed in, if any
      for (int z = 0; z < bindVars.length; z++) {
      // 4. Set the value of user-supplied bind vars in the stmt
      st.setObject(z + 2, bindVars[z]);
      // 5. Set the value of user-supplied bind vars in the stmt
      st.executeUpdate();
      // 6. Return the value of the first bind variable
      return st.getObject(1);
      catch (SQLException e) {
      throw new JboException(e);
      finally {
      if (st != null) {
      try {
      // 7. Close the statement
      st.close();
      catch (SQLException e) {}
    James

    The PreparedStatement.getParameterMetaData() object is exactly what you need for this task.
    Once you have the ParameterMetaData you can ask it how many parameters are present and which mode they are. The parameters are numbered from 1 to n and you can use ParameterMetaData.getParameterMode(1); to get the mode of the 1st parameter. The modes are defined as static values in the ParameterMetaData object. Check out the doc at http://docs.oracle.com/javase/7/docs/api/java/sql/ParameterMetaData.html
    Timo

  • PL/SQL Web Service.  Out Parameters are included in Request.

    I am using JDEVELOPER 11.1.1.3.0. I generated a web service from PL/SQL successfully.
    When the web service is generated and deployed (Deployed to the IntegratedWeblogicServer) it wants the output parameters to be included with the request.
    Here is an example of my wsdl.
    <wsdl:message name="AMP_WS_getCustomerDetails">
    <wsdl:part name="pGuid" type="xsd:string"/>
    <wsdl:part name="pCustName_out" type="xsd:string"/>
    <wsdl:part name="pCustomerId_out" type="xsd:decimal"/>
    <wsdl:part name="pStatus_out" type="xsd:decimal"/>
    <wsdl:part name="pMessage_out" type="xsd:string"/>
    </wsdl:message>
    <wsdl:message name="AMP_WS_getCustomerDetailsResponse">
    <wsdl:part name="pCustName_out" type="xsd:string"/>
    <wsdl:part name="pCustomerId_out" type="xsd:decimal"/>
    <wsdl:part name="pStatus_out" type="xsd:decimal"/>
    <wsdl:part name="pMessage_out" type="xsd:string"/>
    </wsdl:message>
    In the AMP_WS_getCustomerDetails I am not expecting pCustName_out, pCustomerId_out, pStatus_out, or pMessage_out to be included. They are out parameters in the pl/sql.
    Has anyone else run into this?
    Thanks for any help.

    Parameters relate to procedures. Web Services require XML messages.
    Where are the parameters coming from? You cannot pass a dynamic number of parameters into a procedure, but you can pass a structured type as a parameter which can contain multiple values, whether that is an array/collection type or an XML document itself.
    Just package up the values into the XML and pass it to the web service.
    If this doesn't answer your question, please post more information, with some example data and code. Read the FAQ: {message:id=9360002}

  • 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

  • Time out parameters for ABAP and JAVA instance

    Hello All,
    We are looking for Time out parameters for our ABAP and JAVA instances.
    As users are complaining that they are getting time out error
    while they are trying to access Cprojects from Portal.
    I was able to check/collect the ABAP instance parameters from SMICM Tcode.
    Can anybody tell me which parameters we need to look for JAVA instance.
    Thanks in advance.
    Regards,
    Amber S

    jstart/shutdownTimeout
    (jstartup/shutdown_timeout)
    Specifies the shutdown timeout, i.e. the grace period for the AS Java instance to shut down before the Java process terminates itself.  Unt is in Seconds. Default is 120
    j2ee/ms/connectTimeout
    (jstartup/wait_for_scs)
    Specifies the timeout for the first connection to the message server. The AS Java instance fails to start if this timeout expires.Unt is in Seconds.Default is  60
    j2ee/ms/reconnectTimeout
    (jstartup/wait_for_reconnect)
    Specifies the timeout for the reconnecting to the message server.The AS Java instance shuts down when this timeout expires.Unt is inSeconds.Default is  3600 (one hour)
    Thanks

  • 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

  • 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                                                                                                                                                                                                                                       

  • Problem with database adapter on plsql procedure with in/out parameters

    running BPEL 10.1.3.1 and using the database adapter on a plsql procedure with in/out parameters I get errors
    the plsql procedure:
    create or replace procedure proc_with_clob_inout_parameter(
    p_string in varchar2,
    p_clob in out clob)
    is
    begin
    p_clob := p_string;
    end proc_with_clob_inout_parameter;
    In BPEL I call this procedure. When I only assign a value to the p_string parameters (in a BPEL assign) all is well. When I also assign a value to the p_clob parameter the error occurs:
    <part name="summary">
    <summary>
    file:/ora1/app/oracle/as101.3/bpel/domains/digitaaldossier/tmp/.bpel_janb_inout_1.0_f6908ccf864581b7265c362444e88075.tmp/twee.wsdl
    [ twee_ptt::twee(InputParameters,OutputParameters) ] - WSIF JCA Execute of
    operation 'twee' failed due to: Error while trying to prepare and execute
    an API.
    An error occurred while preparing and executing the
    JANB.PROC_WITH_CLOB_PARAMETER2 API. Cause: java.sql.SQLException: Parameter
    Type Conflict [Caused by: Parameter Type Conflict]
    ; nested exception is:
    ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the
    JANB.PROC_WITH_CLOB_INOUT_PARAMETER API. Cause: java.sql.SQLException: Parameter
    Type Conflict [Caused by: Parameter Type Conflict]
    Check to ensure that the API is defined in the database and that the
    parameters match the signature of the API. Contact oracle support if error
    is not fixable.
    </summary>
    </part>
    In BPEL 10.1.2.0 this isn't a problem. I tested it against a 10.2.0.1 and a 10.2.0.2 database and in both situations I get the error with BPEL 10.1.3.1 and no error with BPEL 10.1.2.0
    it appears to be a problem in the database adapter...
    anyone with the same problems and/or a solution?

    Not of any use to you, but we had exactly the same problem on Friday when we applied AS 10.1.2.2 Patchset on top of BPEL 10.1.2.0.2.
    The clob in our pl/sql proc wan't declared as in/out but for some reasons JDeveloper had created a clob on the Output Parameter type in the db partner link xsd. I removed this and it worked. This code had been untouched , and working fine, for months.
    I'll be raising an SR today.
    Rob J

  • Using a StoredProcedure with OUT parameters in CrystalReports

    Hi All,
    I am creating a report using CrystalReport Designer 2008.I have a StoredProcedure which takes 2 input parameters,2 output parameters and a cursor.I am not able to add this SP directly using the DatabaseExpert. if I use
    'call SP1(input1,input2,input3,input4,@output1,@output2)' from AddCommand option then it gets added as a Command but the tree under Command does not expand and it does not allow me to use the output parameters in my reports.
    Hence,can anyone please help me here such that how should I use this SP with out parameters in my CrystalReports.Also note that I am able to use StoredProcedure with only input parameters,with input parameters and cursor in my CrystalReports.Should I do something extra to add this StoredProcedure in my CrystalReports?
    Any help for this issue would be highly appreciated.
    Regards.
    Ajit

    Ajit,
    If you are using a Command, you execute a SP in CR with the same syntax that you would in the databases native environment.The only difference is that you'll need to add CR parameters so that the inputs can be added to the SP's input parameters.
    So, using your example... 'call SP1({?input1}, {?input2}, {?input3} , {?input4}, output1, output2)'
    I'm not familiar with this particular syntax but hopefully you get the idea.
    If you want to hard code the input parameters (and not have them prompt in CR), just hard code them in the command.
    HTH,
    Jason
    Edited by: Jason Long on Aug 25, 2010 2:15 PM

Maybe you are looking for

  • What do I do with this phone...

    My contract is up in late November and I really hate this phone. I constructed a list of pros/cons. I can hand write a message and put it on a horse and it will get delivered faster than it takes this phone to start to send a message The touchscreen

  • [SOLVED] Unable to boot ISO on USB

    Hello, I'm unable to boot from USB. I have the following error : "Failed to install override security policy: (14) Not Found". I tried the following solution : http://superuser.com/a/676059 But then my computer does not want to boot on the USB. I don

  • Is there a way to upgrade your ipod or trade it for credit towards a new 1?

    I have the 80 gb video, but i want to upgrade to the ipod classic or maybe the 32gb touch, but I dont want to spend the full price and be stuck with my old ipod. Is There any way to trade it for credit towards a new one? or maybe send in the old one

  • Track motion - working but AE stops responding so must force quit

    Hi, I'm on: AE CC 2014 v13.0 PC with Nvidia k4000 and 32GB RAM Working with 4k R3D footage. I'm using track motion (transform - position, scale and rotation) on a precomped layer that has 2 circle effects on black background. (I'm trying to extract w

  • Java Dynpro - Consumed Java WebService - Not getting executed

    I have consumed a Java Web Service ( EJB ) in my Java Web dynpro code ( using Import Web service Model ( Not adaptive )) Successfully consumed. But the Web Service Model is not getting executed by this code - Request_CreatePortalUsrWebServiceViDocume