JBO-27122 SQLException: Missing IN Or OUT Parameter At Index:: 3 After Setting Deliver To Location to Inventory Destination (Doc ID 2083551.1)

Last updated on DECEMBER 16, 2015

Applies to:

Oracle iProcurement - Version 12.1.3 and later
Information in this document applies to any platform.


On Release 12.1.3 version, Requisition Creation

When attempting to update the Deliver To Location to an "Inventory" location on several Requisition lines the following error occurs.


Exception Details.
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.
Statement: select lookup_code, meaning
from fnd_lookup_values
where lookup_type = :1
and language = :2
and (lookup_code = 'EXPENSE' OR
  (lookup_code = 'INVENTORY' AND :3 = 'Y') OR
  (lookup_code = 'SHOP FLOOR' AND :4 = 'Y'))
order by meaning asc
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)
at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:3334)
at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:3129)
at _OA._jspService(_OA.java:229)
## Detail 0 ##
java.sql.SQLException: Missing IN or OUT parameter at index:: 3
at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1752)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3444)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:860)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:669)


The issue can be reproduced at will with the following steps:
1. Sign On to EBS Application
2. Select Responsibility: iProcurement
3. Navigate to iProcurement - Home Page ->> Click: "Preferences" Hyperlink
4. Select iProcurement Preferences ->> Ensure that Deliver-To location is not linked to an organization.
5. Select Deliver-to Subinventory Checkbox ->> Click: Apply
6. Log Out of Application.
7. Sign back on to Application ->> Select Responsibility: iProcurement
8. Search: Main Store ->> Select Inventory item: 1234-XXXX - that are assigned to an organization inventory organization
9. Select Inventory Item: 1234-XXXX ->> Add to Cart ->> Add a Second Item to the Cart.
10. Select View Cart and Checkout ->> Continue to Checkout: Requisition information ->> Press "Edit Lines" Button.
11. Requisition Edit Lines page opens ->> Select Lines ->> Click: Update
12. Requisition Update Selected Lines Form Appears ->> Locate: "Delivery" Section ->> Deliver- To Location ->>
13. Click: "List Of Values" Icon ->> to find Inventory location ->> Select: "Inventory" location.
- get the error


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms