Moving jobs in MES Causes Error 'oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException:JBO-27122: SQL error during statement preparation' (Doc ID 1289932.1)

Last updated on APRIL 10, 2017

Applies to:

Oracle MES for Discrete Manufacturing - Version 12.1.3 and later
Information in this document applies to any platform.
***Checked for relevance on 09-Jan-2014***

Symptoms

When performing Move transactions in MES, after entering the Quality results and clicking Finish, the following error occurs:
Error
---------
Exception Details. 
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: 
JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM 
(Select Distinct 
organization_id, 
plan_id, 
Plan_Name, 
concatenated_information, 
transaction_number, 
plan_transaction_id, 
has_child, 
mandatory_flag FROM ( 
SELECT qpv.organization_id organization_id, 
qpv.plan_id plan_id, 
qpv.name || decode(qpt.mandatory_collection_flag || 
nvl(qpt.background_collection_flag,2), '12', 
'('||fnd_message.get_string('QA', 'QA_TXN_MAND_MSG')||')') Plan_Name, 
qpv.description concatenated_information, 
qpt.transaction_number transaction_number, 
qpt.plan_transaction_id plan_transaction_id, 
qa_parent_child_pkg.has_child(qpv.plan_id) has_child, 
decode(qpt.background_collection_flag,1,2,nvl(qpt.mandatory_collection_flag,2 
)) mandatory_flag, 
dense_rank() over(partition by qpv.organization_id, qpv.plan_id 
order by qpt.mandatory_collection_flag, qpt.plan_transaction_id desc) rnk 
FROM qa_plans_v qpv, 
qa_plan_transactions qpt 
WHERE qpv.plan_id = qpt.plan_id(+) 
AND qa_web_txn_api.allowed_for_plan('QA_RESULTS_ENTER',qpv.plan_id) = 'T') 
where rnk =1) QRSLT WHERE (ORGANIZATION_ID = 83 AND PLAN_TRANSACTION_ID IN ( 
4100,-1) AND HAS_CHILD = 2) ORDER BY mandatory_flag ASC , Plan_Name ASC 
at 
oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912) 
 
 
Steps to reproduce 
-------------------   
Navigation Path: MES Operator. 
1) Enter Job Number (Go) 
2) Choose Job:OP step and go to 'View Work Content' 
3) Enter Badge number and click 'Move Assembly' (Note I am on a step that 
will require Quality info) 
4) Click 'Continue' 
5) Fill in Mandatory Quality Plan data elements 
6) Click 'Finish' 
7) Receive error (Uploading new attachment in WORD) 

Cause

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