oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT AbsAdjHeaderEO.SUBMISSION_ID, AbsAdjHeaderEO.MGR_ASSGN_ID, AbsAdjHeaderEO.MGR_POS_ID, AbsAdjHeaderEO.EMP_ID, AbsAdjHeaderEO.EMP_ASSGN_ID, AbsAdjHeaderEO.CUR_ABS_START_DATE, AbsAdjHeaderEO.CUR_ABS_END_DATE, AbsAdjHeaderEO.CUR_ABS_ATTD_ID, AbsAdjHeaderEO.CUR_ABS_TYPE_ID, AbsAdjHeaderEO.CUR_ABS_DURATION, AbsAdjHeaderEO.REASON_FOR_CHANGE, AbsAdjHeaderEO.STATUS, AbsAdjHeaderEO.CREATED_BY, AbsAdjHeaderEO.CREATION_DATE, AbsAdjHeaderEO.LAST_UPDATED_BY, AbsAdjHeaderEO.LAST_UPDATED_DATE, paa.date_start, paa.date_end, paa.absence_days, paat.name, paat.absence_attendance_type_id, paa.absence_attendance_id abs_attd_id, decode((nvl(to_char(AbsAdjHeaderEO.CUR_ABS_START_DATE,'DD-MON-YYYY'),to_char(paa.DATE_START,'DD-MON-YYYY'))||nvl(to_char(AbsAdjHeaderEO.CUR_ABS_END_DATE,'DD-MON-YYYY'),to_char(paa.DATE_END,'DD-MON-YYYY')) ||nvl(AbsAdjHeaderEO.CUR_ABS_DURATION,paa.ABSENCE_DAYS)||nvl(AbsAdjHeaderEO.CUR_ABS_TYPE_ID,paa.ABSENCE_ATTENDANCE_TYPE_ID)),(to_char(paa.DATE_START,'DD-MON-YYYY')||to_char(paa.DATE_END,'DD-MON-YYYY') ||paa.ABSENCE_DAYS||paa.ABSENCE_ATTENDANCE_TYPE_ID),AbsAdjHeaderEO.status,'Actioned') Disp_Status, decode((nvl(to_char(AbsAdjHeaderEO.CUR_ABS_START_DATE,'DD-MON-YYYY'),to_char(paa.DATE_START,'DD-MON-YYYY'))||nvl(to_char(AbsAdjHeaderEO.CUR_ABS_END_DATE,'DD-MON-YYYY'),to_char(paa.DATE_END,'DD-MON-YYYY')) ||nvl(AbsAdjHeaderEO.CUR_ABS_DURATION,paa.ABSENCE_DAYS)||nvl(AbsAdjHeaderEO.CUR_ABS_TYPE_ID,paa.ABSENCE_ATTENDANCE_TYPE_ID)),(to_char(paa.DATE_START,'DD-MON-YYYY')||to_char(paa.DATE_END,'DD-MON-YYYY') ||paa.ABSENCE_DAYS||paa.ABSENCE_ATTENDANCE_TYPE_ID),decode( AbsAdjHeaderEO.status,'Awaiting Manager Approval',decode(fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_TO'),'Y',1,0),'Submitted',decode(fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_TO'),'Y',1,0), 0),1) Disable_Reason_Flag, 1 Disable_Adj_Cha_Reason FROM NRHR.XXNR_ABS_ADJ_HEADER AbsAdjHeaderEO, PER_ABSENCE_ATTENDANCES paa, PER_ABSENCE_ATTENDANCE_TYPES paat WHERE paa.absence_attendance_type_id=paat.absence_attendance_type_id and AbsAdjHeaderEO.CUR_ABS_ATTD_ID(+) = paa.absence_attendance_id and ((paa.person_id=:1 and paa.date_start between :2 and nvl(:3,sysdate) and paa.date_end between :4 and nvl(:5,sysdate) and paa.ABSENCE_ATTENDANCE_TYPE_ID=nvl(:6,paa.ABSENCE_ATTENDANCE_TYPE_ID)) or paa.absence_attendance_id=:7) and nvl(paa.date_end,to_date('31-DEC-4712','DD-MON-YYYY'))< SYSDATE and ( (fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_TO') ='Y' and nvl(AbsAdjHeaderEO.status,'Dummy') <>'Deleted by TO') or fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_MANAGER')='Y' ) union SELECT AbsAdjHeaderEO.SUBMISSION_ID, AbsAdjHeaderEO.MGR_ASSGN_ID, AbsAdjHeaderEO.MGR_POS_ID, AbsAdjHeaderEO.EMP_ID, AbsAdjHeaderEO.EMP_ASSGN_ID, AbsAdjHeaderEO.CUR_ABS_START_DATE, AbsAdjHeaderEO.CUR_ABS_END_DATE, AbsAdjHeaderEO.CUR_ABS_ATTD_ID, AbsAdjHeaderEO.CUR_ABS_TYPE_ID, AbsAdjHeaderEO.CUR_ABS_DURATION, AbsAdjHeaderEO.REASON_FOR_CHANGE, AbsAdjHeaderEO.STATUS, AbsAdjHeaderEO.CREATED_BY, AbsAdjHeaderEO.CREATION_DATE, AbsAdjHeaderEO.LAST_UPDATED_BY, AbsAdjHeaderEO.LAST_UPDATED_DATE, AbsAdjHeaderEO.CUR_ABS_START_DATE date_start, AbsAdjHeaderEO.CUR_ABS_END_DATE date_end, AbsAdjHeaderEO.CUR_ABS_DURATION absence_days, paat.name name, null absence_attendance_type_id, null abs_attd_id, 'Actioned' Disp_Status, 1 Disable_Reason_Flag, 1 Disable_Adj_Cha_Reason FROM NRHR.XXNR_ABS_ADJ_HEADER AbsAdjHeaderEO, PER_ABSENCE_ATTENDANCE_TYPES paat WHERE AbsAdjHeaderEO.CUR_ABS_TYPE_ID=paat.absence_attendance_type_id and ((AbsAdjHeaderEO.EMP_ID=:1 and AbsAdjHeaderEO.CUR_ABS_START_DATE between :2 and nvl(:3,sysdate) and AbsAdjHeaderEO.CUR_ABS_END_DATE between :4 and nvl(:5,sysdate) and AbsAdjHeaderEO.CUR_ABS_TYPE_ID=nvl(:6,AbsAdjHeaderEO.CUR_ABS_TYPE_ID)) or AbsAdjHeaderEO.CUR_ABS_ATTD_ID=:7) and nvl(AbsAdjHeaderEO.CUR_ABS_END_DATE,to_date('31-DEC-4712','DD-MON-YYYY'))< SYSDATE and ( (fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_TO') ='Y' and nvl(AbsAdjHeaderEO.status,'Dummy') <>'Deleted by TO') or fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_MANAGER')='Y' ) and not exists (select 1 from PER_ABSENCE_ATTENDANCES where absence_attendance_id=AbsAdjHeaderEO.CUR_ABS_ATTD_ID)) QRSLT ORDER BY CUR_ABS_START_DATE,CUR_ABS_END_DATE

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • EO Substitution
    via by 542163,
  • Help deleting VO substitution
    via by User285476,
    • oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT AbsAdjHeaderEO.SUBMISSION_ID, AbsAdjHeaderEO.MGR_ASSGN_ID, AbsAdjHeaderEO.MGR_POS_ID, AbsAdjHeaderEO.EMP_ID, AbsAdjHeaderEO.EMP_ASSGN_ID, AbsAdjHeaderEO.CUR_ABS_START_DATE, AbsAdjHeaderEO.CUR_ABS_END_DATE, AbsAdjHeaderEO.CUR_ABS_ATTD_ID, AbsAdjHeaderEO.CUR_ABS_TYPE_ID, AbsAdjHeaderEO.CUR_ABS_DURATION, AbsAdjHeaderEO.REASON_FOR_CHANGE, AbsAdjHeaderEO.STATUS, AbsAdjHeaderEO.CREATED_BY, AbsAdjHeaderEO.CREATION_DATE, AbsAdjHeaderEO.LAST_UPDATED_BY, AbsAdjHeaderEO.LAST_UPDATED_DATE, paa.date_start, paa.date_end, paa.absence_days, paat.name, paat.absence_attendance_type_id, paa.absence_attendance_id abs_attd_id, decode((nvl(to_char(AbsAdjHeaderEO.CUR_ABS_START_DATE,'DD-MON-YYYY'),to_char(paa.DATE_START,'DD-MON-YYYY'))||nvl(to_char(AbsAdjHeaderEO.CUR_ABS_END_DATE,'DD-MON-YYYY'),to_char(paa.DATE_END,'DD-MON-YYYY')) ||nvl(AbsAdjHeaderEO.CUR_ABS_DURATION,paa.ABSENCE_DAYS)||nvl(AbsAdjHeaderEO.CUR_ABS_TYPE_ID,paa.ABSENCE_ATTENDANCE_TYPE_ID)),(to_char(paa.DATE_START,'DD-MON-YYYY')||to_char(paa.DATE_END,'DD-MON-YYYY') ||paa.ABSENCE_DAYS||paa.ABSENCE_ATTENDANCE_TYPE_ID),AbsAdjHeaderEO.status,'Actioned') Disp_Status, decode((nvl(to_char(AbsAdjHeaderEO.CUR_ABS_START_DATE,'DD-MON-YYYY'),to_char(paa.DATE_START,'DD-MON-YYYY'))||nvl(to_char(AbsAdjHeaderEO.CUR_ABS_END_DATE,'DD-MON-YYYY'),to_char(paa.DATE_END,'DD-MON-YYYY')) ||nvl(AbsAdjHeaderEO.CUR_ABS_DURATION,paa.ABSENCE_DAYS)||nvl(AbsAdjHeaderEO.CUR_ABS_TYPE_ID,paa.ABSENCE_ATTENDANCE_TYPE_ID)),(to_char(paa.DATE_START,'DD-MON-YYYY')||to_char(paa.DATE_END,'DD-MON-YYYY') ||paa.ABSENCE_DAYS||paa.ABSENCE_ATTENDANCE_TYPE_ID),decode( AbsAdjHeaderEO.status,'Awaiting Manager Approval',decode(fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_TO'),'Y',1,0),'Submitted',decode(fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_TO'),'Y',1,0), 0),1) Disable_Reason_Flag, 1 Disable_Adj_Cha_Reason FROM NRHR.XXNR_ABS_ADJ_HEADER AbsAdjHeaderEO, PER_ABSENCE_ATTENDANCES paa, PER_ABSENCE_ATTENDANCE_TYPES paat WHERE paa.absence_attendance_type_id=paat.absence_attendance_type_id and AbsAdjHeaderEO.CUR_ABS_ATTD_ID(+) = paa.absence_attendance_id and ((paa.person_id=:1 and paa.date_start between :2 and nvl(:3,sysdate) and paa.date_end between :4 and nvl(:5,sysdate) and paa.ABSENCE_ATTENDANCE_TYPE_ID=nvl(:6,paa.ABSENCE_ATTENDANCE_TYPE_ID)) or paa.absence_attendance_id=:7) and nvl(paa.date_end,to_date('31-DEC-4712','DD-MON-YYYY'))< SYSDATE and ( (fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_TO') ='Y' and nvl(AbsAdjHeaderEO.status,'Dummy') <>'Deleted by TO') or fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_MANAGER')='Y' ) union SELECT AbsAdjHeaderEO.SUBMISSION_ID, AbsAdjHeaderEO.MGR_ASSGN_ID, AbsAdjHeaderEO.MGR_POS_ID, AbsAdjHeaderEO.EMP_ID, AbsAdjHeaderEO.EMP_ASSGN_ID, AbsAdjHeaderEO.CUR_ABS_START_DATE, AbsAdjHeaderEO.CUR_ABS_END_DATE, AbsAdjHeaderEO.CUR_ABS_ATTD_ID, AbsAdjHeaderEO.CUR_ABS_TYPE_ID, AbsAdjHeaderEO.CUR_ABS_DURATION, AbsAdjHeaderEO.REASON_FOR_CHANGE, AbsAdjHeaderEO.STATUS, AbsAdjHeaderEO.CREATED_BY, AbsAdjHeaderEO.CREATION_DATE, AbsAdjHeaderEO.LAST_UPDATED_BY, AbsAdjHeaderEO.LAST_UPDATED_DATE, AbsAdjHeaderEO.CUR_ABS_START_DATE date_start, AbsAdjHeaderEO.CUR_ABS_END_DATE date_end, AbsAdjHeaderEO.CUR_ABS_DURATION absence_days, paat.name name, null absence_attendance_type_id, null abs_attd_id, 'Actioned' Disp_Status, 1 Disable_Reason_Flag, 1 Disable_Adj_Cha_Reason FROM NRHR.XXNR_ABS_ADJ_HEADER AbsAdjHeaderEO, PER_ABSENCE_ATTENDANCE_TYPES paat WHERE AbsAdjHeaderEO.CUR_ABS_TYPE_ID=paat.absence_attendance_type_id and ((AbsAdjHeaderEO.EMP_ID=:1 and AbsAdjHeaderEO.CUR_ABS_START_DATE between :2 and nvl(:3,sysdate) and AbsAdjHeaderEO.CUR_ABS_END_DATE between :4 and nvl(:5,sysdate) and AbsAdjHeaderEO.CUR_ABS_TYPE_ID=nvl(:6,AbsAdjHeaderEO.CUR_ABS_TYPE_ID)) or AbsAdjHeaderEO.CUR_ABS_ATTD_ID=:7) and nvl(AbsAdjHeaderEO.CUR_ABS_END_DATE,to_date('31-DEC-4712','DD-MON-YYYY'))< SYSDATE and ( (fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_TO') ='Y' and nvl(AbsAdjHeaderEO.status,'Dummy') <>'Deleted by TO') or fnd_profile.value('XXNR_USE_ABSENCE_MANAGEMENT_MANAGER')='Y' ) and not exists (select 1 from PER_ABSENCE_ATTENDANCES where absence_attendance_id=AbsAdjHeaderEO.CUR_ABS_ATTD_ID)) QRSLT ORDER BY CUR_ABS_START_DATE,CUR_ABS_END_DATE at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912) at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:886) at oracle.apps.fnd.framework.OAException.wrapperInvocationTargetException(OAException.java:1009) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:211) at oracle.apps.fnd.framework.server.OAUtility.invokeMethod(OAUtility.java:153) at oracle.apps.fnd.framework.server.OAViewObjectImpl.invokeMethod(OAViewObjectImpl.java:1136) at networkrail.oracle.apps.absadj.webui.AbsAdjustmentsCO.processFormRequest(AbsAdjustmentsCO.java:257) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:819) 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:1031) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852) 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:1031) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequestChildren(OAWebBeanHelper.java:997) at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processFormRequest(OAWebBeanHelper.java:852) 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:2974) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1875) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    9 more bugmates