JBO-27122: SQL error during statement preparation IN OAF(java.sql.SQLException: ORA-01008: not all variables bound)

Hi Friends,
I have have extended CO where i have added dynamic where condition to VO,it's throwing error.
Code added in controller :
public class Custom_HomePageCO extends HomePageCO
  public Custom_HomePageCO()
public void processRequest(OAPageContext pageContext,OAWebBean webBean)
  super.processRequest(pageContext,webBean);
  System.out.println("NewClase");
  OAApplicationModule am=pageContext.getApplicationModule(webBean);
  System.out.println(am);
  OAApplicationModule am1=(OAApplicationModule)am.findApplicationModule("TrackExpenseReportsAM");
System.out.println(am1);
  OAViewObject vo=(OAViewObject)am1.findViewObject("TrackExpenseReportsVO");
  System.out.println(vo);
  vo.setWhereClause("REPORT_SUBMITTED_DATE is not null");
    vo.executeQuery();
public void processFormRequest(OAPageContext pageContext,OAWebBean webBean)
  super.processFormRequest(pageContext,webBean);
Error message:
Exception Details.
Error Details
       Logout
      Error Page
      Exception Details.
oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.  Statement: SELECT * FROM (SELECT
AI.DESCRIPTION PURPOSE,
AI.INVOICE_CURRENCY_CODE CURRENCY_CODE,
AI.INVOICE_DATE REPORT_DATE,
AERH.REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
AI.INVOICE_NUM REPORT_NUMBER,
TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                 0, decode(AI.CANCELLED_DATE,
                             null, APS.GROSS_AMOUNT,
                             AERH.TOTAL),
               nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)) ,  
        FND_CURRENCY_CACHE.GET_FORMAT_MASK
        (AI.INVOICE_CURRENCY_CODE, 30)) ||' '|| AI.INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                 0, decode(AI.CANCELLED_DATE,
                             null, APS.GROSS_AMOUNT,
                             AERH.TOTAL),
               nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)) ,  
        FND_CURRENCY_CACHE.GET_FORMAT_MASK
        (AI.INVOICE_CURRENCY_CODE, 30))
REPORT_TOTAL,
P.PERSON_ID EMPLOYEE_ID,
AERH.REPORT_HEADER_ID REPORT_HEADER_ID,
P.FULL_NAME FULL_NAME ,
DECODE(AI.CANCELLED_DATE,null,
                          nvl(aerh.expense_status_code, DECODE(APS.GROSS_AMOUNT ,0,'PAID',
                                decode(AI.Payment_status_flag,'Y','PAID',
                                                        'N','INVOICED',
                                                        'P','PARPAID',NULL))),
                                        'CANCELLED') STATUS_CODE,
AERH.source SOURCE,
NULL CURRENT_APPROVER,
ROUND(sysdate - AI.LAST_UPDATE_DATE) DAYS_SINCE_ACTIVITY,
AERH.RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
AERH.HOLDING_REPORT_HEADER_ID,
AI.VENDOR_ID VENDOR_ID,
AERH.AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
AERH.AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,         
'CurrentApproverName' CURRENT_APPROVER_SWITCHER,
to_char(AERH.LAST_UPDATE_DATE, 'DD-MON-RRRR HH:MI:SS'),
AI.INVOICE_ID INVOICE_ID
FROM
       AK_WEB_USER_SEC_ATTR_VALUES A,
       PO_VENDORS PV,
       AP_INVOICES AI,
       AP_EXPENSE_REPORT_HEADERS AERH,
       PER_PEOPLE_X P,
       AP_PAYMENT_SCHEDULES APS
WHERE  AI.INVOICE_ID= APS.INVOICE_ID
AND    AI.INVOICE_ID = AERH.VOUCHNO(+)
AND AI.INVOICE_TYPE_LOOKUP_CODE||'' = 'EXPENSE REPORT'
AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID'
AND PV.EMPLOYEE_ID = A.NUMBER_VALUE
AND A.WEB_USER_ID = :1
AND P.PERSON_ID = PV.EMPLOYEE_ID
AND PV.VENDOR_ID = AI.VENDOR_ID
AND DECODE (AI.PAYMENT_STATUS_FLAG,
         'Y', sysdate - AI.LAST_UPDATE_DATE,
        decode(APS.GROSS_AMOUNT , 0 ,sysdate - AI.LAST_UPDATE_DATE,0)
          )  <= 30
AND (AERH.SOURCE <> 'Both Pay' OR AERH.REPORT_HEADER_ID IS NULL)       
UNION
SELECT
AI.DESCRIPTION PURPOSE,
AI.INVOICE_CURRENCY_CODE CURRENCY_CODE,
AI.INVOICE_DATE REPORT_DATE,
AERH.REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
AI.INVOICE_NUM REPORT_NUMBER,
TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                 0, decode(AI.CANCELLED_DATE,
                             null, APS.GROSS_AMOUNT,
                             AERH.TOTAL),
               nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)) ,  
        FND_CURRENCY_CACHE.GET_FORMAT_MASK
        (AI.INVOICE_CURRENCY_CODE, 30)) ||' '|| AI.INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                 0, decode(AI.CANCELLED_DATE,
                             null, APS.GROSS_AMOUNT,
                             AERH.TOTAL),
               nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)),  
        FND_CURRENCY_CACHE.GET_FORMAT_MASK
        (AI.INVOICE_CURRENCY_CODE, 30))
REPORT_TOTAL,
P.PERSON_ID EMPLOYEE_ID,
AERH.REPORT_HEADER_ID REPORT_HEADER_ID,
P.FULL_NAME FULL_NAME ,
DECODE(AI.CANCELLED_DATE,null,
                          nvl(aerh.expense_status_code, DECODE(APS.GROSS_AMOUNT ,0,'PAID',
                                decode(AI.Payment_status_flag,'Y','PAID',
                                                        'N','INVOICED',
                                                        'P','PARPAID',NULL))),
                                        'CANCELLED') STATUS_CODE,
AERH.source SOURCE,
NULL CURRENT_APPROVER,
ROUND(sysdate - AI.LAST_UPDATE_DATE) DAYS_SINCE_ACTIVITY,
AERH.RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
AERH.HOLDING_REPORT_HEADER_ID,
AI.VENDOR_ID VENDOR_ID,
AERH.AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
AERH.AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,         
'CurrentApproverName' CURRENT_APPROVER_SWITCHER,
to_char(AERH.LAST_UPDATE_DATE, 'DD-MON-RRRR HH:MI:SS'),
AI.INVOICE_ID INVOICE_ID
FROM
       AK_WEB_USER_SEC_ATTR_VALUES A,
       PO_VENDORS PV,
       AP_INVOICES AI,
       AP_EXPENSE_REPORT_HEADERS AERH,
       PER_PEOPLE_X P,
       AP_PAYMENT_SCHEDULES APS
WHERE  AI.INVOICE_ID= APS.INVOICE_ID
AND    AI.INVOICE_ID = AERH.VOUCHNO(+)
AND AI.INVOICE_TYPE_LOOKUP_CODE||'' in ('STANDARD','MIXED')
AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID'
AND AI.PAID_ON_BEHALF_EMPLOYEE_ID = A.NUMBER_VALUE
AND A.WEB_USER_ID = :2
AND P.PERSON_ID = AI.PAID_ON_BEHALF_EMPLOYEE_ID
AND PV.VENDOR_ID = AI.VENDOR_ID
AND DECODE (AI.PAYMENT_STATUS_FLAG,
         'Y', sysdate - AI.LAST_UPDATE_DATE,
        decode(APS.GROSS_AMOUNT , 0 ,sysdate - AI.LAST_UPDATE_DATE,0)
        ) <= 30
AND (AERH.SOURCE <> 'Both Pay' OR AERH.REPORT_HEADER_ID IS NULL)            
UNION ALL
SELECT
AERH.DESCRIPTION PURPOSE,
AERH.DEFAULT_CURRENCY_CODE CURRENCY_CODE,
AERH.WEEK_END_DATE REPORT_DATE,
AERH.REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
AERH.INVOICE_NUM REPORT_NUMBER,
TO_CHAR(nvl(AERH.AMT_DUE_CCARD_COMPANY+AERH.AMT_DUE_EMPLOYEE+nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),AERH.TOTAL),FND_CURRENCY_CACHE.GET_FORMAT_MASK
  (AERH.DEFAULT_CURRENCY_CODE,30)) ||' '|| AERH.DEFAULT_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
TO_CHAR(nvl(AERH.AMT_DUE_CCARD_COMPANY+AERH.AMT_DUE_EMPLOYEE+nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),AERH.TOTAL),FND_CURRENCY_CACHE.GET_FORMAT_MASK
  (AERH.DEFAULT_CURRENCY_CODE,30)) REPORT_TOTAL,
PER_EMPLOYEE.PERSON_ID EMPLOYEE_ID,
AERH.REPORT_HEADER_ID REPORT_HEADER_ID,
PER_EMPLOYEE.FULL_NAME FULL_NAME,
NVL(AERH.expense_status_code,
  AP_WEB_OA_ACTIVE_PKG.GetReportStatusCode(AERH.Source, AERH.Workflow_approved_flag,
  AERH.report_header_id, 'Y', 'N')) STATUS_CODE,
AERH.source SOURCE,
NVL (PER_APPROVER.full_name, AP_WEB_OA_ACTIVE_PKG.GetCurrentApprover(AERH.Source,
        AERH.Workflow_approved_flag, AERH.report_header_id, AERH.expense_status_code)) CURRENT_APPROVER,
ROUND(NVL(sysdate - AERH.EXPENSE_LAST_STATUS_DATE,
          sysdate - AERH.LAST_UPDATE_DATE)) DAYS_SINCE_ACTIVITY,
AERH.RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
AERH.HOLDING_REPORT_HEADER_ID,
0 VENDOR_ID,
AERH.AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
AERH.AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,  
DECODE(AERH.expense_current_approver_id,
-99999, 'AMEMultipleApprovers',
decode(PER_APPROVER.full_name,
  null,'CurrentApproverName','AMESingleApprover')) CURRENT_APPROVER_SWITCHER,
to_char(AERH.LAST_UPDATE_DATE, 'DD-MON-RRRR HH:MI:SS'),
-1 INVOICE_ID
FROM
       AK_WEB_USER_SEC_ATTR_VALUES A,
       AP_EXPENSE_REPORT_HEADERS AERH,
       PER_PEOPLE_X PER_EMPLOYEE,
       PER_PEOPLE_X PER_APPROVER
WHERE  AERH.VOUCHNO +0 =0
AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID'
AND AERH.EMPLOYEE_ID = A.NUMBER_VALUE
AND A.WEB_USER_ID = :3
AND PER_EMPLOYEE.PERSON_ID = AERH.EMPLOYEE_ID
AND (AERH.Source <> 'NonValidatedWebExpense'
     OR AERH.Workflow_approved_flag IS NULL)
AND AERH.expense_current_approver_id = PER_APPROVER.person_id
AND decode(AERH.total,0,ROUND(NVL(sysdate - AERH.EXPENSE_LAST_STATUS_DATE,sysdate - AERH.LAST_UPDATE_DATE)),30) <= 30
AND AERH.SOURCE <> 'Both Pay'
UNION
SELECT
AERH.DESCRIPTION PURPOSE,
AERH.DEFAULT_CURRENCY_CODE CURRENCY_CODE,
AERH.WEEK_END_DATE REPORT_DATE,
AERH.REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
AERH.INVOICE_NUM REPORT_NUMBER,
TO_CHAR(nvl(AERH.AMT_DUE_CCARD_COMPANY+AERH.AMT_DUE_EMPLOYEE+nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),AERH.TOTAL),FND_CURRENCY_CACHE.GET_FORMAT_MASK
  (AERH.DEFAULT_CURRENCY_CODE,30)) ||' '|| AERH.DEFAULT_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
TO_CHAR(nvl(AERH.AMT_DUE_CCARD_COMPANY+AERH.AMT_DUE_EMPLOYEE+nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),AERH.TOTAL),FND_CURRENCY_CACHE.GET_FORMAT_MASK
  (AERH.DEFAULT_CURRENCY_CODE,30)) REPORT_TOTAL,
PER_EMPLOYEE.PERSON_ID EMPLOYEE_ID,
AERH.REPORT_HEADER_ID REPORT_HEADER_ID,
PER_EMPLOYEE.FULL_NAME FULL_NAME,
NVL(AERH.expense_status_code,
  AP_WEB_OA_ACTIVE_PKG.GetReportStatusCode(AERH.Source, AERH.Workflow_approved_flag,
  AERH.report_header_id,'Y','N')) STATUS_CODE,
AERH.source SOURCE,
NVL (PER_APPROVER.full_name, AP_WEB_OA_ACTIVE_PKG.GetCurrentApprover(AERH.Source,
        AERH.Workflow_approved_flag, AERH.report_header_id, AERH.expense_status_code)) CURRENT_APPROVER,
ROUND(NVL(sysdate - AERH.EXPENSE_LAST_STATUS_DATE,
          sysdate - AERH.LAST_UPDATE_DATE)) DAYS_SINCE_ACTIVITY,
AERH.RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
AERH.HOLDING_REPORT_HEADER_ID,
0 VENDOR_ID,
AERH.AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
AERH.AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,  
DECODE(AERH.expense_current_approver_id,
-99999, 'AMEMultipleApprovers',
decode(PER_APPROVER.full_name,
  null,'CurrentApproverName','AMESingleApprover')) CURRENT_APPROVER_SWITCHER,
to_char(AERH.LAST_UPDATE_DATE, 'DD-MON-RRRR HH:MI:SS'),
-1 INVOICE_ID
FROM
       AK_WEB_USER_SEC_ATTR_VALUES A,
       AP_EXPENSE_REPORT_HEADERS AERH,
       PER_PEOPLE_X PER_EMPLOYEE,
       PER_PEOPLE_X PER_APPROVER
WHERE  AERH.VOUCHNO +0=0
AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID'
AND AERH.PAID_ON_BEHALF_EMPLOYEE_ID = A.NUMBER_VALUE
AND A.WEB_USER_ID = :4
AND PER_EMPLOYEE.PERSON_ID = PAID_ON_BEHALF_EMPLOYEE_ID
AND AERH.EMPLOYEE_ID IS NULL
AND (AERH.Source <> 'NonValidatedWebExpense'
     OR AERH.Workflow_approved_flag IS NULL)
AND AERH.expense_current_approver_id = PER_APPROVER.person_id
AND decode(AERH.total,0,ROUND(NVL(sysdate - AERH.EXPENSE_LAST_STATUS_DATE,sysdate - AERH.LAST_UPDATE_DATE)),30) <= 30
AND AERH.SOURCE <> 'Both Pay'
UNION ALL
/* This select is for invoice imported reports by contingent workers */
SELECT
AI.DESCRIPTION PURPOSE,
AI.INVOICE_CURRENCY_CODE CURRENCY_CODE,
AI.INVOICE_DATE REPORT_DATE,
AERH.REPORT_SUBMITTED_DATE REPORT_SUBMITTED_DATE,
AI.INVOICE_NUM REPORT_NUMBER,
TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                 0, decode(AI.CANCELLED_DATE,
                             null, APS.GROSS_AMOUNT,
                             AERH.TOTAL),
               nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)) ,  
        FND_CURRENCY_CACHE.GET_FORMAT_MASK
        (AI.INVOICE_CURRENCY_CODE, 30)) ||' '|| AI.INVOICE_CURRENCY_CODE REPORT_TOTAL_CURRENCY,
TO_CHAR(decode(nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0),
                 0, decode(AI.CANCELLED_DATE,
                             null, APS.GROSS_AMOUNT,
                             AERH.TOTAL),
               nvl(AI.AMT_DUE_CCARD_COMPANY, AERH.AMT_DUE_CCARD_COMPANY) + nvl(AI.AMT_DUE_EMPLOYEE, AERH.AMT_DUE_EMPLOYEE) + nvl(AERH.MAXIMUM_AMOUNT_TO_APPLY,0)) ,  
        FND_CURRENCY_CACHE.GET_FORMAT_MASK
        (AI.INVOICE_CURRENCY_CODE, 30))
REPORT_TOTAL,
P.PERSON_ID EMPLOYEE_ID,
AERH.REPORT_HEADER_ID REPORT_HEADER_ID,
P.FULL_NAME FULL_NAME ,
DECODE(AI.CANCELLED_DATE,null,
                          nvl(aerh.expense_status_code, DECODE(APS.GROSS_AMOUNT ,0,'PAID',
                                decode(AI.Payment_status_flag,'Y','PAID',
                                                        'N','INVOICED',
                                                        'P','PARPAID',NULL))),
                                        'CANCELLED') STATUS_CODE,
AERH.source SOURCE,
NULL CURRENT_APPROVER,
ROUND(sysdate - AI.LAST_UPDATE_DATE) DAYS_SINCE_ACTIVITY,
AERH.RECEIPTS_STATUS RECEIPTS_STATUS_CODE,
AERH.HOLDING_REPORT_HEADER_ID,
AI.VENDOR_ID VENDOR_ID,
AERH.AMT_DUE_CCARD_COMPANY AMT_DUE_CCARD_COMPANY,
AERH.AMT_DUE_EMPLOYEE AMT_DUE_EMPLOYEE,          
'CurrentApproverName' CURRENT_APPROVER_SWITCHER,
to_char(AERH.LAST_UPDATE_DATE, 'DD-MON-RRRR HH:MI:SS'),
AI.INVOICE_ID INVOICE_ID
FROM
       AK_WEB_USER_SEC_ATTR_VALUES A,
       AP_INVOICES AI,
       AP_EXPENSE_REPORT_HEADERS AERH,
       PER_PEOPLE_X P,
       AP_PAYMENT_SCHEDULES APS
WHERE  AI.INVOICE_ID= APS.INVOICE_ID
AND    AI.INVOICE_ID = AERH.VOUCHNO(+)
AND AI.INVOICE_TYPE_LOOKUP_CODE||'' = 'EXPENSE REPORT'
AND A.ATTRIBUTE_CODE = 'ICX_HR_PERSON_ID'
AND AI.PAID_ON_BEHALF_EMPLOYEE_ID = A.NUMBER_VALUE
AND A.WEB_USER_ID = :5
AND P.PERSON_ID = AI.PAID_ON_BEHALF_EMPLOYEE_ID
AND AP_WEB_DB_HR_INT_PKG.IsPersonCwk(AI.PAID_ON_BEHALF_EMPLOYEE_ID)='Y'
AND DECODE (AI.PAYMENT_STATUS_FLAG,
         'Y', sysdate - AI.LAST_UPDATE_DATE,
        decode(APS.GROSS_AMOUNT , 0 ,sysdate - AI.LAST_UPDATE_DATE,0)
          )  <= 30
AND (AERH.SOURCE <> 'Both Pay' OR AERH.REPORT_HEADER_ID IS NULL)) QRSLT  WHERE (REPORT_SUBMITTED_DATE is not null)
at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:603)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
at _OA._jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
## Detail 0 ##
java.sql.SQLException: ORA-01008: not all variables bound
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
at oracle.apps.ap.oie.webui.Custom_HomePageCO.processRequest(Custom_HomePageCO.java:26)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
at _OA._jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
java.sql.SQLException: ORA-01008: not all variables bound
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375)
at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544)
at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619)
at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326)
at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441)
at oracle.apps.ap.oie.webui.Custom_HomePageCO.processRequest(Custom_HomePageCO.java:26)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:587)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1136)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:959)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:926)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:646)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:247)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2360)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1759)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432)
at _OA._jspService(OA.jsp:33)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
at java.lang.Thread.run(Thread.java:534)
I have took the sql from error message and i tried executing the same in toad... i was able execute it smoothly... i dot know why its working while running the page
Please help me guys...
Thanks,
Pavan

Hi Shobhi,
Actually this relates to the Iexpenese Module. The VO is "oracle.apps.ap.oie.server.TrackExpenseReportsVO"(Seeded)
The user Expense home screen is based on the above VO and this view returning multiple line for the same expense number which should be eliminated.
so for this i need to filter data by adding where clause dynamically on top of the existing where conditions so that i can eliminate the duplicate row.
Please suggest me !! how to move on
Thanks,
Pavan V
91-9640871542

Similar Messages

  • Java.sql.SQLException: ORA-01008: not all variables bound

    Hi
    I have a custom search results page, in the search region user would select a supplier and then searches for the invoices of that supplier by entering the partial value for invoice field, but when i click on invoice LOV i am getting below error.
    i am not sure why the system is adding bind variables :3 to :7, please let me know any pointers to resolve the error.
    Note: dynamically i am setting the bind variables :1 and :2 but its failing because of the other system added bind variables.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select invoice_number,supplier_number,supplier_site,invoice_amount,null invoice_date,null Source,'Invoices' record_location
    from audit_invoices
    where invoice_number like :1
    and supplier_number = :2
    union all
    select invoice_num,vendor_num,vendor_site_code,invoice_amount,invoice_date,null Source,'InvoiceIT' record_location
    from xxit3_invoices
    where invoice_num like :1
    and vendor_num = :2
    union all
    select ai.invoice_num,pv.segment1 sup_number,pvs.vendor_site_code,ai.invoice_amount,ai.invoice_date,ai.source,'Payables' record_location
    from ap_invoices_all ai,po_vendor_sites_all pvs,po_vendors pv
    where invoice_num like :1
    and ai.vendor_id = pv.vendor_id
    and ai.vendor_site_id = pvs.vendor_site_id
    and pv.segment1 = :2) QRSLT WHERE (( UPPER(INVOICE_NUMBER) like :3 AND (INVOICE_NUMBER like :4 OR INVOICE_NUMBER like :5 OR INVOICE_NUMBER like :6 OR INVOICE_NUMBER like :7)))
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408)
         at oracle.apps.fnd.framework.webui.OAPageBean.processFormData(OAPageBean.java:2555)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1677)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:509)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:430)
         at OA.jspService(OA.jsp:33)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    Rgds,
    -kamal

    // Repeated Due to Network Issue.
    Kamal,
    Replace your VO with the following
    * select invoice_number,supplier_number,supplier_site,invoice_amount,null invoice_date,null Source,'Invoices' record_location
    from audit_invoices
    where invoice_number like :1
    and supplier_number = :2
    union all
    select invoice_num,vendor_num,vendor_site_code,invoice_amount,invoice_date,null Source,'InvoiceIT' record_location
    from xxit3_invoices
    where invoice_num like :3
    and vendor_num = :4
    union all
    select ai.invoice_num,pv.segment1 sup_number,pvs.vendor_site_code,ai.invoice_amount,ai.invoice_date,ai.source,'Payables' record_location
    from ap_invoices_all ai,po_vendor_sites_all pvs,po_vendors pv
    where invoice_num like :5
    and ai.vendor_id = pv.vendor_id
    and ai.vendor_site_id = pvs.vendor_site_id
    and pv.segment1 = :6 *
    Even though your Bind variable are same but in VO you have to pass the parameter for all the above like above.
    And set the whereclause based on the value required in parameter and the others as null.
    Hope you got it.
    Regards,
    Gyan

  • I am getting ORA-01008:not all variables bound error

    Hi all,
    i am getting ORA-01008:not all variables bound error while executing the following code...
    Could any one help me to find out the problem...i am very new to ODP.net and Oracle ..
    I am using VC++.net for run this code.
    Here is the code.....
    #include <iostream>
    using namespace std;
    using namespace System;
    using namespace Oracle::DataAccess::Client;
    class Sample
    public:
         Sample();
    ~Sample();
    Sample::Sample()
         int num = 100;
         int sal = 200;
    //connect to Oracle
         OracleConnection ^con ;
         con = gcnew OracleConnection();
         con->ConnectionString = "User Id=test;Password=test;Data Source=test.local.com";
         //Oracle command part
         OracleCommand ^cmd;
         cmd = con->CreateCommand();
         cmd->CommandText = "insert into simple values (:num, :sal)";
         try
              con->Open();
              cmd->ExecuteNonQuery();
         catch (Exception ^e)
              Console::WriteLine("Execution Failed:" + e->Message);
    finally
              con->Close();          
    Sample::~Sample()
    int main()
         Sample samp;
         return 0;
    sorrry lack of comments.....
    plz help me out..
    thanks in advance..
    justin

    Hello,
    You have 2 bind variables in your statement (:num and :sal) but you have not created parameters and bound them to the bind variables.
    - Mark

  • Why does this cause error (ORA 01008: Not all variables bound)

    When I assign values to parameters for a command object, I used the following code with the .NET provider:
    If oReq.CritSpec = Nothing Or oReq.CritSpec = "" Then
    cmdReq.Parameters.Add(":po5", DBNull.Value)
    Else
    cmdReq.Parameters.Add(":po5", oReq.CritSpec)
    End If
    This works fine, but when I switch to using ODP it generates the 'not all variables bound' error. I checked the parameter's status and it was Success. However, if I change the second line of the statement to
    If oReq.CritSpec = Nothing Or oReq.CritSpec = "" Then
    cmdReq.Parameters.Add(":po5", OracleDbType.Varchar2, DBNull.Value, ParameterDirection.Input)
    Else
    cmdReq.Parameters.Add(":po5", nReq.CritSpec)
    End If
    It seems to be OK. So my question is - why does the first statement generate the error? Am I misinterpreting the overloaded constructor or it it a bug in my code? Thanks.
    ck

    No need to answer, I solved it.
    For anyone else who might run into this, there were two issues:
    1. Assigning DBNull.Value to a parameter without specifying the parameter's type causes the Value property for that parameter to not be initialized. If you reference it, it will come back as a runtime error (check it first by testing for IsNot Nothing).
    2. In my update code, I have a lot of where clauses like "WHERE (COL1 = :1 OR COL1 IS NULL AND :1 IS NULL)". The default binding for parameters treats these two references to :1 as two different parameters. Setting BindByName to true solves the problem.
    ck
    Edited by: user536671 on Feb 15, 2009 7:04 PM

  • Error ORA-01008: Not all variables bound

    SELECT
    MAX((SELECT TO_CHAR(MAX(a.order_number)) FROM oe_order_headers_All a WHERE a.cust_po_number=ct.purchase_order)) AS order_number1,  
         MAX(DECODE(CT.PREVIOUS_CUSTOMER_TRX_ID,NULL,ct.interface_header_attribute1,(SELECT ct1.interface_header_attribute1
                                                                   FROM  ra_customer_trx_all CT1
                                       WHERE CT1.CUSTOMER_TRX_ID = CT.PREVIOUS_CUSTOMER_TRX_ID))) AS ORDER_NUMBER,
    0 AS order_value,
    NVL(ct.purchase_order,SU.LOCATION) purchase_order,
        (SELECT SUM(L.ORDERED_QUANTITY*L.UNIT_SELLING_PRICE)
        FROM oe_order_lines_all l,
           oe_order_headers_all h
      WHERE l.header_id = h.header_id
      AND h.order_number IN (SELECT MAX(a.order_number) FROM oe_order_headers_All a WHERE a.cust_po_number=ct.purchase_order)) AS order_value1,                          
    null AS CONTRACT_START_DATE,
    (SELECT MIN(TRUNC(TO_DATE(l.Attribute14), 'DD'))
        FROM oe_order_lines_all l,
           oe_order_headers_all h
      WHERE l.header_id = h.header_id
      AND h.order_number IN (SELECT MAX(a.order_number) FROM oe_order_headers_All a WHERE a.cust_po_number=ct.purchase_order)) AS CONTRACT_START_DATE1,
    null AS CONTRACT_END_DATE,
       (SELECT MAX(TRUNC(TO_DATE(l.Attribute14), 'DD'))
        FROM oe_order_lines_all l,
           oe_order_headers_all h
      WHERE l.header_id = h.header_id
      AND h.order_number IN (SELECT MAX(a.order_number) FROM oe_order_headers_All a WHERE a.cust_po_number=ct.purchase_order)) AS CONTRACT_END_DATE1,                            
            CUST_ACCT.ACCOUNT_NUMBER,
              SUBSTRB(party.party_name,1,50) Cust_name,
              SU.LOCATION AS MID,
              PS.TRX_NUMBER AS INVOICE_NUM,
              PS.TRX_DATE AS INVOICE_DATE,
              PS.AMOUNT_DUE_ORIGINAL AS INVOICE_VALUE,
              ctt.description,
              CT.PREVIOUS_CUSTOMER_TRX_ID,
              CT.CUSTOMER_TRX_ID,
    ((SELECT NVL( SUM ( DECODE
                       ( 'Y', 'Y',
                          (DECODE(ps9.CLASS, 'CM',
                                       DECODE ( ra9.application_type, 'CM',
                                                 ra9.acctd_amount_applied_from,
                                                 ra9.acctd_amount_applied_to),
                                       ra9.acctd_amount_applied_to) +
                            NVL(ra9.acctd_earned_discount_taken,0) +
                           NVL(ra9.acctd_unearned_discount_taken,0) ),
                         ( ra9.amount_applied +
                           NVL(ra9.earned_discount_taken,0) +
                           NVL(ra9.unearned_discount_taken,0) )
                       DECODE
                       ( ps9.CLASS, 'CM',
                         DECODE(ra9.application_type, 'CM', -1, 1), 1 )
                    ), 0 )
        FROM  ar_receivable_applications ra9,
                ar_cash_receipt_history crh9,
               ar_payment_schedules ps9
        WHERE (ra9.applied_payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
                   OR
                   ra9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID)
       AND   ra9.status||'' = 'APP'
            AND   ra9.cash_receipt_history_id = crh9.cash_receipt_history_id(+)
            AND   (crh9.reversal_gl_date IS NULL
                   OR crh9.reversal_gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY'))
        AND   NVL( ra9.confirmed_flag, 'Y' ) = 'Y'
        AND   ra9.gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY')
        AND   ps9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
       )) + PS.AMOUNT_DUE_REMAINING AMOUNT_DUE_REMAINING,
       PS.CUSTOMER_TRX_ID AS PS_CUSTOMER_TRX_ID,
       PS.CUST_TRX_TYPE_ID,
       PS.CUSTOMER_ID,
       PS.CUSTOMER_SITE_USE_ID,
       AR1.RECEIPT_NUMBER,
       AR1.AMOUNT_APPLIED,
       AR1.APPLY_DATE,
       ct.interface_header_attribute1,
        CASE
    WHEN (( ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) >=1 )  AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 30 ))
    THEN '  1 - 30  Days Due'
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 31) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 60) )
    THEN ' 31 - 60  Days Due'
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 61) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 90 ))
    THEN ' 61 - 90  Days Due'
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 91) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 180 ))
    THEN ' 91 - 180 Days Due'
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 181) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 360 ))
    THEN '181 - 360 Days Due'
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 361) )
    THEN '361+ Days Due'
    ELSE 'Current'
    END AS aging,
    NULL cash_receipt_id,
    AR1.GL_POSTED_DATE,
    CASE
    WHEN (( ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) >=1 )  AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 30 ))
    THEN
    NULL
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 31) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 60) )
    THEN
    NULL
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 61) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 90 ))
    THEN
    NULL
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 91) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 180 ))
    THEN
    NULL
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 181) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 360 ))
    THEN
    NULL
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 361) )
    THEN
    NULL
    ELSE
    ((SELECT NVL( SUM ( DECODE
                       ( 'Y', 'Y',
                          (DECODE(ps9.CLASS, 'CM',
                                       DECODE ( ra9.application_type, 'CM',
                                                 ra9.acctd_amount_applied_from,
                                                 ra9.acctd_amount_applied_to),
                                       ra9.acctd_amount_applied_to) +
                            NVL(ra9.acctd_earned_discount_taken,0) +
                           NVL(ra9.acctd_unearned_discount_taken,0) ),
                         ( ra9.amount_applied +
                           NVL(ra9.earned_discount_taken,0) +
                           NVL(ra9.unearned_discount_taken,0) )
                       DECODE
                       ( ps9.CLASS, 'CM',
                         DECODE(ra9.application_type, 'CM', -1, 1), 1 )
                    ), 0 )
        FROM  ar_receivable_applications ra9,
                ar_cash_receipt_history crh9,
               ar_payment_schedules ps9
        WHERE (ra9.applied_payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
                   OR
                   ra9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID)
       AND   ra9.status||'' = 'APP'
            AND   ra9.cash_receipt_history_id = crh9.cash_receipt_history_id(+)
            AND   (crh9.reversal_gl_date IS NULL
                   OR crh9.reversal_gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY'))
        AND   NVL( ra9.confirmed_flag, 'Y' ) = 'Y'
        AND   ra9.gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY')
        AND   ps9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
       )) + PS.AMOUNT_DUE_REMAINING
    END AS Current_AGE,
    CASE
    WHEN (( ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) >=1 )  AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 30 ))
    THEN
    ((SELECT NVL( SUM ( DECODE
                       ( 'Y', 'Y',
                          (DECODE(ps9.CLASS, 'CM',
                                       DECODE ( ra9.application_type, 'CM',
                                                 ra9.acctd_amount_applied_from,
                                                 ra9.acctd_amount_applied_to),
                                       ra9.acctd_amount_applied_to) +
                            NVL(ra9.acctd_earned_discount_taken,0) +
                           NVL(ra9.acctd_unearned_discount_taken,0) ),
                         ( ra9.amount_applied +
                           NVL(ra9.earned_discount_taken,0) +
                           NVL(ra9.unearned_discount_taken,0) )
                       DECODE
                       ( ps9.CLASS, 'CM',
                         DECODE(ra9.application_type, 'CM', -1, 1), 1 )
                    ), 0 )
        FROM  ar_receivable_applications ra9,
                ar_cash_receipt_history crh9,
               ar_payment_schedules ps9
        WHERE (ra9.applied_payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
                   OR
                   ra9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID)
       AND   ra9.status||'' = 'APP'
            AND   ra9.cash_receipt_history_id = crh9.cash_receipt_history_id(+)
            AND   (crh9.reversal_gl_date IS NULL
                   OR crh9.reversal_gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY'))
        AND   NVL( ra9.confirmed_flag, 'Y' ) = 'Y'
        AND   ra9.gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY')
        AND   ps9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
       )) + PS.AMOUNT_DUE_REMAINING
    END AS S30_Days,
    CASE
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 31) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 60) )
    THEN
    ((SELECT NVL( SUM ( DECODE
                       ( 'Y', 'Y',
                          (DECODE(ps9.CLASS, 'CM',
                                       DECODE ( ra9.application_type, 'CM',
                                                 ra9.acctd_amount_applied_from,
                                                 ra9.acctd_amount_applied_to),
                                       ra9.acctd_amount_applied_to) +
                            NVL(ra9.acctd_earned_discount_taken,0) +
                           NVL(ra9.acctd_unearned_discount_taken,0) ),
                         ( ra9.amount_applied +
                           NVL(ra9.earned_discount_taken,0) +
                           NVL(ra9.unearned_discount_taken,0) )
                       DECODE
                       ( ps9.CLASS, 'CM',
                         DECODE(ra9.application_type, 'CM', -1, 1), 1 )
                    ), 0 )
        FROM  ar_receivable_applications ra9,
                ar_cash_receipt_history crh9,
               ar_payment_schedules ps9
        WHERE (ra9.applied_payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
                   OR
                   ra9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID)
       AND   ra9.status||'' = 'APP'
            AND   ra9.cash_receipt_history_id = crh9.cash_receipt_history_id(+)
            AND   (crh9.reversal_gl_date IS NULL
                   OR crh9.reversal_gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY'))
        AND   NVL( ra9.confirmed_flag, 'Y' ) = 'Y'
        AND   ra9.gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY')
        AND   ps9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
       )) + PS.AMOUNT_DUE_REMAINING
    END AS S31_60_Days,
    CASE
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 61) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 90 ))
    THEN
    ((SELECT NVL( SUM ( DECODE
                       ( 'Y', 'Y',
                          (DECODE(ps9.CLASS, 'CM',
                                       DECODE ( ra9.application_type, 'CM',
                                                 ra9.acctd_amount_applied_from,
                                                 ra9.acctd_amount_applied_to),
                                       ra9.acctd_amount_applied_to) +
                            NVL(ra9.acctd_earned_discount_taken,0) +
                           NVL(ra9.acctd_unearned_discount_taken,0) ),
                         ( ra9.amount_applied +
                           NVL(ra9.earned_discount_taken,0) +
                           NVL(ra9.unearned_discount_taken,0) )
                       DECODE
                       ( ps9.CLASS, 'CM',
                         DECODE(ra9.application_type, 'CM', -1, 1), 1 )
                    ), 0 )
        FROM  ar_receivable_applications ra9,
                ar_cash_receipt_history crh9,
               ar_payment_schedules ps9
        WHERE (ra9.applied_payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
                   OR
                   ra9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID)
       AND   ra9.status||'' = 'APP'
            AND   ra9.cash_receipt_history_id = crh9.cash_receipt_history_id(+)
            AND   (crh9.reversal_gl_date IS NULL
                   OR crh9.reversal_gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY'))
        AND   NVL( ra9.confirmed_flag, 'Y' ) = 'Y'
        AND   ra9.gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY')
        AND   ps9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
       )) + PS.AMOUNT_DUE_REMAINING
    END AS S61_90_Days,
    CASE
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 91) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 180 ))
    THEN
    ((SELECT NVL( SUM ( DECODE
                       ( 'Y', 'Y',
                          (DECODE(ps9.CLASS, 'CM',
                                       DECODE ( ra9.application_type, 'CM',
                                                 ra9.acctd_amount_applied_from,
                                                 ra9.acctd_amount_applied_to),
                                       ra9.acctd_amount_applied_to) +
                            NVL(ra9.acctd_earned_discount_taken,0) +
                           NVL(ra9.acctd_unearned_discount_taken,0) ),
                         ( ra9.amount_applied +
                           NVL(ra9.earned_discount_taken,0) +
                           NVL(ra9.unearned_discount_taken,0) )
                       DECODE
                       ( ps9.CLASS, 'CM',
                         DECODE(ra9.application_type, 'CM', -1, 1), 1 )
                    ), 0 )
        FROM  ar_receivable_applications ra9,
                ar_cash_receipt_history crh9,
               ar_payment_schedules ps9
        WHERE (ra9.applied_payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
                   OR
                   ra9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID)
       AND   ra9.status||'' = 'APP'
            AND   ra9.cash_receipt_history_id = crh9.cash_receipt_history_id(+)
            AND   (crh9.reversal_gl_date IS NULL
                   OR crh9.reversal_gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY'))
        AND   NVL( ra9.confirmed_flag, 'Y' ) = 'Y'
        AND   ra9.gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY')
        AND   ps9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
       )) + PS.AMOUNT_DUE_REMAINING
    END AS S91_180_Days,
    CASE
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 181) AND  (ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0) <= 360 ))
    THEN
    ((SELECT NVL( SUM ( DECODE
                       ( 'Y', 'Y',
                          (DECODE(ps9.CLASS, 'CM',
                                       DECODE ( ra9.application_type, 'CM',
                                                 ra9.acctd_amount_applied_from,
                                                 ra9.acctd_amount_applied_to),
                                       ra9.acctd_amount_applied_to) +
                            NVL(ra9.acctd_earned_discount_taken,0) +
                           NVL(ra9.acctd_unearned_discount_taken,0) ),
                         ( ra9.amount_applied +
                           NVL(ra9.earned_discount_taken,0) +
                           NVL(ra9.unearned_discount_taken,0) )
                       DECODE
                       ( ps9.CLASS, 'CM',
                         DECODE(ra9.application_type, 'CM', -1, 1), 1 )
                    ), 0 )
        FROM  ar_receivable_applications ra9,
                ar_cash_receipt_history crh9,
               ar_payment_schedules ps9
        WHERE (ra9.applied_payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
                   OR
                   ra9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID)
       AND   ra9.status||'' = 'APP'
            AND   ra9.cash_receipt_history_id = crh9.cash_receipt_history_id(+)
            AND   (crh9.reversal_gl_date IS NULL
                   OR crh9.reversal_gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY'))
        AND   NVL( ra9.confirmed_flag, 'Y' ) = 'Y'
        AND   ra9.gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY')
        AND   ps9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
       )) + PS.AMOUNT_DUE_REMAINING
    END AS S181_360_Days,
    CASE
    WHEN ((ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 361) )
    THEN
    ((SELECT NVL( SUM ( DECODE
                       ( 'Y', 'Y',
                          (DECODE(ps9.CLASS, 'CM',
                                       DECODE ( ra9.application_type, 'CM',
                                                 ra9.acctd_amount_applied_from,
                                                 ra9.acctd_amount_applied_to),
                                       ra9.acctd_amount_applied_to) +
                            NVL(ra9.acctd_earned_discount_taken,0) +
                           NVL(ra9.acctd_unearned_discount_taken,0) ),
                         ( ra9.amount_applied +
                           NVL(ra9.earned_discount_taken,0) +
                           NVL(ra9.unearned_discount_taken,0) )
                       DECODE
                       ( ps9.CLASS, 'CM',
                         DECODE(ra9.application_type, 'CM', -1, 1), 1 )
                    ), 0 )
        FROM  ar_receivable_applications ra9,
                ar_cash_receipt_history crh9,
               ar_payment_schedules ps9
        WHERE (ra9.applied_payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
                   OR
                   ra9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID)
       AND   ra9.status||'' = 'APP'
            AND   ra9.cash_receipt_history_id = crh9.cash_receipt_history_id(+)
            AND   (crh9.reversal_gl_date IS NULL
                   OR crh9.reversal_gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY'))
        AND   NVL( ra9.confirmed_flag, 'Y' ) = 'Y'
        AND   ra9.gl_date+0 > TO_DATE(:SYSDATE1,'DD-MON-YY')
        AND   ps9.payment_schedule_id = PS.PAYMENT_SCHEDULE_ID
       )) + PS.AMOUNT_DUE_REMAINING
    END AS S361_plus_Days,
    PS.PAYMENT_SCHEDULE_ID
    FROM ar_lookups                 al_status,
       ar_collectors              ar_coll,
       ar_cons_inv_all            cons,
       ra_cust_trx_types_all          ctt,
       ra_batch_sources_all          bs,
       ra_customer_trx_all          ct,
       hz_cust_site_uses_all          su,
       hz_cust_accounts            cust_acct,
       hz_parties              party,
       ar_payment_schedules_all        ps,
       AR_RECEIVABLE_APPLICATIONS_V      ar1
    WHERE
    PS.CUSTOMER_ID                    = CUST_ACCT.CUST_ACCOUNT_ID        AND
    CUST_ACCT.PARTY_ID              = PARTY.PARTY_ID            AND
    PS.CUSTOMER_SITE_USE_ID          = SU.SITE_USE_ID            AND
    PS.CUSTOMER_TRX_ID              = CT.CUSTOMER_TRX_ID          AND
    CT.BATCH_SOURCE_ID              = BS.BATCH_SOURCE_ID          AND
    CT.CUST_TRX_TYPE_ID            = CTT.CUST_TRX_TYPE_ID          AND
    PS.STATUS                  = AL_STATUS.LOOKUP_CODE          AND
    AL_STATUS.LOOKUP_TYPE            = 'INVOICE_TRX_STATUS'          AND
    PS.COLLECTOR_LAST              = AR_COLL.COLLECTOR_ID (+)        AND
    PS.CONS_INV_ID                = CONS.CONS_INV_ID (+)          AND
    PS.STATUS                  = NVL(ARP_VIEW_CONSTANTS.GET_STATUS,PS.STATUS) AND
    su.site_use_code              = 'BILL_TO'                        AND
    SU.location                NOT LIKE '0%'                       AND
    SU.LOCATION NOT IN ('INTERCO') AND
    AR1.CUSTOMER_TRX_ID  (+)             =PS.CUSTOMER_TRX_ID                 AND
    AR1.CUST_TRX_TYPE_ID(+)             =PS.CUST_TRX_TYPE_ID               AND
    AR1.CUSTOMER_ID  (+)               =PS.CUSTOMER_ID                   AND
    AR1.BILL_TO_SITE_USE_ID  (+)          =PS.CUSTOMER_SITE_USE_ID             AND
    AR1.TRX_CLASS_CODE(+)           =PS.CLASS                     AND
    AR1.TRX_NUMBER(+)               =PS.TRX_NUMBER                   AND
    SU.ORG_ID =144
    --AR1.GL_POSTED_DATE <= TO_DATE(:SYSDATE1,'DD-MON-YY')
    --AND   ROUND((TO_DATE(:SYSDATE1,'DD-MON-YY') - ps.DUE_DATE),0)  >= 181
    --and PS.AMOUNT_DUE_REMAINING >0
    ----and SUBSTRB(party.party_name,1,50) like 'A%'
    --AND CUST_ACCT.ACCOUNT_NUMBER IN ( 6319)
    &LP_CUST_NO
    &LP_CUST_NAME
    AND PS.TRX_DATE < = TO_DATE(:SYSDATE1,'DD-MON-YY')
    GROUP BY CUST_ACCT.ACCOUNT_NUMBER,
        SUBSTRB(party.party_name,1,50),
        SU.LOCATION ,
         PS.TRX_NUMBER,
        PS.TRX_DATE,
        PS.AMOUNT_DUE_ORIGINAL,
        ctt.description,
        CT.PREVIOUS_CUSTOMER_TRX_ID,
        CT.CUSTOMER_TRX_ID,
        PS.AMOUNT_DUE_REMAINING,
        PS.CUSTOMER_TRX_ID,
           PS.CUST_TRX_TYPE_ID,
           PS.CUSTOMER_ID,
           PS.CUSTOMER_SITE_USE_ID,
          AR1.RECEIPT_NUMBER,
           AR1.AMOUNT_APPLIED,
           AR1.APPLY_DATE,
           ct.interface_header_attribute1,
           ct.purchase_order,
        AR1.GL_POSTED_DATE,
        ps.DUE_DATE,
        PS.PAYMENT_SCHEDULE_ID

    In that case do a quick replace of :SYSDATE1 as SYSDATE and try running it.

  • Oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation

    I have extended PoRequisitionLinesVO in iProcurement,My requirement is to copy an existing foreign currency requisition so that the newly created requisition will be created with current exchange rate.
    After deployment when I am clicking on NonCatalogRequest I am getting the following error  :
    <!--StartFragment-->oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation.  Statement: SELECT * FROM (SELECT PoRequisitionLineEO.REQUISITION_LINE_ID,
           PoRequisitionLineEO.REQUISITION_HEADER_ID,
           PoRequisitionLineEO.LINE_NUM,
           PoRequisitionLineEO.LAST_UPDATE_DATE,
           PoRequisitionLineEO.LAST_UPDATED_BY,
           PoRequisitionLineEO.LAST_UPDATE_LOGIN,
           PoRequisitionLineEO.CREATION_DATE,
           PoRequisitionLineEO.CREATED_BY,
           PoRequisitionLineEO.DELIVER_TO_LOCATION_ID,
           PoRequisitionLineEO.TO_PERSON_ID,
           PoRequisitionLineEO.ITEM_DESCRIPTION,
           PoRequisitionLineEO.CATEGORY_ID,
           PoRequisitionLineEO.UNIT_MEAS_LOOKUP_CODE,
           PoRequisitionLineEO.UNIT_PRICE,
           PoRequisitionLineEO.QUANTITY,
           PoRequisitionLineEO.LINE_TYPE_ID,
           PoRequisitionLineEO.SOURCE_TYPE_CODE,
           PoRequisitionLineEO.ITEM_ID,
           PoRequisitionLineEO.ITEM_REVISION,
           PoRequisitionLineEO.QUANTITY_DELIVERED,
           PoRequisitionLineEO.SUGGESTED_BUYER_ID,
           PoRequisitionLineEO.ENCUMBERED_FLAG,
           PoRequisitionLineEO.RFQ_REQUIRED_FLAG,
           PoRequisitionLineEO.NEED_BY_DATE,
           PoRequisitionLineEO.LINE_LOCATION_ID,
           PoRequisitionLineEO.MODIFIED_BY_AGENT_FLAG,
           PoRequisitionLineEO.PARENT_REQ_LINE_ID,
           PoRequisitionLineEO.JUSTIFICATION,
           PoRequisitionLineEO.NOTE_TO_AGENT,
           PoRequisitionLineEO.NOTE_TO_RECEIVER,
           PoRequisitionLineEO.PURCHASING_AGENT_ID,
           PoRequisitionLineEO.DOCUMENT_TYPE_CODE,
           PoRequisitionLineEO.BLANKET_PO_HEADER_ID,
           PoRequisitionLineEO.BLANKET_PO_LINE_NUM,
           PoRequisitionLineEO.CURRENCY_CODE,
           PoRequisitionLineEO.RATE_TYPE,
           /*PoRequisitionLineEO.RATE_DATE*/trunc(SYSDATE) rate_DATE,
           /*PoRequisitionLineEO.RATE*/
           (SELECT conversion_rate
              FROM gl_daily_rates
                   ,hr_operating_units hou
                   ,gl_sets_of_books sob
             WHERE from_currency = PoRequisitionLineEO.CURRENCY_CODE
             AND to_currency = sob.currency_code
             AND conversion_type = PoRequisitionLineEO.RATE_TYPE
             AND conversion_date = trunc(SYSDATE)
             AND  hou.organization_id = PoRequisitionLineEO.org_id
              AND hou.set_of_books_id = sob.SET_OF_BOOKS_ID ) rate,
           PoRequisitionLineEO.CURRENCY_UNIT_PRICE,
           PoRequisitionLineEO.SUGGESTED_VENDOR_NAME,
           PoRequisitionLineEO.SUGGESTED_VENDOR_LOCATION,
           PoRequisitionLineEO.SUGGESTED_VENDOR_CONTACT,
           PoRequisitionLineEO.SUGGESTED_VENDOR_PHONE,
           PoRequisitionLineEO.SUGGESTED_VENDOR_PRODUCT_CODE,
           PoRequisitionLineEO.UN_NUMBER_ID,
           PoRequisitionLineEO.HAZARD_CLASS_ID,
           PoRequisitionLineEO.MUST_USE_SUGG_VENDOR_FLAG,
           PoRequisitionLineEO.REFERENCE_NUM,
           PoRequisitionLineEO.ON_RFQ_FLAG,
           PoRequisitionLineEO.URGENT_FLAG,
           PoRequisitionLineEO.CANCEL_FLAG,
           PoRequisitionLineEO.SOURCE_ORGANIZATION_ID,
           PoRequisitionLineEO.SOURCE_SUBINVENTORY,
           PoRequisitionLineEO.DESTINATION_TYPE_CODE,
           PoRequisitionLineEO.DESTINATION_ORGANIZATION_ID,
           PoRequisitionLineEO.DESTINATION_SUBINVENTORY,
           PoRequisitionLineEO.QUANTITY_CANCELLED,
           PoRequisitionLineEO.CANCEL_DATE,
           PoRequisitionLineEO.CANCEL_REASON,
           PoRequisitionLineEO.CLOSED_CODE,
           PoRequisitionLineEO.AGENT_RETURN_NOTE,
           PoRequisitionLineEO.CHANGED_AFTER_RESEARCH_FLAG,
           PoRequisitionLineEO.VENDOR_ID,
           PoRequisitionLineEO.VENDOR_SITE_ID,
           PoRequisitionLineEO.VENDOR_CONTACT_ID,
           PoRequisitionLineEO.RESEARCH_AGENT_ID,
           PoRequisitionLineEO.ON_LINE_FLAG,
           PoRequisitionLineEO.WIP_ENTITY_ID,
           PoRequisitionLineEO.WIP_LINE_ID,
           PoRequisitionLineEO.WIP_REPETITIVE_SCHEDULE_ID,
           PoRequisitionLineEO.WIP_OPERATION_SEQ_NUM,
           PoRequisitionLineEO.WIP_RESOURCE_SEQ_NUM,
           PoRequisitionLineEO.ATTRIBUTE_CATEGORY,
           PoRequisitionLineEO.DESTINATION_CONTEXT,
           PoRequisitionLineEO.INVENTORY_SOURCE_CONTEXT,
           PoRequisitionLineEO.VENDOR_SOURCE_CONTEXT,
           PoRequisitionLineEO.BOM_RESOURCE_ID,
           PoRequisitionLineEO.REQUEST_ID,
           PoRequisitionLineEO.PROGRAM_APPLICATION_ID,
           PoRequisitionLineEO.PROGRAM_ID,
           PoRequisitionLineEO.PROGRAM_UPDATE_DATE,
           PoRequisitionLineEO.USSGL_TRANSACTION_CODE,
           PoRequisitionLineEO.GOVERNMENT_CONTEXT,
           PoRequisitionLineEO.CLOSED_REASON,
           PoRequisitionLineEO.CLOSED_DATE,
           PoRequisitionLineEO.TRANSACTION_REASON_CODE,
           PoRequisitionLineEO.QUANTITY_RECEIVED,
           PoRequisitionLineEO.SOURCE_REQ_LINE_ID,
           PoRequisitionLineEO.ORG_ID,
           PoRequisitionLineEO.KANBAN_CARD_ID,
           PoRequisitionLineEO.CATALOG_TYPE,
           PoRequisitionLineEO.CATALOG_SOURCE,
           PoRequisitionLineEO.MANUFACTURER_ID,
           PoRequisitionLineEO.MANUFACTURER_NAME,
           PoRequisitionLineEO.MANUFACTURER_PART_NUMBER,
           PoRequisitionLineEO.REQUESTER_EMAIL,
           PoRequisitionLineEO.REQUESTER_FAX,
           PoRequisitionLineEO.REQUESTER_PHONE,
           PoRequisitionLineEO.UNSPSC_CODE,
           PoRequisitionLineEO.OTHER_CATEGORY_CODE,
           PoRequisitionLineEO.SUPPLIER_DUNS,
           PoRequisitionLineEO.TAX_STATUS_INDICATOR,
           PoRequisitionLineEO.PCARD_FLAG,
           PoRequisitionLineEO.NEW_SUPPLIER_FLAG,
           PoRequisitionLineEO.AUTO_RECEIVE_FLAG,
           PoRequisitionLineEO.TAX_USER_OVERRIDE_FLAG,
           PoRequisitionLineEO.TAX_CODE_ID,
           PoRequisitionLineEO.NOTE_TO_VENDOR,
           PoRequisitionLineEO.OKE_CONTRACT_VERSION_ID,
           PoRequisitionLineEO.OKE_CONTRACT_HEADER_ID,
           PoRequisitionLineEO.ITEM_SOURCE_ID,
           PoRequisitionLineEO.SUPPLIER_REF_NUMBER,
           PoRequisitionLineEO.SECONDARY_UNIT_OF_MEASURE,
           PoRequisitionLineEO.SECONDARY_QUANTITY,
           PoRequisitionLineEO.PREFERRED_GRADE,
           PoRequisitionLineEO.SECONDARY_QUANTITY_RECEIVED,
           PoRequisitionLineEO.SECONDARY_QUANTITY_CANCELLED,
           PoRequisitionLineEO.AUCTION_HEADER_ID,
           PoRequisitionLineEO.AUCTION_DISPLAY_NUMBER,
           PoRequisitionLineEO.AUCTION_LINE_NUMBER,
           PoRequisitionLineEO.REQS_IN_POOL_FLAG,
           PoRequisitionLineEO.VMI_FLAG,
           PoRequisitionLineEO.ATTRIBUTE1,
           PoRequisitionLineEO.ATTRIBUTE2,
           PoRequisitionLineEO.ATTRIBUTE3,
           PoRequisitionLineEO.ATTRIBUTE4,
           PoRequisitionLineEO.ATTRIBUTE5,
           PoRequisitionLineEO.ATTRIBUTE6,
           PoRequisitionLineEO.ATTRIBUTE7,
           PoRequisitionLineEO.ATTRIBUTE8,
           PoRequisitionLineEO.ATTRIBUTE9,
           PoRequisitionLineEO.ATTRIBUTE10,
           PoRequisitionLineEO.ATTRIBUTE11,
           PoRequisitionLineEO.ATTRIBUTE12,
           PoRequisitionLineEO.ATTRIBUTE13,
           PoRequisitionLineEO.ATTRIBUTE14,
           PoRequisitionLineEO.ATTRIBUTE15,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE1,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE2,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE3,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE4,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE5,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE6,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE7,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE8,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE9,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE10,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE11,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE12,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE13,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE14,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE15,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE16,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE17,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE18,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE19,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE20,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE_CATEGORY,
           PoRequisitionLineEO.BID_NUMBER,
           PoRequisitionLineEO.BID_LINE_NUMBER,
           PoRequisitionLineEO.AMOUNT,
           PoRequisitionLineEO.CURRENCY_AMOUNT,
           PoRequisitionLineEO.NONCAT_TEMPLATE_ID,
           PoRequisitionLineEO.JOB_ID,
           PoRequisitionLineEO.CONTACT_INFORMATION,
           PoRequisitionLineEO.CANDIDATE_SCREENING_REQD_FLAG,
           PoRequisitionLineEO.SUGGESTED_SUPPLIER_FLAG,
           PoRequisitionLineEO.ASSIGNMENT_END_DATE,
           PoRequisitionLineEO.OVERTIME_ALLOWED_FLAG,
           PoRequisitionLineEO.CONTRACTOR_REQUISITION_FLAG,
           PoRequisitionLineEO.LABOR_REQ_LINE_ID,
           PoRequisitionLineEO.JOB_LONG_DESCRIPTION,
           PoRequisitionLineEO.CONTRACTOR_STATUS,
           PoRequisitionLineEO.SUGGESTED_VENDOR_CONTACT_FAX,
           PoRequisitionLineEO.SUGGESTED_VENDOR_CONTACT_EMAIL,
           PoRequisitionLineEO.CANDIDATE_FIRST_NAME,
           PoRequisitionLineEO.CANDIDATE_LAST_NAME,
           PoRequisitionLineEO.ASSIGNMENT_START_DATE,
           PoRequisitionLineEO.ORDER_TYPE_LOOKUP_CODE,
           PoRequisitionLineEO.PURCHASE_BASIS,
           PoRequisitionLineEO.MATCHING_BASIS,
           PoRequisitionLineEO.NEGOTIATED_BY_PREPARER_FLAG,
           PoRequisitionLineEO.BASE_UNIT_PRICE,
           PoRequisitionLineEO.AT_SOURCING_FLAG,
           PoRequisitionLineEO.TAX_ATTRIBUTE_UPDATE_CODE,
           PoRequisitionLineEO.DROP_SHIP_FLAG,
           PoRequisitionLineEO.SHIP_METHOD,
           PoRequisitionLineEO.ESTIMATED_PICKUP_DATE,
           PoRequisitionLineEO.SUPPLIER_NOTIFIED_FOR_CANCEL,
           PoRequisitionLineEO.TAX_NAME
    FROM PO_REQUISITION_LINES_ALL PoRequisitionLineEO) QRSLT  WHERE (nvl(closed_code, 'N') <> 'FINALLY CLOSED' AND nvl(cancel_flag, 'N') = 'N' AND nvl(modified_by_agent_flag, 'N') = 'N' AND line_location_id IS NULL AND ((SELECT nvl(transferred_to_oe_flag, 'N')      FROM po_requisition_headers_all h      WHERE h.requisition_header_id = PoRequisitionLineEO.requisition_header_id)      <> 'Y' OR      source_type_code = 'VENDOR')) AND REQUISITION_HEADER_ID = :1
    at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:996)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
    at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:720)
    at oracle.apps.icx.por.common.webui.ClientUtil.invokeMethod(ClientUtil.java:973)
    at oracle.apps.icx.icatalog.shopping.webui.NonCatalogRequestCO.executeServerCommand(NonCatalogRequestCO.java:1038)
    at oracle.apps.icx.icatalog.shopping.webui.NonCatalogRequestCO.processRequest(NonCatalogRequestCO.java:250)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:604)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1183)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:976)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:943)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:663)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:976)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:943)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:663)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2629)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1949)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:549)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:437)
    at _OA._jspService(_OA.java:204)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    java.sql.SQLSyntaxErrorException: ORA-00904: "POREQUISITIONLINEEO"."REQUISITION_HEADER_ID": invalid identifier
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:861)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
    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)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3754)
    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
    at oracle.apps.icx.por.req.server.PoRequisitionLinesVOImpl.executeQueryForCollection(PoRequisitionLinesVOImpl.java:65)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:688)
    at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2654)
    at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2912)
    at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2086)
    at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:4904)
    at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3405)
    at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigationToRow(ViewRowSetIteratorImpl.java:3546)
    at oracle.jbo.server.ViewRowSetIteratorImpl.notifyNavigation(ViewRowSetIteratorImpl.java:3506)
    at oracle.jbo.server.ViewRowSetIteratorImpl.internalSetCurrentRow(ViewRowSetIteratorImpl.java:3290)
    at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1478)
    at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:2828)
    at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:5831)
    at oracle.apps.icx.por.req.server.ReqSubActionSvrCmd.loadCurrentReqInternal(ReqSubActionSvrCmd.java:1099)
    at oracle.apps.icx.por.req.server.RequisitionSvrCmd.loadCurrentReq(RequisitionSvrCmd.java:1234)
    at oracle.apps.icx.por.req.server.RequisitionAMImpl.loadCurrentReq(RequisitionAMImpl.java:1165)
    at oracle.apps.icx.icatalog.shopping.server.NoncatRequestSvrCmd.defaultAndPopulate(NoncatRequestSvrCmd.java:205)
    at oracle.apps.icx.icatalog.shopping.server.NoncatRequestSvrCmd.execute(NoncatRequestSvrCmd.java:110)
    at oracle.apps.icx.por.common.server.PorBaseAMImpl.executeServerCommand(PorBaseAMImpl.java:122)
    at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:190)
    at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:720)
    at oracle.apps.icx.por.common.webui.ClientUtil.invokeMethod(ClientUtil.java:973)
    at oracle.apps.icx.icatalog.shopping.webui.NonCatalogRequestCO.executeServerCommand(NonCatalogRequestCO.java:1038)
    at oracle.apps.icx.icatalog.shopping.webui.NonCatalogRequestCO.processRequest(NonCatalogRequestCO.java:250)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:604)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1183)
    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:976)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:943)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:663)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:976)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:943)
    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:663)
    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2629)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1949)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:549)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:437)
    at _OA._jspService(_OA.java:204)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    java.sql.SQLSyntaxErrorException: ORA-00904: "POREQUISITIONLINEEO"."REQUISITION_HEADER_ID": invalid identifier
    Please suggest me where have I done wrong.

    Hi,
    Attribute Mapping for REQUISITION_HEADER_ID is same as that of the standard VO
    Below is the extended Vo xml file :
    <?xml version='1.0' encoding='windows-1252' ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <ViewObject
       Name="PoRequisitionLinesVOEX"
       Extends="oracle.apps.icx.por.req.server.PoRequisitionLinesVO"
       BindingStyle="Oracle"
       CustomQuery="true"
       ComponentClass="XXPO.oracle.apps.icx.por.req.server.PoRequisitionLinesVOEXImpl"
       UseGlueCode="false" >
       <SQLQuery><![CDATA[
    SELECT PoRequisitionLineEO.REQUISITION_LINE_ID,
           PoRequisitionLineEO.REQUISITION_HEADER_ID,
           PoRequisitionLineEO.LINE_NUM,
           PoRequisitionLineEO.LAST_UPDATE_DATE,
           PoRequisitionLineEO.LAST_UPDATED_BY,
           PoRequisitionLineEO.LAST_UPDATE_LOGIN,
           PoRequisitionLineEO.CREATION_DATE,
           PoRequisitionLineEO.CREATED_BY,
           PoRequisitionLineEO.DELIVER_TO_LOCATION_ID,
           PoRequisitionLineEO.TO_PERSON_ID,
           PoRequisitionLineEO.ITEM_DESCRIPTION,
           PoRequisitionLineEO.CATEGORY_ID,
           PoRequisitionLineEO.UNIT_MEAS_LOOKUP_CODE,
           PoRequisitionLineEO.UNIT_PRICE,
           PoRequisitionLineEO.QUANTITY,
           PoRequisitionLineEO.LINE_TYPE_ID,
           PoRequisitionLineEO.SOURCE_TYPE_CODE,
           PoRequisitionLineEO.ITEM_ID,
           PoRequisitionLineEO.ITEM_REVISION,
           PoRequisitionLineEO.QUANTITY_DELIVERED,
           PoRequisitionLineEO.SUGGESTED_BUYER_ID,
           PoRequisitionLineEO.ENCUMBERED_FLAG,
           PoRequisitionLineEO.RFQ_REQUIRED_FLAG,
           PoRequisitionLineEO.NEED_BY_DATE,
           PoRequisitionLineEO.LINE_LOCATION_ID,
           PoRequisitionLineEO.MODIFIED_BY_AGENT_FLAG,
           PoRequisitionLineEO.PARENT_REQ_LINE_ID,
           PoRequisitionLineEO.JUSTIFICATION,
           PoRequisitionLineEO.NOTE_TO_AGENT,
           PoRequisitionLineEO.NOTE_TO_RECEIVER,
           PoRequisitionLineEO.PURCHASING_AGENT_ID,
           PoRequisitionLineEO.DOCUMENT_TYPE_CODE,
           PoRequisitionLineEO.BLANKET_PO_HEADER_ID,
           PoRequisitionLineEO.BLANKET_PO_LINE_NUM,
           PoRequisitionLineEO.CURRENCY_CODE,
           PoRequisitionLineEO.RATE_TYPE,
           /*PoRequisitionLineEO.RATE_DATE*/trunc(SYSDATE) rate_DATE,
           /*PoRequisitionLineEO.RATE*/
           (SELECT conversion_rate
              FROM gl_daily_rates
                   ,hr_operating_units hou
                   ,gl_sets_of_books sob
             WHERE from_currency = PoRequisitionLineEO.CURRENCY_CODE
             AND to_currency = sob.currency_code
             AND conversion_type = PoRequisitionLineEO.RATE_TYPE
             AND conversion_date = trunc(SYSDATE)
             AND  hou.organization_id = PoRequisitionLineEO.org_id
              AND hou.set_of_books_id = sob.SET_OF_BOOKS_ID ) rate,
           PoRequisitionLineEO.CURRENCY_UNIT_PRICE,
           PoRequisitionLineEO.SUGGESTED_VENDOR_NAME,
           PoRequisitionLineEO.SUGGESTED_VENDOR_LOCATION,
           PoRequisitionLineEO.SUGGESTED_VENDOR_CONTACT,
           PoRequisitionLineEO.SUGGESTED_VENDOR_PHONE,
           PoRequisitionLineEO.SUGGESTED_VENDOR_PRODUCT_CODE,
           PoRequisitionLineEO.UN_NUMBER_ID,
           PoRequisitionLineEO.HAZARD_CLASS_ID,
           PoRequisitionLineEO.MUST_USE_SUGG_VENDOR_FLAG,
           PoRequisitionLineEO.REFERENCE_NUM,
           PoRequisitionLineEO.ON_RFQ_FLAG,
           PoRequisitionLineEO.URGENT_FLAG,
           PoRequisitionLineEO.CANCEL_FLAG,
           PoRequisitionLineEO.SOURCE_ORGANIZATION_ID,
           PoRequisitionLineEO.SOURCE_SUBINVENTORY,
           PoRequisitionLineEO.DESTINATION_TYPE_CODE,
           PoRequisitionLineEO.DESTINATION_ORGANIZATION_ID,
           PoRequisitionLineEO.DESTINATION_SUBINVENTORY,
           PoRequisitionLineEO.QUANTITY_CANCELLED,
           PoRequisitionLineEO.CANCEL_DATE,
           PoRequisitionLineEO.CANCEL_REASON,
           PoRequisitionLineEO.CLOSED_CODE,
           PoRequisitionLineEO.AGENT_RETURN_NOTE,
           PoRequisitionLineEO.CHANGED_AFTER_RESEARCH_FLAG,
           PoRequisitionLineEO.VENDOR_ID,
           PoRequisitionLineEO.VENDOR_SITE_ID,
           PoRequisitionLineEO.VENDOR_CONTACT_ID,
           PoRequisitionLineEO.RESEARCH_AGENT_ID,
           PoRequisitionLineEO.ON_LINE_FLAG,
           PoRequisitionLineEO.WIP_ENTITY_ID,
           PoRequisitionLineEO.WIP_LINE_ID,
           PoRequisitionLineEO.WIP_REPETITIVE_SCHEDULE_ID,
           PoRequisitionLineEO.WIP_OPERATION_SEQ_NUM,
           PoRequisitionLineEO.WIP_RESOURCE_SEQ_NUM,
           PoRequisitionLineEO.ATTRIBUTE_CATEGORY,
           PoRequisitionLineEO.DESTINATION_CONTEXT,
           PoRequisitionLineEO.INVENTORY_SOURCE_CONTEXT,
           PoRequisitionLineEO.VENDOR_SOURCE_CONTEXT,
           PoRequisitionLineEO.BOM_RESOURCE_ID,
           PoRequisitionLineEO.REQUEST_ID,
           PoRequisitionLineEO.PROGRAM_APPLICATION_ID,
           PoRequisitionLineEO.PROGRAM_ID,
           PoRequisitionLineEO.PROGRAM_UPDATE_DATE,
           PoRequisitionLineEO.USSGL_TRANSACTION_CODE,
           PoRequisitionLineEO.GOVERNMENT_CONTEXT,
           PoRequisitionLineEO.CLOSED_REASON,
           PoRequisitionLineEO.CLOSED_DATE,
           PoRequisitionLineEO.TRANSACTION_REASON_CODE,
           PoRequisitionLineEO.QUANTITY_RECEIVED,
           PoRequisitionLineEO.SOURCE_REQ_LINE_ID,
           PoRequisitionLineEO.ORG_ID,
           PoRequisitionLineEO.KANBAN_CARD_ID,
           PoRequisitionLineEO.CATALOG_TYPE,
           PoRequisitionLineEO.CATALOG_SOURCE,
           PoRequisitionLineEO.MANUFACTURER_ID,
           PoRequisitionLineEO.MANUFACTURER_NAME,
           PoRequisitionLineEO.MANUFACTURER_PART_NUMBER,
           PoRequisitionLineEO.REQUESTER_EMAIL,
           PoRequisitionLineEO.REQUESTER_FAX,
           PoRequisitionLineEO.REQUESTER_PHONE,
           PoRequisitionLineEO.UNSPSC_CODE,
           PoRequisitionLineEO.OTHER_CATEGORY_CODE,
           PoRequisitionLineEO.SUPPLIER_DUNS,
           PoRequisitionLineEO.TAX_STATUS_INDICATOR,
           PoRequisitionLineEO.PCARD_FLAG,
           PoRequisitionLineEO.NEW_SUPPLIER_FLAG,
           PoRequisitionLineEO.AUTO_RECEIVE_FLAG,
           PoRequisitionLineEO.TAX_USER_OVERRIDE_FLAG,
           PoRequisitionLineEO.TAX_CODE_ID,
           PoRequisitionLineEO.NOTE_TO_VENDOR,
           PoRequisitionLineEO.OKE_CONTRACT_VERSION_ID,
           PoRequisitionLineEO.OKE_CONTRACT_HEADER_ID,
           PoRequisitionLineEO.ITEM_SOURCE_ID,
           PoRequisitionLineEO.SUPPLIER_REF_NUMBER,
           PoRequisitionLineEO.SECONDARY_UNIT_OF_MEASURE,
           PoRequisitionLineEO.SECONDARY_QUANTITY,
           PoRequisitionLineEO.PREFERRED_GRADE,
           PoRequisitionLineEO.SECONDARY_QUANTITY_RECEIVED,
           PoRequisitionLineEO.SECONDARY_QUANTITY_CANCELLED,
           PoRequisitionLineEO.AUCTION_HEADER_ID,
           PoRequisitionLineEO.AUCTION_DISPLAY_NUMBER,
           PoRequisitionLineEO.AUCTION_LINE_NUMBER,
           PoRequisitionLineEO.REQS_IN_POOL_FLAG,
           PoRequisitionLineEO.VMI_FLAG,
           PoRequisitionLineEO.ATTRIBUTE1,
           PoRequisitionLineEO.ATTRIBUTE2,
           PoRequisitionLineEO.ATTRIBUTE3,
           PoRequisitionLineEO.ATTRIBUTE4,
           PoRequisitionLineEO.ATTRIBUTE5,
           PoRequisitionLineEO.ATTRIBUTE6,
           PoRequisitionLineEO.ATTRIBUTE7,
           PoRequisitionLineEO.ATTRIBUTE8,
           PoRequisitionLineEO.ATTRIBUTE9,
           PoRequisitionLineEO.ATTRIBUTE10,
           PoRequisitionLineEO.ATTRIBUTE11,
           PoRequisitionLineEO.ATTRIBUTE12,
           PoRequisitionLineEO.ATTRIBUTE13,
           PoRequisitionLineEO.ATTRIBUTE14,
           PoRequisitionLineEO.ATTRIBUTE15,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE1,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE2,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE3,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE4,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE5,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE6,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE7,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE8,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE9,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE10,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE11,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE12,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE13,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE14,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE15,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE16,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE17,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE18,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE19,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE20,
           PoRequisitionLineEO.GLOBAL_ATTRIBUTE_CATEGORY,
           PoRequisitionLineEO.BID_NUMBER,
           PoRequisitionLineEO.BID_LINE_NUMBER,
           PoRequisitionLineEO.AMOUNT,
           PoRequisitionLineEO.CURRENCY_AMOUNT,
           PoRequisitionLineEO.NONCAT_TEMPLATE_ID,
           PoRequisitionLineEO.JOB_ID,
           PoRequisitionLineEO.CONTACT_INFORMATION,
           PoRequisitionLineEO.CANDIDATE_SCREENING_REQD_FLAG,
           PoRequisitionLineEO.SUGGESTED_SUPPLIER_FLAG,
           PoRequisitionLineEO.ASSIGNMENT_END_DATE,
           PoRequisitionLineEO.OVERTIME_ALLOWED_FLAG,
           PoRequisitionLineEO.CONTRACTOR_REQUISITION_FLAG,
           PoRequisitionLineEO.LABOR_REQ_LINE_ID,
           PoRequisitionLineEO.JOB_LONG_DESCRIPTION,
           PoRequisitionLineEO.CONTRACTOR_STATUS,
           PoRequisitionLineEO.SUGGESTED_VENDOR_CONTACT_FAX,
           PoRequisitionLineEO.SUGGESTED_VENDOR_CONTACT_EMAIL,
           PoRequisitionLineEO.CANDIDATE_FIRST_NAME,
           PoRequisitionLineEO.CANDIDATE_LAST_NAME,
           PoRequisitionLineEO.ASSIGNMENT_START_DATE,
           PoRequisitionLineEO.ORDER_TYPE_LOOKUP_CODE,
           PoRequisitionLineEO.PURCHASE_BASIS,
           PoRequisitionLineEO.MATCHING_BASIS,
           PoRequisitionLineEO.NEGOTIATED_BY_PREPARER_FLAG,
           PoRequisitionLineEO.BASE_UNIT_PRICE,
           PoRequisitionLineEO.AT_SOURCING_FLAG,
           PoRequisitionLineEO.TAX_ATTRIBUTE_UPDATE_CODE,
           PoRequisitionLineEO.DROP_SHIP_FLAG,
           PoRequisitionLineEO.SHIP_METHOD,
           PoRequisitionLineEO.ESTIMATED_PICKUP_DATE,
           PoRequisitionLineEO.SUPPLIER_NOTIFIED_FOR_CANCEL,
           PoRequisitionLineEO.TAX_NAME
    FROM PO_REQUISITION_LINES_ALL PoRequisitionLineEO
       ]]></SQLQuery>
       <DesignTime>
          <Attr Name="_isExpertMode" Value="true" />
          <Attr Name="_version" Value="10.1.3.41.57" />
          <Attr Name="_codeGenFlag2" Value="Access|Coll|VarAccess" />
       </DesignTime>
       <ViewAttribute
          Name="Selected"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="Selected"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="REQUISITION_LINE_ID"
          IsUpdateable="false"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SuggestedBuyer"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="DestinationType"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="DeliverToLocation"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="Requester"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="UnitOfMeasure"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="Total"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="CostCenter"
          IsQueriable="false"
          IsPersistent="false"
          Precision="200"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="NonrecoverableTax"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="RecoverableTax"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="EstimatedTax"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ServiceCost"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SupplierContact"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SupplierSite"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="Supplier"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="InvReplenishment"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="Category"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="CategoryDescription"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ItemNumber"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="OperationReference"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="WorkOrder"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="UnNumber"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="HazardClass"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="LineType"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="VendorNumber"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="DestinationOrganization"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SourceDocType"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SourceDocNum"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="DisplayRateType"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="InfoTemplateName"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="INVENTORY_ITEM_ID"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ORGANIZATION_ID"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ProjectNumber"
          IsQueriable="false"
          IsPersistent="false"
          Precision="25"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ReqAwardId"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="CodeCombinationId"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="AwardNumber"
          IsQueriable="false"
          IsPersistent="false"
          Precision="15"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="TaskId"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="TaskNumber"
          IsQueriable="false"
          IsPersistent="false"
          Precision="25"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ProjectId"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ChargeAccount"
          IsQueriable="false"
          IsPersistent="false"
          Precision="2000"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="TrasactionCode"
          IsQueriable="false"
          IsPersistent="false"
          Precision="30"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="GLDate"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Date"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="DATE" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ExpenditureItemDate"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Date"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="DATE" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ExpenditureOrganizationId"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ExpenditureOrg"
          IsQueriable="false"
          IsPersistent="false"
          Precision="240"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ExpenditureType"
          IsQueriable="false"
          IsPersistent="false"
          Precision="30"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="CategoryEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ItemDescEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="LineDisabled"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="RateDateEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="RateTypeEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="RateEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="CurrencyEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="AmountEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="PriceEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="QuantityEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="UomEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ContractNumEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="MfrPartNumEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="MfrEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SupplItemNumEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SupplFaxEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SupplEmailEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SupplPhoneEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SupplContactEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SupplSiteEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SupplEditable"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="TxnTotal"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ApprovalTotal"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="EnterChargeAccount"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="Multiple"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="GlEncumberedDate"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Date"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="DATE" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="InfoTemplateInternalName"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="NewSupplier"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="PcardUsed"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="RestrictSupplierType"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="RestrictCategoryFlag"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="CommodityId"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="oracle.jbo.domain.Number"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="Urgent"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="Job"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SupplierSelected"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="SupplierSwitcher"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="ExpenseAmount"
          IsQueriable="false"
          IsPersistent="false"
          Type="oracle.jbo.domain.Number"
          ColumnType="NUMBER"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="NUMERIC" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="CandidateFullName"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.String"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          SQLType="VARCHAR" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsAddAccountDistributionRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsAddOneTimeAddrRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsAddProjectDistributionRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsAmountRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsAwardMultiple"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsAwardMultipleRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsAwardRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsChargeAccountMultiple"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsChargeAccountMultipleRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsChargeAccountReadOnly"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsChargeAccountRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsDeliverToLocationReadOnly"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsDestinationTypeReadOnly"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsEditDelOneTimeAddrRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsEnterChargeAccountRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsExpenditureItemDateMultiple"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsExpenditureItemDateMultipleRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsExpenditureItemDateRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsExpenditureOrgMultiple"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsExpenditureOrgMultipleRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsExpenditureOrgRendered"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <ViewAttribute
          Name="IsExpenditureTypeMultiple"
          IsQueriable="false"
          IsPersistent="false"
          Precision="255"
          Type="java.lang.Boolean"
          ColumnType="VARCHAR2"
          AliasName="VIEW_ATTR"
          Passivate="true"
          SQLType="BIT" >
          <DesignTime>
             <Attr Name="_OverrideAttr" Value="true" />
          </DesignTime>
       </ViewAttribute>
       <View

  • Error in OAF page: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation

    Hi All,
    I am getting the below mentioned error when I try to run the OAF page.
    Kindly suggest what needs to be done here.
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT Approval_status FROM APPS.HXC_TIMECARD_SUMMARY WHERE RESOURCE_ID like NVL(:1,RESOURCE_ID) and start_time = NVL(:2,start_time) and stop_time =NVL(:3,stop_time) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2704) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1707) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432) at _OA._jspService(OA.jsp:33) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) ## Detail 0 ## java.sql.SQLException: ORA-01007: variable not in select list at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986) at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144) at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578) at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631) at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375) at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544) at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619) at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339) at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441) at XXCo.oracle.apps.hxc.selfservice.timecard.webui.XXTmecardsListCO.processFormRequest(XXTmecardsListCO.java:100) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2700) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1707) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432) at _OA._jspService(OA.jsp:33) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) java.sql.SQLException: ORA-01007: variable not in select list at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986) at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144) at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578) at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631) at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375) at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544) at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619) at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339) at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441) at XXCo.oracle.apps.hxc.selfservice.timecard.webui.XXTmecardsListCO.processFormRequest(XXTmecardsListCO.java:100) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2700) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1707) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432) at _OA._jspService(OA.jsp:33) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) 
    Thanks,
    Sukanya

    Hi All,
    I am getting the below mentioned error when I try to run the OAF page.
    Kindly suggest what needs to be done here.
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT Approval_status FROM APPS.HXC_TIMECARD_SUMMARY WHERE RESOURCE_ID like NVL(:1,RESOURCE_ID) and start_time = NVL(:2,start_time) and stop_time =NVL(:3,stop_time) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1145) at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1408) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2704) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1707) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432) at _OA._jspService(OA.jsp:33) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) ## Detail 0 ## java.sql.SQLException: ORA-01007: variable not in select list at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986) at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144) at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578) at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631) at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375) at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544) at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619) at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339) at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441) at XXCo.oracle.apps.hxc.selfservice.timecard.webui.XXTmecardsListCO.processFormRequest(XXTmecardsListCO.java:100) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2700) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1707) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432) at _OA._jspService(OA.jsp:33) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) java.sql.SQLException: ORA-01007: variable not in select list at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289) at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:583) at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1986) at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1144) at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2548) at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2933) at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:650) at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:578) at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:631) at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:518) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3375) at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(OAJboViewObjectImpl.java:828) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4525) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:574) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:544) at oracle.jbo.server.ViewRowSetImpl.executeDetailQuery(ViewRowSetImpl.java:619) at oracle.jbo.server.ViewObjectImpl.executeDetailQuery(ViewObjectImpl.java:3339) at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3326) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:441) at XXCo.oracle.apps.hxc.selfservice.timecard.webui.XXTmecardsListCO.processFormRequest(XXTmecardsListCO.java:100) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:810) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processFormRequest(OAStackLayoutBean.java:370) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1159) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1022) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:988) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:843) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:363) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2700) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1707) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:511) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:432) at _OA._jspService(OA.jsp:33) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803) at java.lang.Thread.run(Thread.java:534) 
    Thanks,
    Sukanya

  • Error:  oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation

    Hi all,
    I am trying to extend the supplier address book site creation controller: ByrCrtStCO and loop inside the processFormRequest method through all the operating unit related sites on that page.
    I have the following code:
    package XXXX.oracle.apps.pos.supplier.webui;
    import java.sql.SQLException;
    import java.sql.Types;
    import oracle.apps.fnd.framework.OAApplicationModule;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OARow;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.pos.supplier.components.server.ByrAddrAMImpl;
    import oracle.apps.pos.supplier.webui.ByrCrtStCO;
    import oracle.apps.pos.supplier.webui.SupplierUtil;
    import oracle.jdbc.OracleCallableStatement;
    import oracle.jbo.RowSetIterator;
    import oracle.jbo.Row;
    * @author AO *
    public class xxxpoByrCrtStCO  extends ByrCrtStCO
       //constructor
        public xxxpoByrCrtStCO()
        public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
            //call super to continue the rest of the processing
            super.processFormRequest(oapagecontext, oawebbean);
            //update the supplier site on all records with the vat code
            updateVendorSites(oapagecontext, oawebbean);
        private void updateVendorSites(OAPageContext oapagecontext, OAWebBean oawebbean) {
            OAApplicationModule applicationModule = oapagecontext.getApplicationModule(oawebbean);
            if(oapagecontext.getParameter("applyBtn") != null)
                OAViewObject oaviewobject =  (OAViewObject) applicationModule.findViewObject("CrtSitesVO");           
                  if (oaviewobject != null) {
                                      int count = oaviewobject.getRowCount();
                                      if(oapagecontext.isLoggingEnabled(2))
                                                             oapagecontext.writeDiagnostics(this, (new StringBuilder()).append(" Count: ").append(count).toString(), 2);
                        else {
                            if(oapagecontext.isLoggingEnabled(2))
                                                   oapagecontext.writeDiagnostics(this, (new StringBuilder()).append(" Count: ").append("null").toString(), 2);
    I get the below error:  What could be problem?
    Logout
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (select 'N' as select1, substr(:1,1,15) as Site_Name, organization_id, name,:2 as Site_Name_Display from hr_operating_units WHERE mo_global.check_access(organization_id) = 'Y') QRSLT ORDER BY name 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.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:3001) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1885) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:550) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:438) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:662) ## Detail 0 ## java.sql.SQLException: Missing IN or OUT parameter at index:: 1 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) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723) at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:688) at oracle.jbo.server.ViewRowSetImpl.getRowCount(ViewRowSetImpl.java:1932) at oracle.jbo.server.ViewObjectImpl.getRowCount(ViewObjectImpl.java:6011) at xxx.oracle.apps.pos.supplier.webui.xxxpoByrCrtStCO.updateVendorSites(xxxpoByrCrtStCO14.java:85) at xxx.oracle.apps.pos.supplier.webui.xxxpoByrCrtStCO.processFormRequest(xxxpoByrCrtStCO.java:46) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:827) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1205) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1039) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1005) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:860) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1039) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1005) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:860) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2997) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1885) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:550) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:438) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:662) java.sql.SQLException: Missing IN or OUT parameter at index:: 1 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) at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3723) at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source) at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743) at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:688) at oracle.jbo.server.ViewRowSetImpl.getRowCount(ViewRowSetImpl.java:1932) at oracle.jbo.server.ViewObjectImpl.getRowCount(ViewObjectImpl.java:6011) at xxx.oracle.apps.pos.supplier.webui.xxxpoByrCrtStCO.updateVendorSites(xxxpoByrCrtStCO14.java:85) at xxx.oracle.apps.pos.supplier.webui.xxxpoByrCrtStCO14.processFormRequest(xxxpoByrCrtStCO.java:46) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:827) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processFormRequest(OAPageLayoutHelper.java:1205) at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processFormRequest(OAPageLayoutBean.java:1579) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1039) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1005) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:860) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processFormRequest(OAFormBean.java:395) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1039) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:1005) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:860) at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processFormRequest(OAWebBeanContainerHelper.java:385) at oracle.apps.fnd.framework.webui.beans.OABodyBean.processFormRequest(OABodyBean.java:363) at oracle.apps.fnd.framework.webui.OAPageBean.processFormRequest(OAPageBean.java:2997) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1885) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:550) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:438) at _OA._jspService(_OA.java:212) at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:390) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64) at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26) at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15) at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391) at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:911) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313) at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303) at java.lang.Thread.run(Thread.java:662) 
    Logout
    Copyright (c) 2006, Oracle. All rights reserved.

    Hi all
    This is the method I used to update the vendor sites.  It takes a list of vendor site IDs retrieved in previous sections and updates one by one.  Note the Super method is invoked before this method and another method not mentioned here is used to retrieve the vendor site IDs from the operating unit the user checked.
         private void updateVendorSites(OAPageContext oapagecontext, OAWebBean oawebbean, HashMap<oracle.jbo.domain.Number, String> updateList ) {
            if(oapagecontext.isLoggingEnabled(2))
                oapagecontext.writeDiagnostics(this, "xxXXXXpoByrCrtStCO - updateVendorSites(OAPageContext, OAWebBean).BEGIN", 2);
                System.out.println("xxXXXXpoByrCrtStCO - updateVendorSites(OAPageContext, OAWebBean).BEGIN" );           
                try {
                // Initalize variables      
                oracle.jbo.domain.Number vendorSiteId = null;
                oracle.jbo.domain.Number orgId = null;
                String vatCode = null;
                // THis is a nested AM, so the view for operating units/sites is not in the root AM.  It is in the ByrAddrAM.
                   // In order to update the tax code on the newly created supplier site, we need to get the AM and VO for the Tax and Reporting Update Tax code page
                ApplicationModule maintainpartytaxprofilesam = oapagecontext.getRootApplicationModule().findApplicationModule("MaintainPartyTaxProfilesAM");
                SearchSuppAcctSitesVOImpl searchsuppacctsitesvoimpl =  (SearchSuppAcctSitesVOImpl) maintainpartytaxprofilesam.findViewObject("SearchSuppAcctSitesVO");             
                Set set = updateList.entrySet();
                Iterator i = set.iterator();           
                while (i.hasNext()) {
                      System.out.println("xxXXXXpoByrCrtStCO - updateVendorSites Inside while" );
                      Map.Entry<oracle.jbo.domain.Number, String> updateCode = (Map.Entry<oracle.jbo.domain.Number, String>) i.next();
                     // Initialize variables used in the loop to ensure no exchange of data between rows.  This is just a precaution.
                     vendorSiteId = null;
                     orgId = null;
                     vatCode = null;
                      System.out.println("xxXXXXpoByrCrtStCO - updateVendorSites before cast org id" );
                     orgId =  updateCode.getKey();
                      System.out.println("xxXXXXpoByrCrtStCO - updateVendorSites before cast vatCode" );
                     vatCode = updateCode.getValue();
                     if(oapagecontext.isLoggingEnabled(2))
                       oapagecontext.writeDiagnostics(this, (new StringBuilder()).append(" OrgId: ").append(orgId).toString(), 2);
                      System.out.println(" OrgId: " + orgId.toString());
                      System.out.println(" vatCode: " + vatCode);
                      // Get the vendor site ID from separate method
                      vendorSiteId = getVendorSiteId(oapagecontext, oawebbean, orgId);
                      // Find the row in the ap_supplier_sites_all table for that vendor Site ID.
                      searchsuppacctsitesvoimpl.executeVOQuery (vendorSiteId);
                      SearchSuppAcctSitesVORowImpl searchsuppacctsitesvorowimpl = (SearchSuppAcctSitesVORowImpl)searchsuppacctsitesvoimpl.first();
                      if(searchsuppacctsitesvorowimpl != null)
                          System.out.println("xxXXXXpoByrCrtStCO - updateVendorSites before set vat code" );
                            searchsuppacctsitesvorowimpl.setVatCode(vatCode);
                    oapagecontext.getApplicationModule(oawebbean).getTransaction().commit();
              catch (OAException oaEx) {          
                throw new OAException(oaEx.getMessage(),  (byte)0);

  • JBO-27122: SQL error during statement preparation.

    Hi,
    I am trying to develop a VO for validating date. The Vo query is as follows:
    select count(*) startDateValid from dual where (trunc(sysdate)- to_date(:1)) < NVL(fnd_profile.value('SGX: IPP CONTRACT START DATE WINDOW (DAYS)'), 0)
    I initiate the VO through a method in AM and invoke the AM method in CO. The bind variable gets passed from the CO as a string value. The format of the parameter is 'DD-MON-RRRR'. When I go to the front end and execute the logic, I get the error:
    JBO-27122: SQL error during statement preparation. Statement: select count(*) startDateValid from dual where (trunc(sysdate)- to_date(:1)) < NVL(fnd_profile.value('SGX: IPP CONTRACT START DATE WINDOW (DAYS)'), 0)
    When I set the preferences for Date as mm/dd/yyyy I get this error. When the preference is changed to dd-mm-yyyy format or any format that has date first then I do not get this error.
    All code is custom code. The VO query executes fine from SQL*Plus with input as '01-DEC-2009'.
    Any idea on this error?
    TIA.
    Regards,
    Anoop

    Actually I'm jsut the onshore person assigned to fix the problem. What they are doing is overwriting the original query in the view with a setQuery(). I think this is part of the problem. What I've found since my orinal post is that if we change the jdbc drivers to an older version it works for some unknown reason.

  • JBO-27122:SQL error during statement preparation + ORA-01006:bind variable not exists

    (1) I have built a BC4J View called CallFunctionView which acts as a view i used to call existing PL/SQL functions. My implementation servlet code is presented with the following structure:
    public class MyServlet extends HttpServlet {
    // Get vector element to perform validation for rule 1 and rule 2
    for (int i = 0; i < MyVector.size(); i++) {
    MyVectorRow MyRow = (MyVectorRow) MyVector.elementAt(i);
    MyRow.checkRule1(am, i);
    MyRow.checkRule2(am, i);
    (2) Both checkRule1 and checkRule2 will call the ViewObject CallFunctionView. Related codes for checkRule1 and checkRule2 are listed as follows:
    public void checkRule1(ApplicationModule am, int intRowIndex)
    throws JboException, Exception {
    ViewCdCallFunctionImpl vo = (CallFunctionViewImpl) am.findViewObject("CallFunctionView");
    if (vo == null) {             
    throw new JboException("View Object is null!");
    vo.setQuery("SELECT PKG1.MyFunctionOne(?,?,?,?) FROM DUAL");
    vo.setWhereClauseParam(0, param1); // param1 is string
    vo.setWhereClauseParam(1, param2); // param2 is string
    vo.setWhereClauseParam(2, param3); // param3 is String.valueOf(int)
    vo.setWhereClauseParam(3, param4)); // param4 is String.value Of(int)
    vo.executeQuery(); <- Point of exit where my mentioned error occurs at the second loop
    public void checkRule2(ApplicationModule am, int intRowIndex)
    throws JboException, Exception {
    ViewCdCallFunctionImpl vo = (CallFunctionViewImpl) am.findViewObject("CallFunctionView");
    if (vo == null) {             
    throw new JboException("View Object is null!");
    vo.setQuery("SELECT PKG2.MyFunctionTwo(?,?,?,?) FROM DUAL");
    vo.setWhereClauseParam(0, param1); // param1 is string
    vo.setWhereClauseParam(1, param2); // param2 is string
    vo.setWhereClauseParam(2, param3); // param3 is String.valueOf(int)
    vo.setWhereClauseParam(3, param4)); // param3 is String.valueOf(int)
    vo.setWhereClauseParam(4, (blnYes)?"Y":null);
    vo.setWhereClauseParam(5, (blnYes)?"Y":null));
    vo.executeQuery();
    (3)The called functions are from different package and with different parameters. For the loop i = 0, no error occurs and both functions generates expected result. For execution of the first function in the second loop (when i = 1), error occurs with the following messages(JBO-27122: SQL error during statement preparation. + java.sql.SQLException: ORA-01006: bind variable does not exist):
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT PKG1.MyFunctionOne(?,?,?,?) FROM DUAL
         void oracle.jbo.server.QueryCollection.executeQuery(java.lang.Object[], int)
         void oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(java.lang.Object, java.lang.Object[], int)
         void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
         void oracle.jbo.server.ViewRowSetImpl.executeQuery()
         void oracle.jbo.server.ViewObjectImpl.executeQuery()
         void MyPkg.objects.MyVectorRow.checkRule1(oracle.jbo.ApplicationModule, int)
         void MyPkg.servlet.MyServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    ## Detail 0 ##
    java.sql.SQLException: ORA-01006: bind variable does not exist
         void oracle.jdbc.dbaccess.DBError.throwSqlException(java.lang.String, java.lang.String, int)
         void oracle.jdbc.ttc7.TTIoer.processError()
         void oracle.jdbc.ttc7.Oall7.receive()
         void oracle.jdbc.ttc7.TTC7Protocol.doOall7(byte, byte, int, byte[], oracle.jdbc.dbaccess.DBType[], oracle.jdbc.dbaccess.DBData[], int, oracle.jdbc.dbaccess.DBType[], oracle.jdbc.dbaccess.DBData[], int)
         int oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(oracle.jdbc.dbaccess.DBStatement, byte, byte[], oracle.jdbc.dbaccess.DBDataSet, int, oracle.jdbc.dbaccess.DBDataSet, int)
         void oracle.jdbc.driver.OracleStatement.doExecuteQuery()
         void oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout()
         int oracle.jdbc.driver.OraclePreparedStatement.executeUpdate()
         java.sql.ResultSet oracle.jdbc.driver.OraclePreparedStatement.executeQuery()
         void oracle.jbo.server.QueryCollection.executeQuery(java.lang.Object[], int)
         void oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(java.lang.Object, java.lang.Object[], int)
         void oracle.jbo.server.ViewRowSetImpl.execute(boolean, boolean)
         void oracle.jbo.server.ViewRowSetImpl.executeQuery()
         void oracle.jbo.server.ViewObjectImpl.executeQuery()
         void MyPkg.objects.MyVectorRow.checkRule1(oracle.jbo.ApplicationModule, int)
         void MyPkg.servlet.MyServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
         void com.evermind.server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
         void com.evermind.util.ThreadPoolThread.run()
    I have tried commented either MyRow.checkRule1 or MyRow.checkRule2 for execution. No error occurs for that. The problem occurs when i put the two together in a loop ... the parameter number for Pkg1.MyFunctionOne is less than Pkg2.MyFunctionTwo, which corresponds to the error message 'Bind variable does not exist' ... any cache for calling the function that causes the error at running the vo.executeQuery statement?
    Question: Does anyone has any ideas about the error origin and solution? (It is very important to me because i still have several check rules in addition to those mentioned 2 rules.)
    Thanks for replying!

    Oic ... thanks for your help, but i find a strange thing. No error message is prompted when i break the loop as follows:
    // Get vector element to perform validation for rule 1 and rule 2
    for (int i = 0; i < MyVector.size(); i++) {
    MyVectorRow MyRow = (MyVectorRow) MyVector.elementAt(i);
    MyRow.checkRule1(am, i);
    // Get vector element to perform validation for rule 1 and rule 2
    for (int i = 0; i < MyVector.size(); i++) {
    MyVectorRow MyRow = (MyVectorRow) MyVector.elementAt(i);
    MyRow.checkRule2(am, i);
    It works, but quite strange ... is it a bug for calling the interface setWhereClauseParam(int, object)? As long as all the bind variables have value (your bind-var array is filled perhaps due to previous setWhereClauseParam, the query will work. What's critical is you get the right query every time :)

  • JBO-27122: SQL error during statement preparation Error

    Hello,
    I am trying to use a standard page with some navigation modification. Here is what i did.
    Created a custom menu of type sub tab. It has three section
    1.Create Offer
    2.Offer Workbench
    3.Template.
    Here Create Offer and Offer Workbench are like Search page.
    Attached this custom menu to a custom responsibility.
    The custom responsibility is working fine.
    Suppose i open this menu, the first display page in Create Offer page.
    Now Consider the scenario. I Open the menu. Create Offer opens. Now i navigate to Offer Workbench tab. I query and it returns some result. Now i navigate back to the Create Offer tab.When i try to navigate back to the Offer Worknbench tab. i get the JBO-27122: SQL error during statement preparation Error. This happens only when i do search operation in the 2nd tab and then go back to the 1st and again I try to come back to the 2nd tab.When i try the same with the 2nd and 3rd tab it is working fine. No error comes. What could have possibly gone wrong. Share your knowledge on this.
    Please find the error stack attached below.
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT Offer.OFFER_ID,        Offer.OFFER_VERSION,        Offer.LAST_UPDATE_DATE,        Offer.CREATION_DATE,        Vac.VACANCY_ID,        Vac.NAME,        Job.JOB_ID,        Recruiter.FULL_NAME,        Recruiter.PERSON_ID,        Recruiter.EFFECTIVE_START_DATE,        Recruiter.EFFECTIVE_END_DATE,        Recruiter.EMAIL_ADDRESS,        Status.LOOKUP_TYPE,        Status.LOOKUP_CODE,        Manager.EMAIL_ADDRESS AS EMAIL_ADDRESS1, Manager.EMPLOYEE_NUMBER, Manager.PERSON_ID AS PERSON_ID1, Manager.EFFECTIVE_START_DATE AS EFFECTIVE_START_DATE1,         Manager.EFFECTIVE_END_DATE AS EFFECTIVE_END_DATE1,        Manager.FULL_NAME AS FULL_NAME1,        Job.NAME AS JOB_NAME,        Offer.OFFER_STATUS,        Offer.LATEST_OFFER,        (SELECT max (status_change_date) FROM irc_offer_status_history StatusHistory1 WHERE StatusHistory1.offer_id = Offer.offer_id and StatusHistory1.offer_status ='APPROVED') AS OFFER_APPROVED_DATE, Offer.EXPIRY_DATE, Applicant.FULL_NAME AS FULL_NAME2, Applicant.PERSON_ID AS PERSON_ID2, Applicant.EFFECTIVE_START_DATE AS EFFECTIVE_START_DATE2,         Applicant.EFFECTIVE_END_DATE AS EFFECTIVE_END_DATE2, decode(Offer.offer_status,'PENDING','T','CORRECTION','T','APPROVED',nvl((select          update_allowed from irc_rec_team_members rec where rec.vacancy_id          = vac.vacancy_id and rec.person_id = :1 and irc_utilities_pkg.is_function_allowed          ('IRC_UPDATE_APPROVED_OFFER') = 'TRUE'),'T'),'F') AS PREVIEW_ENABLED, Status.MEANING, ASG.ASSIGNMENT_ID, ASG.EFFECTIVE_START_DATE AS ASG_EFFECTIVE_START_DATE,         ASG.EFFECTIVE_END_DATE AS ASG_EFFECTIVE_END_DATE, to_char(RowNum) AS RowNumber, Applicant.APPLICANT_NUMBER, Reason.MEANING AS MEANING1, Offer.OBJECT_VERSION_NUMBER, Reason.LOOKUP_TYPE AS LOOKUP_TYPE1,        Reason.LOOKUP_CODE AS LOOKUP_CODE1,        Offer.ATTRIBUTE1,        Offer.ATTRIBUTE2,        Offer.ATTRIBUTE3,        Offer.ATTRIBUTE4,        Offer.ATTRIBUTE5,        Offer.ATTRIBUTE6,        Offer.ATTRIBUTE7,        Offer.ATTRIBUTE8,        Offer.ATTRIBUTE9,        Offer.ATTRIBUTE10,        Offer.ATTRIBUTE11,        Offer.ATTRIBUTE12,        Offer.ATTRIBUTE13,        Offer.ATTRIBUTE14,        Offer.ATTRIBUTE15,        Offer.ATTRIBUTE16,        Offer.ATTRIBUTE17,        Offer.ATTRIBUTE18,        Offer.ATTRIBUTE19,        Offer.ATTRIBUTE20,        Offer.ATTRIBUTE21,        Offer.ATTRIBUTE22,        Offer.ATTRIBUTE23,        Offer.ATTRIBUTE24,        Offer.ATTRIBUTE25,        Offer.ATTRIBUTE26,        Offer.ATTRIBUTE27,        Offer.ATTRIBUTE28,        Offer.ATTRIBUTE29,        Offer.ATTRIBUTE30,        Vac.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER1, AST.USER_STATUS, Recruiter.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER2,         ASG.CHANGE_REASON,        Manager.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER3,         (SELECT meaning   FROM   hr_lookups hl     WHERE hl.lookup_type = 'APL_ASSIGN_REASON' AND hl.lookup_code = IAS.STATUS_CHANGE_REASON  ) AS APPL_STATUS_CHANGE_REASON,        AST.ASSIGNMENT_STATUS_TYPE_ID,        Offer.ATTRIBUTE_CATEGORY,        ASG.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER4, Vac.BUSINESS_GROUP_ID, Applicant.OBJECT_VERSION_NUMBER AS OBJECT_VERSION_NUMBER5,         Bg.NAME AS NAME1,        Bg.ORGANIZATION_ID,        (select Meaning     from hr_lookups     where lookup_type = 'IRC_CANDIDATE_TYPE'     and lookup_code =  NVL( (SELECT 'EMP'      FROM DUAL   WHERE EXISTS            (SELECT NULL             FROM PER_ALL_PEOPLE_F PPF11,                   PER_ALL_PEOPLE_F PPF12,       PER_PERSON_TYPES PPT             WHERE PPF11.PERSON_ID = ASG.PERSON_ID               AND PPF11.PARTY_ID = PPF12.PARTY_ID AND TRUNC(SYSDATE) BETWEEN PPF12.EFFECTIVE_START_DATE AND PPF12.EFFECTIVE_END_DATE AND PPF12.PERSON_TYPE_ID = PPT.PERSON_TYPE_ID               AND PPT.SYSTEM_PERSON_TYPE IN ('EMP', 'EMP_APL')           )   ), NVL(     (SELECT 'EX_EMP'        FROM DUAL       WHERE EXISTS               (SELECT NULL                 FROM PER_ALL_PEOPLE_F PPF21,      PER_ALL_PEOPLE_F PPF22,                      PER_PERSON_TYPES PPT    WHERE PPF21.PERSON_ID = ASG.PERSON_ID              AND PPF21.PARTY_ID = PPF22.PARTY_ID      AND TRUNC(SYSDATE) BETWEEN PPF22.EFFECTIVE_START_DATE AND PPF22.EFFECTIVE_END_DATE                  AND PPF22.PERSON_TYPE_ID = PPT.PERSON_TYPE_ID                  AND PPT.SYSTEM_PERSON_TYPE IN ('EX_EMP', 'EX_EMP_APL')              )     ), 'EXT' ))) AS CANDIDATE_TYPE, (select hl5.Meaning     from hr_lookups hl5   where lookup_type   = 'YES_NO'     and lookup_code           = decode(        ( SELECT 1                     FROM per_all_assignments_f paf2, per_all_people_f ppf2, per_all_people_f ppf21 WHERE ppf2.person_id = asg.person_id                     and ppf2.party_id = ppf21.party_id                     and trunc(sysdate) between ppf21.effective_start_date  and ppf21.effective_end_date and ppf21.person_id = paf2.supervisor_id                 and trunc(sysdate) between paf2.effective_start_date and paf2.effective_end_date              and  paf2.ASSIGNMENT_TYPE IN ('E','C')            AND rownum = 1   ), 1, 'Y', 'N'             ) and irc_utilities_pkg.is_internal_person(asg.person_id ,trunc(sysdate)) = 'TRUE') AS DIRECT_REPORTS, Applicant.PARTY_ID,        (select lookup_code from hr_lookups where lookup_type = 'IRC_REHIRE_RECOMMENDATION' and lookup_code = 'NOT_APPLICABLE') AS VIEW_ATTR,        PROPOSED_START_DATE AS PROPOSED_START_DATE FROM IRC_OFFERS Offer, PER_ALL_VACANCIES Vac, PER_JOBS_VL Job, PER_ALL_PEOPLE_F Recruiter, PER_ALL_PEOPLE_F Manager, HR_LOOKUPS Status, PER_ALL_ASSIGNMENTS_F ASG, PER_ALL_PEOPLE_F Applicant, HR_LOOKUPS Reason, IRC_OFFER_STATUS_HISTORY ioh, IRC_ASSIGNMENT_STATUSES IAS, PER_ASSIGNMENT_STATUS_TYPES_V AST, HR_ALL_ORGANIZATION_UNITS_VL Bg, PER_ALL_ASSIGNMENTS_F asg4 WHERE Offer.vacancy_id = Vac.vacancy_id  and Vac.Recruiter_id = Recruiter.PERSON_ID(+) and :2 between nvl(Recruiter.EFFECTIVE_START_DATE,:3) and nvl(Recruiter.EFFECTIVE_END_DATE, :4) and Vac.Manager_id = Manager.PERSON_ID(+) and   :5 between nvl(Manager.EFFECTIVE_START_DATE,:6) and nvl(Manager.EFFECTIVE_END_DATE,:7) and Status.LOOKUP_TYPE(+) = 'IRC_OFFER_STATUSES' and Offer.Offer_Status = Status.LOOKUP_CODE(+) And Offer.LATEST_OFFER = 'Y' and offer.applicant_assignment_id = asg.assignment_id and asg.person_id = applicant.person_id and :8 between nvl(applicant.EFFECTIVE_START_DATE,:9) and nvl(applicant.EFFECTIVE_END_DATE, :10) and asg.effective_start_date=(select max(effective_start_date)  from per_all_assignments_f asg2  where asg.assignment_id=asg2.assignment_id  and asg2.effective_start_date<=:11) AND EXISTS (SELECT NULL FROM PER_PEOPLE_F ppfs WHERE ppfs.person_id = applicant.person_id) AND exists (select null from per_vacancies pvacs where pvacs.vacancy_id = vac.vacancy_id) and reason.LOOKUP_TYPE(+) = 'IRC_OFFER_STATUS_CHANGE_REASON' and Offer.Offer_Status = Status.LOOKUP_CODE(+)   and ioh.change_reason = reason.lookup_code(+) and ioh.offer_id =offer.offer_id AND NOT EXISTS (SELECT 1 FROM irc_offer_status_history iosh1 WHERE iosh1.offer_id = ioh.offer_id AND iosh1.status_change_date > ioh.status_change_date) AND ioh.offer_status_history_id = (SELECT MAX(iosh2.offer_status_history_id) FROM irc_offer_status_history iosh2 WHERE iosh2.offer_id = ioh.offer_id AND iosh2.status_change_date = ioh.status_change_date) AND ASG.ASSIGNMENT_ID =IAS.ASSIGNMENT_ID       AND IAS.ASSIGNMENT_STATUS_TYPE_ID = AST.ASSIGNMENT_STATUS_TYPE_ID(+)       AND NOT EXISTS          (SELECT 1                                    FROM    irc_assignment_statuses ias2                                    WHERE   ias2.assignment_id             = asg.assignment_id                                        AND TRUNC(ias2.status_change_date) > TRUNC(ias.status_change_date))       AND ias.last_update_date =          (SELECT MAX(ias3.last_update_date) FROM    irc_assignment_statuses ias3 WHERE   ias3.assignment_id             = asg.assignment_id                                                    AND TRUNC(ias3.status_change_date) = TRUNC(ias.status_change_date)) and Vac.BUSINESS_GROUP_ID = Bg.ORGANIZATION_ID AND EXISTS ( SELECT  NULL FROM per_assignments_f asg3 WHERE asg.assignment_id = asg3.assignment_id ) AND     offer.offer_assignment_id = asg4.assignment_id AND     asg4.person_id = applicant.person_id AND     asg4.job_id = job.job_id AND asg4.effective_start_date = (         SELECT  max (effective_start_date)         FROM per_all_assignments_f asg5 WHERE   asg4.assignment_id = asg5.assignment_id         AND     asg5.effective_start_date <= :12         ) AND (( UPPER(Vac.NAME)  like UPPER(:1) AND (Vac.NAME  like :2 OR Vac.NAME  like  :3 OR Vac.NAME  like :4 OR Vac.NAME  like  :5))) ORDER BY Applicant.FULL_NAME 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.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
                    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2675)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
                    at _OA._jspService(_OA.java:212)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
                    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
                    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
                    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
                    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
                    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
                    at _OA._jspService(_OA.java:221)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
                    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
                    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
                    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
                    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
                    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
                    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
                    at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    java.sql.SQLException: Missing IN or OUT parameter at index:: 6
                    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)
                    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3754)
                    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
                    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
                    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
                    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
                    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
                    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
                    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3674)
                    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
                    at oracle.apps.irc.offers.server.IrcOfferSearchVOImpl.executeQuery(IrcOfferSearchVOImpl.java:160)
                    at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryDataInternal(OAWebBeanBaseTableHelper.java:1278)
                    at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryData(OAWebBeanBaseTableHelper.java:1139)
                    at oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean.queryData(OAAdvancedTableBean.java:450)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.executeQueryFromSearchCache(OAQueryHelper.java:7759)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.processRequestAfterController(OAQueryHelper.java:682)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:658)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.processRequest(OAQueryHelper.java:563)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1183)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
                    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2620)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
                    at _OA._jspService(_OA.java:212)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
                    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
                    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
                    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
                    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
                    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
                    at _OA._jspService(_OA.java:221)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
                    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
                    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
                    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
                    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
                    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
                    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
                    at java.lang.Thread.run(Thread.java:619)
    java.sql.SQLException: Missing IN or OUT parameter at index:: 6
                    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)
                    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3754)
                    at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
                    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4560)
                    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:743)
                    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:892)
                    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:806)
                    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:800)
                    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3674)
                    at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQuery(OAViewObjectImpl.java:439)
                    at oracle.apps.irc.offers.server.IrcOfferSearchVOImpl.executeQuery(IrcOfferSearchVOImpl.java:160)
                    at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryDataInternal(OAWebBeanBaseTableHelper.java:1278)
                    at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.queryData(OAWebBeanBaseTableHelper.java:1139)
                    at oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean.queryData(OAAdvancedTableBean.java:450)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.executeQueryFromSearchCache(OAQueryHelper.java:7759)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.processRequestAfterController(OAQueryHelper.java:682)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:658)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.OAQueryHelper.processRequest(OAQueryHelper.java:563)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1183)
                    at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
                    at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
                    at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
                    at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
                    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2620)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
                    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
                    at _OA._jspService(_OA.java:212)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
                    at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
                    at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
                    at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
                    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
                    at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
                    at _OA._jspService(_OA.java:221)
                    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
                    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
                    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
                    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
                    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
                    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
                    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
                    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
                    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
                    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
                    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
                    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
                    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
                    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
                    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
                    at java.lang.Thread.run(Thread.java:619)
    Regards,
    Pradeep

    Hi Dilip,
    Thanks for your reply. But that does not seem to be the problem. It was due to the Search query region. I was able to complete it.
    This is the piece of code i added in processRequest of my extended controller to fix it.
    OAQueryBean queryBean = (OAQueryBean)webBean.findChildRecursive("QueryRN");
    queryBean.clearSearchPersistenceCache(pageContext);
    Regards,
    Pradeep

  • URGENT:not all variables bound error

    Hi
    I am getting the following error while trying to run my MAAddTrnActPg.xml in the SSHR Module error in my VO. I have checked all the bind variable mappings still getting this error, pls suggest ASAP
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT lpm.LEARNING_PATH_MEMBER_ID,
    lpm.NOTIFY_DAYS_BEFORE_TARGET,
    lpm.BUSINESS_GROUP_ID,
    lpme.LP_MEMBER_ENROLLMENT_ID,
    lpme.MEMBER_STATUS_CODE,
    lpme.COMPLETION_TARGET_DATE,
    lpme.CREATOR_PERSON_ID,
    tav.VERSION_NAME,
    tav.END_DATE,
    tav.START_DATE,
    tav.ACTIVITY_VERSION_ID,
    lpm.ACTIVITY_VERSION_ID AS ACTIVITY_VERSION_ID1,
    decode(nvl(lpme.creator_person_id, -1), :1, 'Yes','No' ) update_switcher,
    decode(nvl(lpme.creator_person_id, -1), :2, 'Yes','No' ) delete_switcher,
    lpm.LEARNING_PATH_SECTION_ID
    from
    ota_learning_path_members lpm,
    ota_lp_member_enrollments lpme,
    ota_activity_versions tav
    where
    lpm.learning_path_section_id = :3
    and lpme.learning_path_member_id = lpm.learning_path_member_id
    and tav.activity_version_id = lpm.activity_version_id
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:891)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:865)
         at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:988)
         at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211)
         at oracle.apps.fnd.framework.server.OAApplicationModuleImpl.invokeMethod(OAApplicationModuleImpl.java:707)
    java.sql.SQLException: ORA-01008: not all variables bound

    Mariah,
    As you are using bind variables in the query itself, u should overide initQuery method in VOimpl class of VO.Like this
    VOimpl class
    =============
    public void initQuery(String creator_person_id,String learning_path_section_id )
    setWhereClauseParam(0,new oracle.jbo.domain.Number(Integer.parseInt(creator_person_id)));
    setWhereClauseParam(1,new oracle.jbo.domain.Number(Integer.parseInt(creator_person_id)));
    setWhereClauseParam(2,new oracle.jbo.domain.Number(Integer.parseInt(learning_path_section_id)));
    executeQuery();
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Parallel Query Error - 1008 Not All Variables Bound

    Using DB 10g Enterprise Edition Release 10.2.0.1.0
    I am trying to query a table in SQL plus using a bind variable. When I run the query the first time it fails but if I run it again, it works! See the following :
    SQL> var b1 number;
    SQL> exec :b1 := 133348;
    PL/SQL procedure successfully completed.
    SQL> set autot on exp stat
    SQL> select 2 from pension_details where party_id = :b1;
    select 2 from pension_details where party_id = :b1
    ERROR at line 1:
    ORA-12801: error signaled in parallel query server P001
    ORA-01008: not all variables bound
    SQL> /
    2
    2
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=2 Card=1 Bytes=11)
    1 0 INDEX (RANGE SCAN) OF 'PENDTL_PK' (INDEX (UNIQUE)) (Cost=2
    Card=1 Bytes=11)
    If I add a hint suppressing the parallel index option, then it works first time :
    1* select /*+NOPARALLEL_INDEX (PENSION_DETAILS) */ 4 from pension_details where party_id = :b1
    SQL> /
    4
    4
    Execution Plan
    0 SELECT STATEMENT Optimizer=ALL_ROWS (Cost=2 Card=1 Bytes=11)
    1 0 INDEX (RANGE SCAN) OF 'PENDTL_PK' (INDEX (UNIQUE)) (Cost=2
    Card=1 Bytes=11)
    Can anyone shed any light on why this happens or what I need to check on the table and index? I have tried to replicate this on a different table (and a different db) with the parallel option on both the table and index but it works fine!

    Seeing as there have been no replies, I thought I would update my own thread!
    It turns out this is a bug that has been fixed in 11i. The fix has been back-ported to certain versions/os's.
    I will post the bug reference (it is on Metalink somewhere!) later. In the meantime, a workaround is to use the noparrallel_index hint.

  • "not all variables bound" error in a BI publisher report

    Hi, I'm getting a "ORA-01008: not all variables bound" error in my BI publisher report. The SQL query looks like this:
    select
    ...--a bunch of rows
    from
    tbl1,tbl2,...,tblk
    where
    ...--and conditions performing inner joins
    and
    (('*') in &p_SomeParameter or tbl3.SomeValueOfSameType in &p_SomeParameter)
    Yet, when I comment out this last and condition, it works. Also, the default value for this parameter is ('*'). I get this error even when just trying to look the xml data itself. Has anyone seen "ORA-01008: not all variables bound" caused by a BI-Publisher report before?
    Why haven't I gotten a reply to this? Did I make myself clear enough? The query runs fine in Toad. Therefore this means that BI Publisher is mangling the query before it has a chance to be processed by the Oracle RDBMS. Therefore I want to know why BI Publisher is mangling my select query and causing the RDBMS to return a "not all variables bound" error.
    Message was edited by:
    user586835

    Try, (use ':' instead of '&')
    (('*') in :p_SomeParameter or tbl3.SomeValueOfSameType in :p_SomeParameter)
    )

  • Oracle.jbo.SQLStmtException:JBO-27122:SQL error during statement preparatio

    Hi,
    i am extending a VO(ApInvDistAllVO) in r12.i am just adding three additional columns.when i am substuting the VO, getting error as "Attempt to set a parameter name that does not occur in the SQL: Bind_InvoiceId".Here i am pasting seeded and custom query.
    SELECT ApInvDistAllEO.ACCOUNTING_DATE,
    ApInvDistAllEO.ACCRUAL_POSTED_FLAG,
    ApInvDistAllEO.ASSETS_ADDITION_FLAG,
    ApInvDistAllEO.ASSETS_TRACKING_FLAG,
    ApInvDistAllEO.CASH_POSTED_FLAG,
    ApInvDistAllEO.DISTRIBUTION_LINE_NUMBER,
    ApInvDistAllEO.DIST_CODE_COMBINATION_ID,
    ApInvDistAllEO.INVOICE_ID,
    ApInvDistAllEO.LAST_UPDATED_BY,
    ApInvDistAllEO.LAST_UPDATE_DATE,
    ApInvDistAllEO.LINE_TYPE_LOOKUP_CODE,
    ApInvDistAllEO.PERIOD_NAME,
    ApInvDistAllEO.SET_OF_BOOKS_ID,
    ApInvDistAllEO.ACCTS_PAY_CODE_COMBINATION_ID,
    ApInvDistAllEO.AMOUNT,
    ApInvDistAllEO.BASE_AMOUNT,
    ApInvDistAllEO.BASE_INVOICE_PRICE_VARIANCE,
    ApInvDistAllEO.BATCH_ID,
    ApInvDistAllEO.CREATED_BY,
    ApInvDistAllEO.CREATION_DATE,
    ApInvDistAllEO.DESCRIPTION,
    ApInvDistAllEO.EXCHANGE_RATE_VARIANCE,
    ApInvDistAllEO.FINAL_MATCH_FLAG,
    ApInvDistAllEO.INCOME_TAX_REGION,
    ApInvDistAllEO.INVOICE_PRICE_VARIANCE,
    ApInvDistAllEO.LAST_UPDATE_LOGIN,
    ApInvDistAllEO.MATCH_STATUS_FLAG,
    ApInvDistAllEO.POSTED_FLAG,
    ApInvDistAllEO.PO_DISTRIBUTION_ID,
    ApInvDistAllEO.PROGRAM_APPLICATION_ID,
    ApInvDistAllEO.PROGRAM_ID,
    ApInvDistAllEO.PROGRAM_UPDATE_DATE,
    ApInvDistAllEO.QUANTITY_INVOICED,
    ApInvDistAllEO.RATE_VAR_CODE_COMBINATION_ID,
    ApInvDistAllEO.REQUEST_ID,
    ApInvDistAllEO.REVERSAL_FLAG,
    ApInvDistAllEO.TYPE_1099,
    ApInvDistAllEO.UNIT_PRICE,
    ApInvDistAllEO.AMOUNT_ENCUMBERED,
    ApInvDistAllEO.BASE_AMOUNT_ENCUMBERED,
    ApInvDistAllEO.ENCUMBERED_FLAG,
    ApInvDistAllEO.EXCHANGE_DATE,
    ApInvDistAllEO.EXCHANGE_RATE,
    ApInvDistAllEO.EXCHANGE_RATE_TYPE,
    ApInvDistAllEO.PRICE_ADJUSTMENT_FLAG,
    ApInvDistAllEO.PRICE_VAR_CODE_COMBINATION_ID,
    ApInvDistAllEO.QUANTITY_UNENCUMBERED,
    ApInvDistAllEO.STAT_AMOUNT,
    ApInvDistAllEO.AMOUNT_TO_POST,
    ApInvDistAllEO.ATTRIBUTE1,
    ApInvDistAllEO.ATTRIBUTE10,
    ApInvDistAllEO.ATTRIBUTE11,
    ApInvDistAllEO.ATTRIBUTE12,
    ApInvDistAllEO.ATTRIBUTE13,
    ApInvDistAllEO.ATTRIBUTE14,
    ApInvDistAllEO.ATTRIBUTE15,
    ApInvDistAllEO.ATTRIBUTE2,
    ApInvDistAllEO.ATTRIBUTE3,
    ApInvDistAllEO.ATTRIBUTE4,
    ApInvDistAllEO.ATTRIBUTE5,
    ApInvDistAllEO.ATTRIBUTE6,
    ApInvDistAllEO.ATTRIBUTE7,
    ApInvDistAllEO.ATTRIBUTE8,
    ApInvDistAllEO.ATTRIBUTE9,
    ApInvDistAllEO.ATTRIBUTE_CATEGORY,
    ApInvDistAllEO.BASE_AMOUNT_TO_POST,
    ApInvDistAllEO.CASH_JE_BATCH_ID,
    ApInvDistAllEO.EXPENDITURE_ITEM_DATE,
    ApInvDistAllEO.EXPENDITURE_ORGANIZATION_ID,
    ApInvDistAllEO.EXPENDITURE_TYPE,
    ApInvDistAllEO.JE_BATCH_ID,
    ApInvDistAllEO.PARENT_INVOICE_ID,
    ApInvDistAllEO.PA_ADDITION_FLAG,
    ApInvDistAllEO.PA_QUANTITY,
    ApInvDistAllEO.POSTED_AMOUNT,
    ApInvDistAllEO.POSTED_BASE_AMOUNT,
    ApInvDistAllEO.PREPAY_AMOUNT_REMAINING,
    ApInvDistAllEO.PROJECT_ACCOUNTING_CONTEXT,
    ApInvDistAllEO.PROJECT_ID,
    ApInvDistAllEO.TASK_ID,
    ApInvDistAllEO.USSGL_TRANSACTION_CODE,
    ApInvDistAllEO.USSGL_TRX_CODE_CONTEXT,
    ApInvDistAllEO.EARLIEST_SETTLEMENT_DATE,
    ApInvDistAllEO.REQ_DISTRIBUTION_ID,
    ApInvDistAllEO.QUANTITY_VARIANCE,
    ApInvDistAllEO.BASE_QUANTITY_VARIANCE,
    ApInvDistAllEO.PACKET_ID,
    ApInvDistAllEO.AWT_FLAG,
    ApInvDistAllEO.AWT_GROUP_ID,
    ApInvDistAllEO.AWT_TAX_RATE_ID,
    ApInvDistAllEO.AWT_GROSS_AMOUNT,
    ApInvDistAllEO.AWT_INVOICE_ID,
    ApInvDistAllEO.AWT_ORIGIN_GROUP_ID,
    ApInvDistAllEO.REFERENCE_1,
    ApInvDistAllEO.REFERENCE_2,
    ApInvDistAllEO.ORG_ID,
    ApInvDistAllEO.OTHER_INVOICE_ID,
    ApInvDistAllEO.AWT_INVOICE_PAYMENT_ID,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE_CATEGORY,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE1,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE2,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE3,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE4,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE5,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE6,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE7,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE8,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE9,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE10,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE11,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE12,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE13,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE14,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE15,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE16,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE17,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE18,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE19,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE20,
    ApInvDistAllEO.LINE_GROUP_NUMBER,
    ApInvDistAllEO.RECEIPT_VERIFIED_FLAG,
    ApInvDistAllEO.RECEIPT_REQUIRED_FLAG,
    ApInvDistAllEO.RECEIPT_MISSING_FLAG,
    ApInvDistAllEO.JUSTIFICATION,
    ApInvDistAllEO.EXPENSE_GROUP,
    ApInvDistAllEO.START_EXPENSE_DATE,
    ApInvDistAllEO.END_EXPENSE_DATE,
    ApInvDistAllEO.RECEIPT_CURRENCY_CODE,
    ApInvDistAllEO.RECEIPT_CONVERSION_RATE,
    ApInvDistAllEO.RECEIPT_CURRENCY_AMOUNT,
    ApInvDistAllEO.DAILY_AMOUNT,
    ApInvDistAllEO.WEB_PARAMETER_ID,
    ApInvDistAllEO.ADJUSTMENT_REASON,
    ApInvDistAllEO.AWARD_ID,
    ApInvDistAllEO.MRC_ACCRUAL_POSTED_FLAG,
    ApInvDistAllEO.MRC_CASH_POSTED_FLAG,
    ApInvDistAllEO.MRC_DIST_CODE_COMBINATION_ID,
    ApInvDistAllEO.MRC_AMOUNT,
    ApInvDistAllEO.MRC_BASE_AMOUNT,
    ApInvDistAllEO.MRC_BASE_INV_PRICE_VARIANCE,
    ApInvDistAllEO.MRC_EXCHANGE_RATE_VARIANCE,
    ApInvDistAllEO.MRC_POSTED_FLAG,
    ApInvDistAllEO.MRC_PROGRAM_APPLICATION_ID,
    ApInvDistAllEO.MRC_PROGRAM_ID,
    ApInvDistAllEO.MRC_PROGRAM_UPDATE_DATE,
    ApInvDistAllEO.MRC_RATE_VAR_CCID,
    ApInvDistAllEO.MRC_REQUEST_ID,
    ApInvDistAllEO.MRC_EXCHANGE_DATE,
    ApInvDistAllEO.MRC_EXCHANGE_RATE,
    ApInvDistAllEO.MRC_EXCHANGE_RATE_TYPE,
    ApInvDistAllEO.MRC_AMOUNT_TO_POST,
    ApInvDistAllEO.MRC_BASE_AMOUNT_TO_POST,
    ApInvDistAllEO.MRC_CASH_JE_BATCH_ID,
    ApInvDistAllEO.MRC_JE_BATCH_ID,
    ApInvDistAllEO.MRC_POSTED_AMOUNT,
    ApInvDistAllEO.MRC_POSTED_BASE_AMOUNT,
    ApInvDistAllEO.MRC_RECEIPT_CONVERSION_RATE,
    ApInvDistAllEO.CREDIT_CARD_TRX_ID,
    ApInvDistAllEO.DIST_MATCH_TYPE,
    ApInvDistAllEO.RCV_TRANSACTION_ID,
    ApInvDistAllEO.INVOICE_DISTRIBUTION_ID,
    ApInvDistAllEO.PARENT_REVERSAL_ID,
    ApInvDistAllEO.TAX_RECOVERABLE_FLAG,
    ApInvDistAllEO.PA_CC_AR_INVOICE_ID,
    ApInvDistAllEO.PA_CC_AR_INVOICE_LINE_NUM,
    ApInvDistAllEO.PA_CC_PROCESSED_CODE,
    ApInvDistAllEO.MERCHANT_DOCUMENT_NUMBER,
    ApInvDistAllEO.MERCHANT_NAME,
    ApInvDistAllEO.MERCHANT_REFERENCE,
    ApInvDistAllEO.MERCHANT_TAX_REG_NUMBER,
    ApInvDistAllEO.MERCHANT_TAXPAYER_ID,
    ApInvDistAllEO.COUNTRY_OF_SUPPLY,
    ApInvDistAllEO.MATCHED_UOM_LOOKUP_CODE,
    ApInvDistAllEO.GMS_BURDENABLE_RAW_COST,
    ApInvDistAllEO.ACCOUNTING_EVENT_ID,
    ApInvDistAllEO.PREPAY_DISTRIBUTION_ID,
    ApInvDistAllEO.UPGRADE_POSTED_AMT,
    ApInvDistAllEO.UPGRADE_BASE_POSTED_AMT,
    ApInvDistAllEO.INVENTORY_TRANSFER_STATUS,
    ApInvDistAllEO.COMPANY_PREPAID_INVOICE_ID,
    ApInvDistAllEO.CC_REVERSAL_FLAG,
    ApInvDistAllEO.AWT_WITHHELD_AMT,
    ApInvDistAllEO.INVOICE_INCLUDES_PREPAY_FLAG,
    ApInvDistAllEO.PRICE_CORRECT_INV_ID,
    ApInvDistAllEO.PRICE_CORRECT_QTY,
    ApInvDistAllEO.PA_CMT_XFACE_FLAG,
    ApInvDistAllEO.CANCELLATION_FLAG,
    ApInvDistAllEO.INVOICE_LINE_NUMBER,
    ApInvDistAllEO.CORRECTED_INVOICE_DIST_ID,
    ApInvDistAllEO.ROUNDING_AMT,
    ApInvDistAllEO.CHARGE_APPLICABLE_TO_DIST_ID,
    ApInvDistAllEO.CORRECTED_QUANTITY,
    ApInvDistAllEO.RELATED_ID,
    ApInvDistAllEO.ASSET_BOOK_TYPE_CODE,
    ApInvDistAllEO.ASSET_CATEGORY_ID,
    ApInvDistAllEO.DISTRIBUTION_CLASS,
    ApInvDistAllEO.FINAL_PAYMENT_ROUNDING,
    ApInvDistAllEO.FINAL_APPLICATION_ROUNDING,
    ApInvDistAllEO.AMOUNT_AT_PREPAY_XRATE,
    ApInvDistAllEO.CASH_BASIS_FINAL_APP_ROUNDING,
    ApInvDistAllEO.AMOUNT_AT_PREPAY_PAY_XRATE,
    ApInvDistAllEO.INTENDED_USE,
    ApInvDistAllEO.DETAIL_TAX_DIST_ID,
    ApInvDistAllEO.REC_NREC_RATE,
    ApInvDistAllEO.RECOVERY_RATE_ID,
    ApInvDistAllEO.RECOVERY_RATE_NAME,
    ApInvDistAllEO.RECOVERY_TYPE_CODE,
    ApInvDistAllEO.RECOVERY_RATE_CODE,
    ApInvDistAllEO.WITHHOLDING_TAX_CODE_ID,
    ApInvDistAllEO.TAX_ALREADY_DISTRIBUTED_FLAG,
    ApInvDistAllEO.SUMMARY_TAX_LINE_ID,
    ApInvDistAllEO.TAXABLE_AMOUNT,
    ApInvDistAllEO.TAXABLE_BASE_AMOUNT,
    ApInvDistAllEO.EXTRA_PO_ERV,
    ApInvDistAllEO.PREPAY_TAX_DIFF_AMOUNT,
    ApInvDistAllEO.TAX_CODE_ID,
    ApInvDistAllEO.VAT_CODE,
    ApInvDistAllEO.AMOUNT_INCLUDES_TAX_FLAG,
    ApInvDistAllEO.TAX_CALCULATED_FLAG,
    ApInvDistAllEO.TAX_RECOVERY_RATE,
    ApInvDistAllEO.TAX_RECOVERY_OVERRIDE_FLAG,
    ApInvDistAllEO.TAX_CODE_OVERRIDE_FLAG,
    ApInvDistAllEO.TOTAL_DIST_AMOUNT,
    ApInvDistAllEO.TOTAL_DIST_BASE_AMOUNT,
    ApInvDistAllEO.PREPAY_TAX_PARENT_ID,
    ApInvDistAllEO.CANCELLED_FLAG,
    ApInvDistAllEO.OLD_DISTRIBUTION_ID,
    ApInvDistAllEO.OLD_DIST_LINE_NUMBER,
    ApInvDistAllEO.AMOUNT_VARIANCE,
    ApInvDistAllEO.BASE_AMOUNT_VARIANCE,
    ApInvDistAllEO.HISTORICAL_FLAG,
    ApInvDistAllEO.RCV_CHARGE_ADDITION_FLAG,
    ApInvDistAllEO.AWT_RELATED_ID,
    ApInvDistAllEO.RELATED_RETAINAGE_DIST_ID,
    ApInvDistAllEO.RETAINED_AMOUNT_REMAINING,
    ApInvDistAllEO.BC_EVENT_ID,
    ApInvDistAllEO.RETAINED_INVOICE_DIST_ID,
    ApInvDistAllEO.FINAL_RELEASE_ROUNDING,
    ApInvDistAllEO.FULLY_PAID_ACCTD_FLAG,
    ApInvDistAllEO.ROOT_DISTRIBUTION_ID,
    ApInvDistAllEO.XINV_PARENT_REVERSAL_ID,
    ApInvDistAllEO.RECURRING_PAYMENT_ID,
    ApInvDistAllEO.RELEASE_INV_DIST_DERIVED_FROM,
    gl_flexfields_pkg.get_concat_description
         (f.id_flex_num,
         ApInvDistAllEO.dist_code_combination_id)          segments
    FROM AP_INVOICE_DISTRIBUTIONS_ALL ApInvDistAllEO,
         fnd_id_flex_structures_vl f,
         ap_invoices_all i,
         gl_sets_of_books sob
    where      ApInvDistAllEO.invoice_id = i.invoice_id
    and     sob.set_of_books_id = i.set_of_books_id
    and     f.id_flex_num = sob.chart_of_accounts_id
    and     f.id_flex_code = 'GL#'
    and     f.application_id = 101
    custom query
    SELECT ApInvDistAllEO.ACCOUNTING_DATE,
    ApInvDistAllEO.ACCRUAL_POSTED_FLAG,
    ApInvDistAllEO.ASSETS_ADDITION_FLAG,
    ApInvDistAllEO.ASSETS_TRACKING_FLAG,
    ApInvDistAllEO.CASH_POSTED_FLAG,
    ApInvDistAllEO.DISTRIBUTION_LINE_NUMBER,
    ApInvDistAllEO.DIST_CODE_COMBINATION_ID,
    ApInvDistAllEO.INVOICE_ID,
    ApInvDistAllEO.LAST_UPDATED_BY,
    ApInvDistAllEO.LAST_UPDATE_DATE,
    ApInvDistAllEO.LINE_TYPE_LOOKUP_CODE,
    ApInvDistAllEO.PERIOD_NAME,
    ApInvDistAllEO.SET_OF_BOOKS_ID,
    ApInvDistAllEO.ACCTS_PAY_CODE_COMBINATION_ID,
    ApInvDistAllEO.AMOUNT,
    ApInvDistAllEO.BASE_AMOUNT,
    ApInvDistAllEO.BASE_INVOICE_PRICE_VARIANCE,
    ApInvDistAllEO.BATCH_ID,
    ApInvDistAllEO.CREATED_BY,
    ApInvDistAllEO.CREATION_DATE,
    ApInvDistAllEO.DESCRIPTION,
    ApInvDistAllEO.EXCHANGE_RATE_VARIANCE,
    ApInvDistAllEO.FINAL_MATCH_FLAG,
    ApInvDistAllEO.INCOME_TAX_REGION,
    ApInvDistAllEO.INVOICE_PRICE_VARIANCE,
    ApInvDistAllEO.LAST_UPDATE_LOGIN,
    ApInvDistAllEO.MATCH_STATUS_FLAG,
    ApInvDistAllEO.POSTED_FLAG,
    ApInvDistAllEO.PO_DISTRIBUTION_ID,
    ApInvDistAllEO.PROGRAM_APPLICATION_ID,
    ApInvDistAllEO.PROGRAM_ID,
    ApInvDistAllEO.PROGRAM_UPDATE_DATE,
    ApInvDistAllEO.QUANTITY_INVOICED,
    ApInvDistAllEO.RATE_VAR_CODE_COMBINATION_ID,
    ApInvDistAllEO.REQUEST_ID,
    ApInvDistAllEO.REVERSAL_FLAG,
    ApInvDistAllEO.TYPE_1099,
    ApInvDistAllEO.UNIT_PRICE,
    ApInvDistAllEO.AMOUNT_ENCUMBERED,
    ApInvDistAllEO.BASE_AMOUNT_ENCUMBERED,
    ApInvDistAllEO.ENCUMBERED_FLAG,
    ApInvDistAllEO.EXCHANGE_DATE,
    ApInvDistAllEO.EXCHANGE_RATE,
    ApInvDistAllEO.EXCHANGE_RATE_TYPE,
    ApInvDistAllEO.PRICE_ADJUSTMENT_FLAG,
    ApInvDistAllEO.PRICE_VAR_CODE_COMBINATION_ID,
    ApInvDistAllEO.QUANTITY_UNENCUMBERED,
    ApInvDistAllEO.STAT_AMOUNT,
    ApInvDistAllEO.AMOUNT_TO_POST,
    ApInvDistAllEO.ATTRIBUTE1,
    ApInvDistAllEO.ATTRIBUTE10,
    ApInvDistAllEO.ATTRIBUTE11,
    ApInvDistAllEO.ATTRIBUTE12,
    ApInvDistAllEO.ATTRIBUTE13,
    ApInvDistAllEO.ATTRIBUTE14,
    ApInvDistAllEO.ATTRIBUTE15,
    ApInvDistAllEO.ATTRIBUTE2,
    ApInvDistAllEO.ATTRIBUTE3,
    ApInvDistAllEO.ATTRIBUTE4,
    ApInvDistAllEO.ATTRIBUTE5,
    ApInvDistAllEO.ATTRIBUTE6,
    ApInvDistAllEO.ATTRIBUTE7,
    ApInvDistAllEO.ATTRIBUTE8,
    ApInvDistAllEO.ATTRIBUTE9,
    ApInvDistAllEO.ATTRIBUTE_CATEGORY,
    ApInvDistAllEO.BASE_AMOUNT_TO_POST,
    ApInvDistAllEO.CASH_JE_BATCH_ID,
    ApInvDistAllEO.EXPENDITURE_ITEM_DATE,
    ApInvDistAllEO.EXPENDITURE_ORGANIZATION_ID,
    ApInvDistAllEO.EXPENDITURE_TYPE,
    ApInvDistAllEO.JE_BATCH_ID,
    ApInvDistAllEO.PARENT_INVOICE_ID,
    ApInvDistAllEO.PA_ADDITION_FLAG,
    ApInvDistAllEO.PA_QUANTITY,
    ApInvDistAllEO.POSTED_AMOUNT,
    ApInvDistAllEO.POSTED_BASE_AMOUNT,
    ApInvDistAllEO.PREPAY_AMOUNT_REMAINING,
    ApInvDistAllEO.PROJECT_ACCOUNTING_CONTEXT,
    ApInvDistAllEO.PROJECT_ID,
    ApInvDistAllEO.TASK_ID,
    ApInvDistAllEO.USSGL_TRANSACTION_CODE,
    ApInvDistAllEO.USSGL_TRX_CODE_CONTEXT,
    ApInvDistAllEO.EARLIEST_SETTLEMENT_DATE,
    ApInvDistAllEO.REQ_DISTRIBUTION_ID,
    ApInvDistAllEO.QUANTITY_VARIANCE,
    ApInvDistAllEO.BASE_QUANTITY_VARIANCE,
    ApInvDistAllEO.PACKET_ID,
    ApInvDistAllEO.AWT_FLAG,
    ApInvDistAllEO.AWT_GROUP_ID,
    ApInvDistAllEO.AWT_TAX_RATE_ID,
    ApInvDistAllEO.AWT_GROSS_AMOUNT,
    ApInvDistAllEO.AWT_INVOICE_ID,
    ApInvDistAllEO.AWT_ORIGIN_GROUP_ID,
    ApInvDistAllEO.REFERENCE_1,
    ApInvDistAllEO.REFERENCE_2,
    ApInvDistAllEO.ORG_ID,
    ApInvDistAllEO.OTHER_INVOICE_ID,
    ApInvDistAllEO.AWT_INVOICE_PAYMENT_ID,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE_CATEGORY,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE1,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE2,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE3,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE4,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE5,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE6,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE7,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE8,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE9,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE10,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE11,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE12,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE13,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE14,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE15,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE16,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE17,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE18,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE19,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE20,
    ApInvDistAllEO.LINE_GROUP_NUMBER,
    ApInvDistAllEO.RECEIPT_VERIFIED_FLAG,
    ApInvDistAllEO.RECEIPT_REQUIRED_FLAG,
    ApInvDistAllEO.RECEIPT_MISSING_FLAG,
    ApInvDistAllEO.JUSTIFICATION,
    ApInvDistAllEO.EXPENSE_GROUP,
    ApInvDistAllEO.START_EXPENSE_DATE,
    ApInvDistAllEO.END_EXPENSE_DATE,
    ApInvDistAllEO.RECEIPT_CURRENCY_CODE,
    ApInvDistAllEO.RECEIPT_CONVERSION_RATE,
    ApInvDistAllEO.RECEIPT_CURRENCY_AMOUNT,
    ApInvDistAllEO.DAILY_AMOUNT,
    ApInvDistAllEO.WEB_PARAMETER_ID,
    ApInvDistAllEO.ADJUSTMENT_REASON,
    ApInvDistAllEO.AWARD_ID,
    ApInvDistAllEO.MRC_ACCRUAL_POSTED_FLAG,
    ApInvDistAllEO.MRC_CASH_POSTED_FLAG,
    ApInvDistAllEO.MRC_DIST_CODE_COMBINATION_ID,
    ApInvDistAllEO.MRC_AMOUNT,
    ApInvDistAllEO.MRC_BASE_AMOUNT,
    ApInvDistAllEO.MRC_BASE_INV_PRICE_VARIANCE,
    ApInvDistAllEO.MRC_EXCHANGE_RATE_VARIANCE,
    ApInvDistAllEO.MRC_POSTED_FLAG,
    ApInvDistAllEO.MRC_PROGRAM_APPLICATION_ID,
    ApInvDistAllEO.MRC_PROGRAM_ID,
    ApInvDistAllEO.MRC_PROGRAM_UPDATE_DATE,
    ApInvDistAllEO.MRC_RATE_VAR_CCID,
    ApInvDistAllEO.MRC_REQUEST_ID,
    ApInvDistAllEO.MRC_EXCHANGE_DATE,
    ApInvDistAllEO.MRC_EXCHANGE_RATE,
    ApInvDistAllEO.MRC_EXCHANGE_RATE_TYPE,
    ApInvDistAllEO.MRC_AMOUNT_TO_POST,
    ApInvDistAllEO.MRC_BASE_AMOUNT_TO_POST,
    ApInvDistAllEO.MRC_CASH_JE_BATCH_ID,
    ApInvDistAllEO.MRC_JE_BATCH_ID,
    ApInvDistAllEO.MRC_POSTED_AMOUNT,
    ApInvDistAllEO.MRC_POSTED_BASE_AMOUNT,
    ApInvDistAllEO.MRC_RECEIPT_CONVERSION_RATE,
    ApInvDistAllEO.CREDIT_CARD_TRX_ID,
    ApInvDistAllEO.DIST_MATCH_TYPE,
    ApInvDistAllEO.RCV_TRANSACTION_ID,
    ApInvDistAllEO.INVOICE_DISTRIBUTION_ID,
    ApInvDistAllEO.PARENT_REVERSAL_ID,
    ApInvDistAllEO.TAX_RECOVERABLE_FLAG,
    ApInvDistAllEO.PA_CC_AR_INVOICE_ID,
    ApInvDistAllEO.PA_CC_AR_INVOICE_LINE_NUM,
    ApInvDistAllEO.PA_CC_PROCESSED_CODE,
    ApInvDistAllEO.MERCHANT_DOCUMENT_NUMBER,
    ApInvDistAllEO.MERCHANT_NAME,
    ApInvDistAllEO.MERCHANT_REFERENCE,
    ApInvDistAllEO.MERCHANT_TAX_REG_NUMBER,
    ApInvDistAllEO.MERCHANT_TAXPAYER_ID,
    ApInvDistAllEO.COUNTRY_OF_SUPPLY,
    ApInvDistAllEO.MATCHED_UOM_LOOKUP_CODE,
    ApInvDistAllEO.GMS_BURDENABLE_RAW_COST,
    ApInvDistAllEO.ACCOUNTING_EVENT_ID,
    ApInvDistAllEO.PREPAY_DISTRIBUTION_ID,
    ApInvDistAllEO.UPGRADE_POSTED_AMT,
    ApInvDistAllEO.UPGRADE_BASE_POSTED_AMT,
    ApInvDistAllEO.INVENTORY_TRANSFER_STATUS,
    ApInvDistAllEO.COMPANY_PREPAID_INVOICE_ID,
    ApInvDistAllEO.CC_REVERSAL_FLAG,
    ApInvDistAllEO.AWT_WITHHELD_AMT,
    ApInvDistAllEO.INVOICE_INCLUDES_PREPAY_FLAG,
    ApInvDistAllEO.PRICE_CORRECT_INV_ID,
    ApInvDistAllEO.PRICE_CORRECT_QTY,
    ApInvDistAllEO.PA_CMT_XFACE_FLAG,
    ApInvDistAllEO.CANCELLATION_FLAG,
    ApInvDistAllEO.INVOICE_LINE_NUMBER,
    ApInvDistAllEO.CORRECTED_INVOICE_DIST_ID,
    ApInvDistAllEO.ROUNDING_AMT,
    ApInvDistAllEO.CHARGE_APPLICABLE_TO_DIST_ID,
    ApInvDistAllEO.CORRECTED_QUANTITY,
    ApInvDistAllEO.RELATED_ID,
    ApInvDistAllEO.ASSET_BOOK_TYPE_CODE,
    ApInvDistAllEO.ASSET_CATEGORY_ID,
    ApInvDistAllEO.DISTRIBUTION_CLASS,
    ApInvDistAllEO.FINAL_PAYMENT_ROUNDING,
    ApInvDistAllEO.FINAL_APPLICATION_ROUNDING,
    ApInvDistAllEO.AMOUNT_AT_PREPAY_XRATE,
    ApInvDistAllEO.CASH_BASIS_FINAL_APP_ROUNDING,
    ApInvDistAllEO.AMOUNT_AT_PREPAY_PAY_XRATE,
    ApInvDistAllEO.INTENDED_USE,
    ApInvDistAllEO.DETAIL_TAX_DIST_ID,
    ApInvDistAllEO.REC_NREC_RATE,
    ApInvDistAllEO.RECOVERY_RATE_ID,
    ApInvDistAllEO.RECOVERY_RATE_NAME,
    ApInvDistAllEO.RECOVERY_TYPE_CODE,
    ApInvDistAllEO.RECOVERY_RATE_CODE,
    ApInvDistAllEO.WITHHOLDING_TAX_CODE_ID,
    ApInvDistAllEO.TAX_ALREADY_DISTRIBUTED_FLAG,
    ApInvDistAllEO.SUMMARY_TAX_LINE_ID,
    ApInvDistAllEO.TAXABLE_AMOUNT,
    ApInvDistAllEO.TAXABLE_BASE_AMOUNT,
    ApInvDistAllEO.EXTRA_PO_ERV,
    ApInvDistAllEO.PREPAY_TAX_DIFF_AMOUNT,
    ApInvDistAllEO.TAX_CODE_ID,
    ApInvDistAllEO.VAT_CODE,
    ApInvDistAllEO.AMOUNT_INCLUDES_TAX_FLAG,
    ApInvDistAllEO.TAX_CALCULATED_FLAG,
    ApInvDistAllEO.TAX_RECOVERY_RATE,
    ApInvDistAllEO.TAX_RECOVERY_OVERRIDE_FLAG,
    ApInvDistAllEO.TAX_CODE_OVERRIDE_FLAG,
    ApInvDistAllEO.TOTAL_DIST_AMOUNT,
    ApInvDistAllEO.TOTAL_DIST_BASE_AMOUNT,
    ApInvDistAllEO.PREPAY_TAX_PARENT_ID,
    ApInvDistAllEO.CANCELLED_FLAG,
    ApInvDistAllEO.OLD_DISTRIBUTION_ID,
    ApInvDistAllEO.OLD_DIST_LINE_NUMBER,
    ApInvDistAllEO.AMOUNT_VARIANCE,
    ApInvDistAllEO.BASE_AMOUNT_VARIANCE,
    ApInvDistAllEO.HISTORICAL_FLAG,
    ApInvDistAllEO.RCV_CHARGE_ADDITION_FLAG,
    ApInvDistAllEO.AWT_RELATED_ID,
    ApInvDistAllEO.RELATED_RETAINAGE_DIST_ID,
    ApInvDistAllEO.RETAINED_AMOUNT_REMAINING,
    ApInvDistAllEO.BC_EVENT_ID,
    ApInvDistAllEO.RETAINED_INVOICE_DIST_ID,
    ApInvDistAllEO.FINAL_RELEASE_ROUNDING,
    ApInvDistAllEO.FULLY_PAID_ACCTD_FLAG,
    ApInvDistAllEO.ROOT_DISTRIBUTION_ID,
    ApInvDistAllEO.XINV_PARENT_REVERSAL_ID,
    ApInvDistAllEO.RECURRING_PAYMENT_ID,
    ApInvDistAllEO.RELEASE_INV_DIST_DERIVED_FROM,
    gl_flexfields_pkg.get_concat_description
         (f.id_flex_num,
         ApInvDistAllEO.dist_code_combination_id)          segments,
    (SELECT segment1
    FROM pa_projects_all ppa
    WHERE ppa.project_id = apinvdistalleo.project_id) project_number,
    (SELECT pt.task_number
    FROM pa_tasks pt
    WHERE pt.task_id = apinvdistalleo.task_id) task_number,
    (SELECT NAME
    FROM hr_all_organization_units hou
    WHERE hou.organization_id =
    apinvdistalleo.expenditure_organization_id)
    expd_org_name
    FROM AP_INVOICE_DISTRIBUTIONS_ALL ApInvDistAllEO,
         fnd_id_flex_structures_vl f,
         ap_invoices_all i,
         gl_sets_of_books sob
    where      ApInvDistAllEO.invoice_id = i.invoice_id
    and     sob.set_of_books_id = i.set_of_books_id
    and     f.id_flex_num = sob.chart_of_accounts_id
    and     f.id_flex_code = 'GL#'
    and     f.application_id = 101
    Thanks
    Praveen

    Hi Siva,
    Thanks for you response.
    I didn't defined bind variables.But this vo is used by one Seeded VL
    Substution steps:
    1.Substuited the seed vo with custom vo in jdeveloper.
    2.Imported the .jpx file using jpx importer.it displayed like this.
    Imported document : /oracle/apps/ap/invoice/request/negotiation/server/customizations/site/0/ApInvDistAllVO.
    i am providing error stack also:
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT ApInvDistAllEO.ACCOUNTING_DATE,
    ApInvDistAllEO.ACCRUAL_POSTED_FLAG,
    ApInvDistAllEO.ASSETS_ADDITION_FLAG,
    ApInvDistAllEO.ASSETS_TRACKING_FLAG,
    ApInvDistAllEO.CASH_POSTED_FLAG,
    ApInvDistAllEO.DISTRIBUTION_LINE_NUMBER,
    ApInvDistAllEO.DIST_CODE_COMBINATION_ID,
    ApInvDistAllEO.INVOICE_ID,
    ApInvDistAllEO.LAST_UPDATED_BY,
    ApInvDistAllEO.LAST_UPDATE_DATE,
    ApInvDistAllEO.LINE_TYPE_LOOKUP_CODE,
    ApInvDistAllEO.PERIOD_NAME,
    ApInvDistAllEO.SET_OF_BOOKS_ID,
    ApInvDistAllEO.ACCTS_PAY_CODE_COMBINATION_ID,
    ApInvDistAllEO.AMOUNT,
    ApInvDistAllEO.BASE_AMOUNT,
    ApInvDistAllEO.BASE_INVOICE_PRICE_VARIANCE,
    ApInvDistAllEO.BATCH_ID,
    ApInvDistAllEO.CREATED_BY,
    ApInvDistAllEO.CREATION_DATE,
    ApInvDistAllEO.DESCRIPTION,
    ApInvDistAllEO.EXCHANGE_RATE_VARIANCE,
    ApInvDistAllEO.FINAL_MATCH_FLAG,
    ApInvDistAllEO.INCOME_TAX_REGION,
    ApInvDistAllEO.INVOICE_PRICE_VARIANCE,
    ApInvDistAllEO.LAST_UPDATE_LOGIN,
    ApInvDistAllEO.MATCH_STATUS_FLAG,
    ApInvDistAllEO.POSTED_FLAG,
    ApInvDistAllEO.PO_DISTRIBUTION_ID,
    ApInvDistAllEO.PROGRAM_APPLICATION_ID,
    ApInvDistAllEO.PROGRAM_ID,
    ApInvDistAllEO.PROGRAM_UPDATE_DATE,
    ApInvDistAllEO.QUANTITY_INVOICED,
    ApInvDistAllEO.RATE_VAR_CODE_COMBINATION_ID,
    ApInvDistAllEO.REQUEST_ID,
    ApInvDistAllEO.REVERSAL_FLAG,
    ApInvDistAllEO.TYPE_1099,
    ApInvDistAllEO.UNIT_PRICE,
    ApInvDistAllEO.AMOUNT_ENCUMBERED,
    ApInvDistAllEO.BASE_AMOUNT_ENCUMBERED,
    ApInvDistAllEO.ENCUMBERED_FLAG,
    ApInvDistAllEO.EXCHANGE_DATE,
    ApInvDistAllEO.EXCHANGE_RATE,
    ApInvDistAllEO.EXCHANGE_RATE_TYPE,
    ApInvDistAllEO.PRICE_ADJUSTMENT_FLAG,
    ApInvDistAllEO.PRICE_VAR_CODE_COMBINATION_ID,
    ApInvDistAllEO.QUANTITY_UNENCUMBERED,
    ApInvDistAllEO.STAT_AMOUNT,
    ApInvDistAllEO.AMOUNT_TO_POST,
    ApInvDistAllEO.ATTRIBUTE1,
    ApInvDistAllEO.ATTRIBUTE10,
    ApInvDistAllEO.ATTRIBUTE11,
    ApInvDistAllEO.ATTRIBUTE12,
    ApInvDistAllEO.ATTRIBUTE13,
    ApInvDistAllEO.ATTRIBUTE14,
    ApInvDistAllEO.ATTRIBUTE15,
    ApInvDistAllEO.ATTRIBUTE2,
    ApInvDistAllEO.ATTRIBUTE3,
    ApInvDistAllEO.ATTRIBUTE4,
    ApInvDistAllEO.ATTRIBUTE5,
    ApInvDistAllEO.ATTRIBUTE6,
    ApInvDistAllEO.ATTRIBUTE7,
    ApInvDistAllEO.ATTRIBUTE8,
    ApInvDistAllEO.ATTRIBUTE9,
    ApInvDistAllEO.ATTRIBUTE_CATEGORY,
    ApInvDistAllEO.BASE_AMOUNT_TO_POST,
    ApInvDistAllEO.CASH_JE_BATCH_ID,
    ApInvDistAllEO.EXPENDITURE_ITEM_DATE,
    ApInvDistAllEO.EXPENDITURE_ORGANIZATION_ID,
    ApInvDistAllEO.EXPENDITURE_TYPE,
    ApInvDistAllEO.JE_BATCH_ID,
    ApInvDistAllEO.PARENT_INVOICE_ID,
    ApInvDistAllEO.PA_ADDITION_FLAG,
    ApInvDistAllEO.PA_QUANTITY,
    ApInvDistAllEO.POSTED_AMOUNT,
    ApInvDistAllEO.POSTED_BASE_AMOUNT,
    ApInvDistAllEO.PREPAY_AMOUNT_REMAINING,
    ApInvDistAllEO.PROJECT_ACCOUNTING_CONTEXT,
    ApInvDistAllEO.PROJECT_ID,
    ApInvDistAllEO.TASK_ID,
    ApInvDistAllEO.USSGL_TRANSACTION_CODE,
    ApInvDistAllEO.USSGL_TRX_CODE_CONTEXT,
    ApInvDistAllEO.EARLIEST_SETTLEMENT_DATE,
    ApInvDistAllEO.REQ_DISTRIBUTION_ID,
    ApInvDistAllEO.QUANTITY_VARIANCE,
    ApInvDistAllEO.BASE_QUANTITY_VARIANCE,
    ApInvDistAllEO.PACKET_ID,
    ApInvDistAllEO.AWT_FLAG,
    ApInvDistAllEO.AWT_GROUP_ID,
    ApInvDistAllEO.AWT_TAX_RATE_ID,
    ApInvDistAllEO.AWT_GROSS_AMOUNT,
    ApInvDistAllEO.AWT_INVOICE_ID,
    ApInvDistAllEO.AWT_ORIGIN_GROUP_ID,
    ApInvDistAllEO.REFERENCE_1,
    ApInvDistAllEO.REFERENCE_2,
    ApInvDistAllEO.ORG_ID,
    ApInvDistAllEO.OTHER_INVOICE_ID,
    ApInvDistAllEO.AWT_INVOICE_PAYMENT_ID,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE_CATEGORY,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE1,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE2,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE3,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE4,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE5,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE6,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE7,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE8,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE9,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE10,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE11,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE12,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE13,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE14,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE15,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE16,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE17,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE18,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE19,
    ApInvDistAllEO.GLOBAL_ATTRIBUTE20,
    ApInvDistAllEO.LINE_GROUP_NUMBER,
    ApInvDistAllEO.RECEIPT_VERIFIED_FLAG,
    ApInvDistAllEO.RECEIPT_REQUIRED_FLAG,
    ApInvDistAllEO.RECEIPT_MISSING_FLAG,
    ApInvDistAllEO.JUSTIFICATION,
    ApInvDistAllEO.EXPENSE_GROUP,
    ApInvDistAllEO.START_EXPENSE_DATE,
    ApInvDistAllEO.END_EXPENSE_DATE,
    ApInvDistAllEO.RECEIPT_CURRENCY_CODE,
    ApInvDistAllEO.RECEIPT_CONVERSION_RATE,
    ApInvDistAllEO.RECEIPT_CURRENCY_AMOUNT,
    ApInvDistAllEO.DAILY_AMOUNT,
    ApInvDistAllEO.WEB_PARAMETER_ID,
    ApInvDistAllEO.ADJUSTMENT_REASON,
    ApInvDistAllEO.AWARD_ID,
    ApInvDistAllEO.MRC_ACCRUAL_POSTED_FLAG,
    ApInvDistAllEO.MRC_CASH_POSTED_FLAG,
    ApInvDistAllEO.MRC_DIST_CODE_COMBINATION_ID,
    ApInvDistAllEO.MRC_AMOUNT,
    ApInvDistAllEO.MRC_BASE_AMOUNT,
    ApInvDistAllEO.MRC_BASE_INV_PRICE_VARIANCE,
    ApInvDistAllEO.MRC_EXCHANGE_RATE_VARIANCE,
    ApInvDistAllEO.MRC_POSTED_FLAG,
    ApInvDistAllEO.MRC_PROGRAM_APPLICATION_ID,
    ApInvDistAllEO.MRC_PROGRAM_ID,
    ApInvDistAllEO.MRC_PROGRAM_UPDATE_DATE,
    ApInvDistAllEO.MRC_RATE_VAR_CCID,
    ApInvDistAllEO.MRC_REQUEST_ID,
    ApInvDistAllEO.MRC_EXCHANGE_DATE,
    ApInvDistAllEO.MRC_EXCHANGE_RATE,
    ApInvDistAllEO.MRC_EXCHANGE_RATE_TYPE,
    ApInvDistAllEO.MRC_AMOUNT_TO_POST,
    ApInvDistAllEO.MRC_BASE_AMOUNT_TO_POST,
    ApInvDistAllEO.MRC_CASH_JE_BATCH_ID,
    ApInvDistAllEO.MRC_JE_BATCH_ID,
    ApInvDistAllEO.MRC_POSTED_AMOUNT,
    ApInvDistAllEO.MRC_POSTED_BASE_AMOUNT,
    ApInvDistAllEO.MRC_RECEIPT_CONVERSION_RATE,
    ApInvDistAllEO.CREDIT_CARD_TRX_ID,
    ApInvDistAllEO.DIST_MATCH_TYPE,
    ApInvDistAllEO.RCV_TRANSACTION_ID,
    ApInvDistAllEO.INVOICE_DISTRIBUTION_ID,
    ApInvDistAllEO.PARENT_REVERSAL_ID,
    ApInvDistAllEO.TAX_RECOVERABLE_FLAG,
    ApInvDistAllEO.PA_CC_AR_INVOICE_ID,
    ApInvDistAllEO.PA_CC_AR_INVOICE_LINE_NUM,
    ApInvDistAllEO.PA_CC_PROCESSED_CODE,
    ApInvDistAllEO.MERCHANT_DOCUMENT_NUMBER,
    ApInvDistAllEO.MERCHANT_NAME,
    ApInvDistAllEO.MERCHANT_REFERENCE,
    ApInvDistAllEO.MERCHANT_TAX_REG_NUMBER,
    ApInvDistAllEO.MERCHANT_TAXPAYER_ID,
    ApInvDistAllEO.COUNTRY_OF_SUPPLY,
    ApInvDistAllEO.MATCHED_UOM_LOOKUP_CODE,
    ApInvDistAllEO.GMS_BURDENABLE_RAW_COST,
    ApInvDistAllEO.ACCOUNTING_EVENT_ID,
    ApInvDistAllEO.PREPAY_DISTRIBUTION_ID,
    ApInvDistAllEO.UPGRADE_POSTED_AMT,
    ApInvDistAllEO.UPGRADE_BASE_POSTED_AMT,
    ApInvDistAllEO.INVENTORY_TRANSFER_STATUS,
    ApInvDistAllEO.COMPANY_PREPAID_INVOICE_ID,
    ApInvDistAllEO.CC_REVERSAL_FLAG,
    ApInvDistAllEO.AWT_WITHHELD_AMT,
    ApInvDistAllEO.INVOICE_INCLUDES_PREPAY_FLAG,
    ApInvDistAllEO.PRICE_CORRECT_INV_ID,
    ApInvDistAllEO.PRICE_CORRECT_QTY,
    ApInvDistAllEO.PA_CMT_XFACE_FLAG,
    ApInvDistAllEO.CANCELLATION_FLAG,
    ApInvDistAllEO.INVOICE_LINE_NUMBER,
    ApInvDistAllEO.CORRECTED_INVOICE_DIST_ID,
    ApInvDistAllEO.ROUNDING_AMT,
    ApInvDistAllEO.CHARGE_APPLICABLE_TO_DIST_ID,
    ApInvDistAllEO.CORRECTED_QUANTITY,
    ApInvDistAllEO.RELATED_ID,
    ApInvDistAllEO.ASSET_BOOK_TYPE_CODE,
    ApInvDistAllEO.ASSET_CATEGORY_ID,
    ApInvDistAllEO.DISTRIBUTION_CLASS,
    ApInvDistAllEO.FINAL_PAYMENT_ROUNDING,
    ApInvDistAllEO.FINAL_APPLICATION_ROUNDING,
    ApInvDistAllEO.AMOUNT_AT_PREPAY_XRATE,
    ApInvDistAllEO.CASH_BASIS_FINAL_APP_ROUNDING,
    ApInvDistAllEO.AMOUNT_AT_PREPAY_PAY_XRATE,
    ApInvDistAllEO.INTENDED_USE,
    ApInvDistAllEO.DETAIL_TAX_DIST_ID,
    ApInvDistAllEO.REC_NREC_RATE,
    ApInvDistAllEO.RECOVERY_RATE_ID,
    ApInvDistAllEO.RECOVERY_RATE_NAME,
    ApInvDistAllEO.RECOVERY_TYPE_CODE,
    ApInvDistAllEO.RECOVERY_RATE_CODE,
    ApInvDistAllEO.WITHHOLDING_TAX_CODE_ID,
    ApInvDistAllEO.TAX_ALREADY_DISTRIBUTED_FLAG,
    ApInvDistAllEO.SUMMARY_TAX_LINE_ID,
    ApInvDistAllEO.TAXABLE_AMOUNT,
    ApInvDistAllEO.TAXABLE_BASE_AMOUNT,
    ApInvDistAllEO.EXTRA_PO_ERV,
    ApInvDistAllEO.PREPAY_TAX_DIFF_AMOUNT,
    ApInvDistAllEO.TAX_CODE_ID,
    ApInvDistAllEO.VAT_CODE,
    ApInvDistAllEO.AMOUNT_INCLUDES_TAX_FLAG,
    ApInvDistAllEO.TAX_CALCULATED_FLAG,
    ApInvDistAllEO.TAX_RECOVERY_RATE,
    ApInvDistAllEO.TAX_RECOVERY_OVERRIDE_FLAG,
    ApInvDistAllEO.TAX_CODE_OVERRIDE_FLAG,
    ApInvDistAllEO.TOTAL_DIST_AMOUNT,
    ApInvDistAllEO.TOTAL_DIST_BASE_AMOUNT,
    ApInvDistAllEO.PREPAY_TAX_PARENT_ID,
    ApInvDistAllEO.CANCELLED_FLAG,
    ApInvDistAllEO.OLD_DISTRIBUTION_ID,
    ApInvDistAllEO.OLD_DIST_LINE_NUMBER,
    ApInvDistAllEO.AMOUNT_VARIANCE,
    ApInvDistAllEO.BASE_AMOUNT_VARIANCE,
    ApInvDistAllEO.HISTORICAL_FLAG,
    ApInvDistAllEO.RCV_CHARGE_ADDITION_FLAG,
    ApInvDistAllEO.AWT_RELATED_ID,
    ApInvDistAllEO.RELATED_RETAINAGE_DIST_ID,
    ApInvDistAllEO.RETAINED_AMOUNT_REMAINING,
    ApInvDistAllEO.BC_EVENT_ID,
    ApInvDistAllEO.RETAINED_INVOICE_DIST_ID,
    ApInvDistAllEO.FINAL_RELEASE_ROUNDING,
    ApInvDistAllEO.FULLY_PAID_ACCTD_FLAG,
    ApInvDistAllEO.ROOT_DISTRIBUTION_ID,
    ApInvDistAllEO.XINV_PARENT_REVERSAL_ID,
    ApInvDistAllEO.RECURRING_PAYMENT_ID,
    ApInvDistAllEO.RELEASE_INV_DIST_DERIVED_FROM,
    gl_flexfields_pkg.get_concat_description
         (f.id_flex_num,
         ApInvDistAllEO.dist_code_combination_id)          segments,
    (SELECT segment1
    FROM pa_projects_all ppa
    WHERE ppa.project_id = apinvdistalleo.project_id) project_number,
    (SELECT pt.task_number
    FROM pa_tasks pt
    WHERE pt.task_id = apinvdistalleo.task_id) task_number,
    (SELECT NAME
    FROM hr_all_organization_units hou
    WHERE hou.organization_id =
    apinvdistalleo.expenditure_organization_id)
    expd_org_name
    FROM AP_INVOICE_DISTRIBUTIONS_ALL ApInvDistAllEO,
         fnd_id_flex_structures_vl f,
         ap_invoices_all i,
         gl_sets_of_books sob
    where      ApInvDistAllEO.invoice_id = i.invoice_id
    and     sob.set_of_books_id = i.set_of_books_id
    and     f.id_flex_num = sob.chart_of_accounts_id
    and     f.id_flex_code = 'GL#'
    and     f.application_id = 101) QRSLT WHERE (:1 = INVOICE_ID) AND (:2 = INVOICE_LINE_NUMBER)
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2537)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1889)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:533)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:421)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:322)
         at OA.jspService(_OA.java:221)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    ## Detail 0 ##
    java.sql.SQLException: Attempt to set a parameter name that does not occur in the SQL: Bind_InvoiceId
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
         at oracle.jdbc.driver.OraclePreparedStatement.setObjectAtName(OraclePreparedStatement.java:9566)
         at oracle.jbo.server.OracleSQLBuilderImpl.bindParamValue(OracleSQLBuilderImpl.java:3916)
         at oracle.jbo.server.BaseSQLBuilderImpl.bindParametersForStmt(BaseSQLBuilderImpl.java:3335)
         at oracle.jbo.server.ViewObjectImpl.bindParametersForCollection(ViewObjectImpl.java:13759)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:801)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:666)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3655)
         at oracle.jbo.server.OAJboViewObjectImpl.executeQueryForCollection(Unknown Source)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.executeQueryForCollection(OAViewObjectImpl.java:4537)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:742)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:687)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2657)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2634)
         at oracle.jbo.server.ViewRowSetIteratorImpl.getRowCountInRange(ViewRowSetIteratorImpl.java:699)
         at oracle.jbo.server.ViewRowSetImpl.getRowCountInRange(ViewRowSetImpl.java:3194)
         at oracle.jbo.server.ViewObjectImpl.getRowCountInRange(ViewObjectImpl.java:6959)
         at oracle.apps.fnd.framework.server.OAViewObjectImpl.getRowCountInRange(OAViewObjectImpl.java:1958)
         at oracle.apps.fnd.framework.webui.OAWebBeanBaseTableHelper.adjustViewRange(OAWebBeanBaseTableHelper.java:214)
         at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.prepareNavigatorProperties(OAAdvancedTableHelper.java:895)
         at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.processRequestAfterController(OAAdvancedTableHelper.java:623)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:654)
         at oracle.apps.fnd.framework.webui.OAWebBeanTableHelper.processRequest(OAWebBeanTableHelper.java:2136)
         at oracle.apps.fnd.framework.webui.OAAdvancedTableHelper.processRequest(OAAdvancedTableHelper.java:570)
         at oracle.apps.fnd.framework.webui.beans.table.OAAdvancedTableBean.processRequest(OAAdvancedTableBean.java:734)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.OAWebBeanHideShowHelper.processRequest(OAWebBeanHideShowHelper.java:104)
         at oracle.apps.fnd.framework.webui.OADefaultHideShowHelper.processRequest(OADefaultHideShowHelper.java:126)
         at oracle.apps.fnd.framework.webui.beans.layout.OADefaultHideShowBean.processRequest(OADefaultHideShowBean.java:488)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean.processRequest(OAHeaderBean.java:389)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1166)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:964)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:931)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:655)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:251)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2491)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1889)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:533)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:421)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:270)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:42)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:204)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:209)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:322)
         at OA.jspService(_OA.java:221)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:335)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Thanks
    Praveen

Maybe you are looking for

  • Customer PO at item level needs to be populated to existing Z report

    Hi All, Just would like your confirmation on the below requirement. Requirement: Already there is existing Z open sales orders report is availble for which we need to add the below mentioned line item PO into the output of the report.Business manuall

  • Custom delta extractor: All data deleted in source table in R/3

    Hi everyone, I have made a custom delta extractor from R/3 to a BW system. The setup is the following: The source table in R/3 holds a timestamp, which is used for the delta. The data is afterwards loaded to a DSO in the BW system. The extractor work

  • Nothing is working after ios6 update...help!

    I have updated my iphone 4s to the IOS6 and now i cant get on itunes,app store, safari, twitter, or facebook. I have also lost 2 bars on my service. I dont know what the **** happened. I have tried doing a hard reset and the recently known date/time

  • Large number of http posts navigating between forms

    Hi, i'm not really a forms person (well not since v3/4 running character mode on a mainframe!), so please be patient if I'm not providing the most useful information. An oracle forms 10 system that I have fallen into supporting has to me very poor pe

  • Hanging Disconnect on Internet Connect

    Even after forcing a quit quits the programme (and cannot be reused until a reboot). Bob Gold made some helpful suggestions regarding the .plist some months ago, alas, it has now returned on all my computers and I have found a solution that works on