oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT DISTINCT the_key, ProdLineKey,ProdLineDesc, ProdSegKey FROM (SELECT 1 the_key, TO_CHAR(trim(SRSRP2)) ProdLineKey, TO_CHAR(trim(SRDL02)) ProdLineDesc, TRIM (SRSRP1) ProdSegKey FROM F590001 WHERE trim(SRSRP1) IS NOT NULL AND trim(SRSRP1) IN (SELECT TO_CHAR(trim(DRKY)) FROM F0005 WHERE trim (DRSY) = '41' AND trim(drrt) = 'S1' AND trim(drsphd) = 'CPP' ) UNION ALL SELECT DISTINCT 2 the_key, TO_CHAR(trim(SRSRP2)) ProdLineKey, TO_CHAR(trim(SRDL02)) ProdLineDesc, NULL ProdSegKey FROM F590001 WHERE trim(SRSRP1) IS NOT NULL AND trim(SRSRP1) IN (SELECT TO_CHAR(trim(DRKY)) FROM F0005 WHERE trim (DRSY) = '41' AND trim(drrt) = 'S1' AND trim(drsphd) = 'CPP' ) )) QRSLT WHERE (:Bind_Prodsegkey is null and the_key = 2)or (:Bind_Prodsegkey is not null and the_key=1 and :Bind_Prodsegkey = ProdSegKey)

blogspot.nl | 5 months ago
  1. 0

    Andrejus Baranovskis Blog: LOV in Find Mode - Workaround for JDeveloper 11g TP4

    blogspot.com | 1 year ago
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT DISTINCT the_key, ProdLineKey,ProdLineDesc, ProdSegKey FROM (SELECT 1 the_key, TO_CHAR(trim(SRSRP2)) ProdLineKey, TO_CHAR(trim(SRDL02)) ProdLineDesc, TRIM (SRSRP1) ProdSegKey FROM F590001 WHERE trim(SRSRP1) IS NOT NULL AND trim(SRSRP1) IN (SELECT TO_CHAR(trim(DRKY)) FROM F0005 WHERE trim (DRSY) = '41' AND trim(drrt) = 'S1' AND trim(drsphd) = 'CPP' ) UNION ALL SELECT DISTINCT 2 the_key, TO_CHAR(trim(SRSRP2)) ProdLineKey, TO_CHAR(trim(SRDL02)) ProdLineDesc, NULL ProdSegKey FROM F590001 WHERE trim(SRSRP1) IS NOT NULL AND trim(SRSRP1) IN (SELECT TO_CHAR(trim(DRKY)) FROM F0005 WHERE trim (DRSY) = '41' AND trim(drrt) = 'S1' AND trim(drsphd) = 'CPP' ) )) QRSLT WHERE (:Bind_Prodsegkey is null and the_key = 2)or (:Bind_Prodsegkey is not null and the_key=1 and :Bind_Prodsegkey = ProdSegKey)
  2. 0

    Andrejus Baranovskis Blog: LOV in Find Mode - Workaround for JDeveloper 11g TP4

    blogspot.nl | 5 months ago
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT DISTINCT the_key, ProdLineKey,ProdLineDesc, ProdSegKey FROM (SELECT 1 the_key, TO_CHAR(trim(SRSRP2)) ProdLineKey, TO_CHAR(trim(SRDL02)) ProdLineDesc, TRIM (SRSRP1) ProdSegKey FROM F590001 WHERE trim(SRSRP1) IS NOT NULL AND trim(SRSRP1) IN (SELECT TO_CHAR(trim(DRKY)) FROM F0005 WHERE trim (DRSY) = '41' AND trim(drrt) = 'S1' AND trim(drsphd) = 'CPP' ) UNION ALL SELECT DISTINCT 2 the_key, TO_CHAR(trim(SRSRP2)) ProdLineKey, TO_CHAR(trim(SRDL02)) ProdLineDesc, NULL ProdSegKey FROM F590001 WHERE trim(SRSRP1) IS NOT NULL AND trim(SRSRP1) IN (SELECT TO_CHAR(trim(DRKY)) FROM F0005 WHERE trim (DRSY) = '41' AND trim(drrt) = 'S1' AND trim(drsphd) = 'CPP' ) )) QRSLT WHERE (:Bind_Prodsegkey is null and the_key = 2)or (:Bind_Prodsegkey is not null and the_key=1 and :Bind_Prodsegkey = ProdSegKey)
  3. 0

    SQL View Objects - setWhereClause()

    Oracle Community | 1 decade ago | 405015
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: select distinct dept from dept where dept!='*****' and inst=:1 and guide_yr=:2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JBO-27122: SQL error during statement preparation

    Oracle Community | 8 years ago | 692402
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT PARAMETER_ID PARAMETER_ID, PARAMETER_NAME PARAMETER_NAME, PARAMETER_TYPE_ID PARAMETER_TYPE_ID, COMPLEX_FLAG, IS_CONDITION, IS_NOT_CONDITION FROM VSOE_PARAMETERS_V where (TRUNC(START_DATE)<=TRUNC(SYSDATE) OR START_DATE IS NULL) AND (END_DATE >TRUNC(SYSDATE) OR END_DATE IS NULL)) QRSLT WHERE (upper(QRSLT.PARAMETER_NAME)='CUST FLAG 4') ORDER BY PARAMETER_NAME
  6. 0

    JBO-27122 SQL error during Statement preparation

    Google Groups | 1 decade ago | Jeff
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT Product.APPNAME, Product.PRODID, Product.DESCRIPTION, Product.PRICE, Product.THUMBNAIL, Product.DESCRIPTION_ES, Product.DESCRIPTION_FR FROM ETC.ECOM_PRODUCT Product WHERE (SPECIALCHARGE <> 'Y' OR SPECIALCHARGE IS NULL) AND APPNAME = ? AND ((DISABLED <> 'Y' OR DISABLED IS NULL)) ORDER BY PRODID

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. oracle.jbo.SQLStmtException

      JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT DISTINCT the_key, ProdLineKey,ProdLineDesc, ProdSegKey FROM (SELECT 1 the_key, TO_CHAR(trim(SRSRP2)) ProdLineKey, TO_CHAR(trim(SRDL02)) ProdLineDesc, TRIM (SRSRP1) ProdSegKey FROM F590001 WHERE trim(SRSRP1) IS NOT NULL AND trim(SRSRP1) IN (SELECT TO_CHAR(trim(DRKY)) FROM F0005 WHERE trim (DRSY) = '41' AND trim(drrt) = 'S1' AND trim(drsphd) = 'CPP' ) UNION ALL SELECT DISTINCT 2 the_key, TO_CHAR(trim(SRSRP2)) ProdLineKey, TO_CHAR(trim(SRDL02)) ProdLineDesc, NULL ProdSegKey FROM F590001 WHERE trim(SRSRP1) IS NOT NULL AND trim(SRSRP1) IN (SELECT TO_CHAR(trim(DRKY)) FROM F0005 WHERE trim (DRSY) = '41' AND trim(drrt) = 'S1' AND trim(drsphd) = 'CPP' ) )) QRSLT WHERE (:Bind_Prodsegkey is null and the_key = 2)or (:Bind_Prodsegkey is not null and the_key=1 and :Bind_Prodsegkey = ProdSegKey)

      at oracle.jbo.server.QueryCollection.buildResultSet()
    2. oracle.jbo.server
      ViewRowSetIteratorImpl.ensureRefreshed
      1. oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1293)
      2. oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:968)
      3. oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:7178)
      4. oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1217)
      5. oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1062)
      6. oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2810)
      7. oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2788)
      7 frames