My Oracle Support Banner

Execution Setup Under Reports Tab Fails with "oracle.jbo.SQLStmtException: JBO-27122" (Doc ID 1587802.1)

Last updated on FEBRUARY 20, 2023

Applies to:

Oracle Life Sciences Data Hub - Version and later
Information in this document applies to any platform.


On : Oracle Life Sciences Data Hub Release and higher.

Users unable to select/run Execution Setups under Reports tab. On selecting an Execution Setup under the Reports tab,
the following exception is raised on UI:

"You have encounters an unexpected error. Please contact the System Administrator for assistance".

Error Page
Exception Details.
 oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT lov.position AS POSITION,
  lov.value AS LOOKUP_CODE,
  lookup.meaning AS MEANING,
FROM cdr_lookups lookup, cdr_lov_values lov
WHERE lov.company_id = :1
  AND lov_id = :2
  AND lov_ver = :3
  AND lov.value = lookup.lookup_code
  AND lookup.lookup_type = :4
  AND (lookup.lookup_code <> '$RUNMODES$INCREMENTAL' OR :5 <> 'N')
  AND (lookup.lookup_type <> 'CDR_BLIND_BREAK' OR lookup.lookup_code <> '$YESNO$YES' OR :6 <> 'N')
  AND (lookup.lookup_code <> '$CURRENCYTYPE$SNAPSHOT' OR :7 <> 'N')
  AND (lookup.lookup_code <> '$CURRENCYTYPE$BACKCHAIN' OR :8 <> 'N')
  AND (lookup.lookup_code <> '$SUBMISSTYPES$TRIGGERED' OR :9 <> 'N')) QRSLT ORDER BY position
  at oracle.apps.fnd.framework.OAException.wrapperException(
  at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(
  at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(
  at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(
  at _OA._jspService(
  at com.orionserver.http.OrionHttpJspPage.service(
  at oracle.jsp.runtimev2.JspPageTable.service(
  at oracle.jsp.runtimev2.JspServlet.internalService(
  at oracle.jsp.runtimev2.JspServlet.service(
  at javax.servlet.http.HttpServlet.service(
  at com.evermind.server.http.ServletRequestDispatcher.invoke(
  at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(
  at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(
  at com.evermind.server.http.ServletRequestDispatcher.access$100(
  at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(
  at com.evermind.server.http.ServletRequestDispatcher.forward(
  at com.evermind.server.http.EvermindPageContext.forward(
  at _OA._jspService(
  at com.orionserver.http.OrionHttpJspPage.service(
  at oracle.jsp.runtimev2.JspPageTable.service(
  at oracle.jsp.runtimev2.JspServlet.internalService(
  at oracle.jsp.runtimev2.JspServlet.service(
  at javax.servlet.http.HttpServlet.service(
  at com.evermind.server.http.ResourceFilterChain.doFilter(
  at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(
  at com.evermind.server.http.EvermindFilterChain.doFilter(
  at com.evermind.server.http.ServletRequestDispatcher.invoke(
  at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(
  at com.evermind.server.http.HttpRequestHandler.doProcessRequest(
  at com.evermind.server.http.HttpRequestHandler.processRequest(
  at com.evermind.util.ReleasableResourcePooledExecutor$
## Detail 0 ##
java.sql.SQLException: Missing IN or OUT parameter at index:: 1
  at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(
  at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(
  at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(
  at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(
  at oracle.jbo.server.QueryCollection.buildResultSet(
  at oracle.jbo.server.QueryCollection.executeQuery(
  at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(
  at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
  at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(
  at oracle.jbo.server.ViewRowSetImpl.execute(

This issue can be reproduced if you have multiple versions of an Execution Setup and the latest version is set to "Runnable" and
the older version is set to "Runnable Active".  Here are the steps:

1.  Create a new Work Area in the Application Area and assigned Default subtype classification.
2.  Create a SAS Program in the Work Area and assigned Default subtype classification.
3.  Create an Execution Setup ES_SASPrg1 for the SAS Program and assigned Default subtype classification
4.  Open the new Execution setup ES_SASPrg1  and select "Assign classification" from Action drop-down list.
5.  Click Update and select 'Explicit" assignment type.  Under the Search and Add Value, click the '+' icon and add the appropriate Hierarchy Terms.
6.  Select View Version History from Actions menu and select "Set as Active" for ES_SASPrg1 and verified that ES_SASPrg1 has "Runnable Active" status.
7.  Check out Execution Setup ES_SASPrg1 so that it creates another version of ES_SASPrg1.
8.  Select View Version History from Actions drop-down, there should be 2 versions listed as follows:

Name                Version            Status
ES_SASPrg1      2                    Runnable
ES_SASPrg1      1                    Runnable Active

7.  Navigate to Reports tab > select DefaultHierarchy > click Go
8.  Click on the icon under Action for ES_SASPrg1 Execution Set-Up.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.