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 | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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 | 7 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)

    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