oracle.apps.fnd.framework.OAException

oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT /*+ FIRST_ROWS */ NULL AS SelectFlag, PPF.FULL_NAME AS PERSON_NAME, ADDR.DERIVED_LOCALE, ADDR.ADDRESS_ID, PHN.PHONE_NUMBER, PHN.PHONE_ID, PPF.DATE_OF_BIRTH, PPF.EMAIL_ADDRESS, ADDR.ADDRESS_LINE1, to_number( decode ( :1 , 1, IRC_SKILLS_MATCHING_PKG.vacancy_match_percent( ppf.person_id, :2 , :3 ), 2, IRC_SKILLS_MATCHING_PKG.skills_match_percent( :4 , :5 , :6 , :7 , :8 , :9 , ppf.person_id),-1) ) AS Match_Percent, decode(irc_utilities_pkg.is_open_party(PPF.PARTY_ID,:10),'TRUE',(select count(*) from PER_ALL_ASSIGNMENTS_F PAF2 , PER_ALL_PEOPLE_F PPF2 where PPF.PARTY_ID = PPF2.PARTY_ID and :11 between PPF2.EFFECTIVE_START_DATE and PPF2.EFFECTIVE_END_DATE and PAF2.ASSIGNMENT_TYPE = 'A' and :12 between PAF2.effective_start_date and PAF2.effective_end_date and PAF2.person_id = PPF2.person_id having count(*)>0),null) AS Jobs_Applied_For, decode(irc_utilities_pkg.is_open_party(PPF.PARTY_ID,:13),'TRUE',(select MAX(PAF.effective_start_date) from PER_ALL_ASSIGNMENTS_F PAF, PER_ALL_PEOPLE_F PPF2 where PPF.PARTY_ID = PPF2.PARTY_ID AND :14 between PPF2.EFFECTIVE_START_DATE AND PPF2.EFFECTIVE_END_DATE AND PAF.ASSIGNMENT_TYPE = 'A' and :15 >= PAF.effective_start_date AND PAF.person_id = PPF2.person_id),null) AS Last_Application, VCN.CONSIDERATION_STATUS, VCN.PERSON_ID AS CONSIDERATION_PERSON_ID, VCN.VACANCY_ID AS CONSIDERATION_VACANCY_ID, to_number(:16) AS VACANCY_ID, (select meaning from HR_LOOKUPS LKP where LKP.LOOKUP_TYPE = 'IRC_CONSIDERATION' AND LKP.LOOKUP_CODE = VCN.consideration_status) AS CONSIDERATION, VCN.CONSIDERATION_STATUS AS CONSIDERATION_STATUS_DISPLAY, PPF.FIRST_NAME AS PERSON_FIRST_NAME, PPF.LAST_NAME AS PERSON_LAST_NAME, DOC.DOCUMENT_ID, DOC.FILE_NAME, NVL2( DOC.DOCUMENT_ID,'Y','N') AS PreviewEnabled, VCN.VACANCY_CONSIDERATION_ID, INP.NOTIFICATION_PREFERENCE_ID, PPF.PERSON_ID, PPF.EFFECTIVE_START_DATE, PPF.EFFECTIVE_END_DATE, PPF.ATTRIBUTE1 AS PPFATTRIBUTE1, PPF.ATTRIBUTE2 AS PPFATTRIBUTE2, PPF.ATTRIBUTE3 AS PPFATTRIBUTE3, PPF.ATTRIBUTE4 AS PPFATTRIBUTE4, PPF.ATTRIBUTE5 AS PPFATTRIBUTE5, PPF.ATTRIBUTE6 AS PPFATTRIBUTE6, PPF.ATTRIBUTE7 AS PPFATTRIBUTE7, PPF.ATTRIBUTE8 AS PPFATTRIBUTE8, PPF.ATTRIBUTE9 AS PPFATTRIBUTE9, PPF.ATTRIBUTE10 AS PPFATTRIBUTE10, PPF.ATTRIBUTE11 AS PPFATTRIBUTE11, PPF.ATTRIBUTE12 AS PPFATTRIBUTE12, PPF.ATTRIBUTE13 AS PPFATTRIBUTE13, PPF.ATTRIBUTE14 AS PPFATTRIBUTE14, PPF.ATTRIBUTE15 AS PPFATTRIBUTE15, PPF.ATTRIBUTE16 AS PPFATTRIBUTE16, PPF.ATTRIBUTE17 AS PPFATTRIBUTE17, PPF.ATTRIBUTE18 AS PPFATTRIBUTE18, PPF.ATTRIBUTE19 AS PPFATTRIBUTE19, PPF.ATTRIBUTE20 AS PPFATTRIBUTE20, PPF.ATTRIBUTE21 AS PPFATTRIBUTE21, PPF.ATTRIBUTE22 AS PPFATTRIBUTE22, PPF.ATTRIBUTE23 AS PPFATTRIBUTE23, PPF.ATTRIBUTE24 AS PPFATTRIBUTE24, PPF.ATTRIBUTE25 AS PPFATTRIBUTE25, PPF.ATTRIBUTE26 AS PPFATTRIBUTE26, PPF.ATTRIBUTE27 AS PPFATTRIBUTE27, PPF.ATTRIBUTE28 AS PPFATTRIBUTE28, PPF.ATTRIBUTE29 AS PPFATTRIBUTE29, PPF.ATTRIBUTE30 AS PPFATTRIBUTE30, PPF.ATTRIBUTE_CATEGORY AS PPFATTRIBUTE_CATEGORY, VCN.PERSON_ID AS PERSON_ID1, CSC.SEARCH_CRITERIA_ID, CSC.LOCATION, CSC.DISTANCE_TO_LOCATION, CSC.EMPLOYEE, CSC.CONTRACTOR, CSC.EMPLOYMENT_CATEGORY, CSC.KEYWORDS, CSC.TRAVEL_PERCENTAGE, CSC.MIN_SALARY, CSC.SALARY_CURRENCY, CSC.SALARY_PERIOD, CSC.MATCH_COMPETENCE, CSC.MATCH_QUALIFICATION, CSC.JOB_TITLE, CSC.DEPARTMENT, CSC.PROFESSIONAL_AREA, CSC.WORK_AT_HOME, CSC.ATTRIBUTE_CATEGORY, CSC.ATTRIBUTE1, CSC.ATTRIBUTE2, CSC.ATTRIBUTE3, CSC.ATTRIBUTE4, CSC.ATTRIBUTE5, CSC.ATTRIBUTE6, CSC.ATTRIBUTE7, CSC.ATTRIBUTE8, CSC.ATTRIBUTE9, CSC.ATTRIBUTE10, CSC.ATTRIBUTE11, CSC.ATTRIBUTE12, CSC.ATTRIBUTE13, CSC.ATTRIBUTE14, CSC.ATTRIBUTE15, CSC.ATTRIBUTE16, CSC.ATTRIBUTE17, CSC.ATTRIBUTE18, CSC.ATTRIBUTE19, CSC.ATTRIBUTE20, CSC.ATTRIBUTE21, CSC.ATTRIBUTE22, CSC.ATTRIBUTE23, CSC.ATTRIBUTE24, CSC.ATTRIBUTE25, CSC.ATTRIBUTE26, CSC.ATTRIBUTE27, CSC.ATTRIBUTE28, CSC.ATTRIBUTE29, CSC.ATTRIBUTE30, to_char(RowNum) AS RowNumber, PPF.PARTY_ID, POV.VENDOR_ID, POV.VENDOR_NAME, INP.CREATION_DATE, to_char(decode(:17,'Y',nvl2(ADDR.geometry,floor(irc_location_utility.sdo_miles(mdsys.sdo_geometry(2001,8307,mdsys.sdo_point_type(:18,:19,null),null,null),ADDR.geometry,0.01)),''),'')) AS DISTANCE_TO_LOCATION_RESULTS, fnd_number.canonical_to_number(distance_to_location) AS DISTANCE_TO_LOCATION_INT, nvl2(ATMPT.MASTERY_SCORE,decode(greatest(ATMPT.MASTERY_SCORE,ATMPT.RAW_SCORE), ATMPT.RAW_SCORE, 'P', 'F'),nvl2(FND_PROFILE.VALUE('IRC_REGISTER_TEST'),nvl2(INP.ATTEMPT_ID, 'A','N'),null)) AS ATTEMPT_STATUS, to_number(decode(ATMPT.RAW_SCORE, -1000, null, ATMPT.RAW_SCORE)) AS ATTEMPT_SCORE, ATMPT.ATTEMPT_ID, decode(IrcReferralInfoEO.source_type,'ER','Y','N') AS Referred, IrcReferralInfoEO.START_DATE, IrcReferralInfoEO.OBJECT_ID, IrcReferralInfoEO.OBJECT_TYPE, IrcReferralInfoEO.END_DATE, (select meaning from hr_lookups where lookup_code = IRCREFERRALINFOEO.source_type and lookup_type = 'REC_TYPE') AS SourceType, decode (IrcReferralInfoEO.source_type, 'ER',(select distinct(full_name) from per_all_people_f where person_id = IrcReferralInfoEO.source_person_id), IrcReferralInfoEO.source_name ) AS SourceName FROM PER_ADDRESSES ADDR, PER_PHONES PHN, IRC_VACANCY_CONSIDERATIONS VCN, IRC_NOTIFICATION_PREFERENCES INP, IRC_DOCUMENTS DOC, PER_ALL_PEOPLE_F PPF, IRC_SEARCH_CRITERIA CSC, PO_VENDORS POV, OTA_ATTEMPTS ATMPT, IRC_REFERRAL_INFO IrcReferralInfoEO WHERE :20 BETWEEN PPF.EFFECTIVE_START_DATE AND PPF.EFFECTIVE_END_DATE AND PPF.PERSON_ID = DOC.PERSON_ID(+) AND PPF.PERSON_ID = PHN.PARENT_ID(+) AND PHN.PARENT_TABLE(+) = 'PER_ALL_PEOPLE_F' AND PHN.phone_type(+) = 'H1' AND :21 between nvl(PHN.date_from,:22) and NVL(PHN.date_to,:23) AND PPF.PERSON_ID = VCN.PERSON_ID(+) AND VCN.VACANCY_ID(+) = :24 AND nvl(VCN.consideration_status,'X') <> 'NO' and PPF.PERSON_ID = INP.PERSON_ID AND INP.PERSON_ID = ADDR.PERSON_ID(+) AND NVL(INP.ADDRESS_ID, DECODE(ADDR.ADDRESS_TYPE(+),'REC',ADDR.ADDRESS_ID(+),-1)) = addr.ADDRESS_ID(+) AND :25 between ADDR.DATE_FROM(+) and nvl(ADDR.DATE_TO(+),:26) AND doc.type(+) like '%RESUME' AND doc.end_date(+) is null AND CSC.object_id = PPF.PERSON_ID AND CSC.object_type= 'WPREF' AND EXISTS (SELECT NULL FROM PER_PEOPLE_F PPFS WHERE PPFS.PERSON_ID = PPF.PERSON_ID) and ((INP.AGENCY_ID = FND_PROFILE.VALUE('IRC_AGENCY_NAME')) or (FND_PROFILE.VALUE('IRC_AGENCY_NAME') is null and INP.ALLOW_ACCESS='Y')) and INP.AGENCY_ID = POV.VENDOR_ID(+) and INP.ATTEMPT_ID = ATMPT.ATTEMPT_ID(+) and ppf.party_id = IrcReferralInfoEO.object_id(+) and sysdate between IrcReferralInfoEO.start_date(+) and IrcReferralInfoEO.end_date(+) AND (PPF.ATTRIBUTE15 like :28) ORDER BY PPF.FULL_NAME ASC

Samebug tips0

There are no available Samebug tips.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1659

  • via by Renu Gupta,
  • Stack trace

    • oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT /*+ FIRST_ROWS */ NULL AS SelectFlag, PPF.FULL_NAME AS PERSON_NAME, ADDR.DERIVED_LOCALE, ADDR.ADDRESS_ID, PHN.PHONE_NUMBER, PHN.PHONE_ID, PPF.DATE_OF_BIRTH, PPF.EMAIL_ADDRESS, ADDR.ADDRESS_LINE1, to_number( decode ( :1 , 1, IRC_SKILLS_MATCHING_PKG.vacancy_match_percent( ppf.person_id, :2 , :3 ), 2, IRC_SKILLS_MATCHING_PKG.skills_match_percent( :4 , :5 , :6 , :7 , :8 , :9 , ppf.person_id),-1) ) AS Match_Percent, decode(irc_utilities_pkg.is_open_party(PPF.PARTY_ID,:10),'TRUE',(select count(*) from PER_ALL_ASSIGNMENTS_F PAF2 , PER_ALL_PEOPLE_F PPF2 where PPF.PARTY_ID = PPF2.PARTY_ID and :11 between PPF2.EFFECTIVE_START_DATE and PPF2.EFFECTIVE_END_DATE and PAF2.ASSIGNMENT_TYPE = 'A' and :12 between PAF2.effective_start_date and PAF2.effective_end_date and PAF2.person_id = PPF2.person_id having count(*)>0),null) AS Jobs_Applied_For, decode(irc_utilities_pkg.is_open_party(PPF.PARTY_ID,:13),'TRUE',(select MAX(PAF.effective_start_date) from PER_ALL_ASSIGNMENTS_F PAF, PER_ALL_PEOPLE_F PPF2 where PPF.PARTY_ID = PPF2.PARTY_ID AND :14 between PPF2.EFFECTIVE_START_DATE AND PPF2.EFFECTIVE_END_DATE AND PAF.ASSIGNMENT_TYPE = 'A' and :15 >= PAF.effective_start_date AND PAF.person_id = PPF2.person_id),null) AS Last_Application, VCN.CONSIDERATION_STATUS, VCN.PERSON_ID AS CONSIDERATION_PERSON_ID, VCN.VACANCY_ID AS CONSIDERATION_VACANCY_ID, to_number(:16) AS VACANCY_ID, (select meaning from HR_LOOKUPS LKP where LKP.LOOKUP_TYPE = 'IRC_CONSIDERATION' AND LKP.LOOKUP_CODE = VCN.consideration_status) AS CONSIDERATION, VCN.CONSIDERATION_STATUS AS CONSIDERATION_STATUS_DISPLAY, PPF.FIRST_NAME AS PERSON_FIRST_NAME, PPF.LAST_NAME AS PERSON_LAST_NAME, DOC.DOCUMENT_ID, DOC.FILE_NAME, NVL2( DOC.DOCUMENT_ID,'Y','N') AS PreviewEnabled, VCN.VACANCY_CONSIDERATION_ID, INP.NOTIFICATION_PREFERENCE_ID, PPF.PERSON_ID, PPF.EFFECTIVE_START_DATE, PPF.EFFECTIVE_END_DATE, PPF.ATTRIBUTE1 AS PPFATTRIBUTE1, PPF.ATTRIBUTE2 AS PPFATTRIBUTE2, PPF.ATTRIBUTE3 AS PPFATTRIBUTE3, PPF.ATTRIBUTE4 AS PPFATTRIBUTE4, PPF.ATTRIBUTE5 AS PPFATTRIBUTE5, PPF.ATTRIBUTE6 AS PPFATTRIBUTE6, PPF.ATTRIBUTE7 AS PPFATTRIBUTE7, PPF.ATTRIBUTE8 AS PPFATTRIBUTE8, PPF.ATTRIBUTE9 AS PPFATTRIBUTE9, PPF.ATTRIBUTE10 AS PPFATTRIBUTE10, PPF.ATTRIBUTE11 AS PPFATTRIBUTE11, PPF.ATTRIBUTE12 AS PPFATTRIBUTE12, PPF.ATTRIBUTE13 AS PPFATTRIBUTE13, PPF.ATTRIBUTE14 AS PPFATTRIBUTE14, PPF.ATTRIBUTE15 AS PPFATTRIBUTE15, PPF.ATTRIBUTE16 AS PPFATTRIBUTE16, PPF.ATTRIBUTE17 AS PPFATTRIBUTE17, PPF.ATTRIBUTE18 AS PPFATTRIBUTE18, PPF.ATTRIBUTE19 AS PPFATTRIBUTE19, PPF.ATTRIBUTE20 AS PPFATTRIBUTE20, PPF.ATTRIBUTE21 AS PPFATTRIBUTE21, PPF.ATTRIBUTE22 AS PPFATTRIBUTE22, PPF.ATTRIBUTE23 AS PPFATTRIBUTE23, PPF.ATTRIBUTE24 AS PPFATTRIBUTE24, PPF.ATTRIBUTE25 AS PPFATTRIBUTE25, PPF.ATTRIBUTE26 AS PPFATTRIBUTE26, PPF.ATTRIBUTE27 AS PPFATTRIBUTE27, PPF.ATTRIBUTE28 AS PPFATTRIBUTE28, PPF.ATTRIBUTE29 AS PPFATTRIBUTE29, PPF.ATTRIBUTE30 AS PPFATTRIBUTE30, PPF.ATTRIBUTE_CATEGORY AS PPFATTRIBUTE_CATEGORY, VCN.PERSON_ID AS PERSON_ID1, CSC.SEARCH_CRITERIA_ID, CSC.LOCATION, CSC.DISTANCE_TO_LOCATION, CSC.EMPLOYEE, CSC.CONTRACTOR, CSC.EMPLOYMENT_CATEGORY, CSC.KEYWORDS, CSC.TRAVEL_PERCENTAGE, CSC.MIN_SALARY, CSC.SALARY_CURRENCY, CSC.SALARY_PERIOD, CSC.MATCH_COMPETENCE, CSC.MATCH_QUALIFICATION, CSC.JOB_TITLE, CSC.DEPARTMENT, CSC.PROFESSIONAL_AREA, CSC.WORK_AT_HOME, CSC.ATTRIBUTE_CATEGORY, CSC.ATTRIBUTE1, CSC.ATTRIBUTE2, CSC.ATTRIBUTE3, CSC.ATTRIBUTE4, CSC.ATTRIBUTE5, CSC.ATTRIBUTE6, CSC.ATTRIBUTE7, CSC.ATTRIBUTE8, CSC.ATTRIBUTE9, CSC.ATTRIBUTE10, CSC.ATTRIBUTE11, CSC.ATTRIBUTE12, CSC.ATTRIBUTE13, CSC.ATTRIBUTE14, CSC.ATTRIBUTE15, CSC.ATTRIBUTE16, CSC.ATTRIBUTE17, CSC.ATTRIBUTE18, CSC.ATTRIBUTE19, CSC.ATTRIBUTE20, CSC.ATTRIBUTE21, CSC.ATTRIBUTE22, CSC.ATTRIBUTE23, CSC.ATTRIBUTE24, CSC.ATTRIBUTE25, CSC.ATTRIBUTE26, CSC.ATTRIBUTE27, CSC.ATTRIBUTE28, CSC.ATTRIBUTE29, CSC.ATTRIBUTE30, to_char(RowNum) AS RowNumber, PPF.PARTY_ID, POV.VENDOR_ID, POV.VENDOR_NAME, INP.CREATION_DATE, to_char(decode(:17,'Y',nvl2(ADDR.geometry,floor(irc_location_utility.sdo_miles(mdsys.sdo_geometry(2001,8307,mdsys.sdo_point_type(:18,:19,null),null,null),ADDR.geometry,0.01)),''),'')) AS DISTANCE_TO_LOCATION_RESULTS, fnd_number.canonical_to_number(distance_to_location) AS DISTANCE_TO_LOCATION_INT, nvl2(ATMPT.MASTERY_SCORE,decode(greatest(ATMPT.MASTERY_SCORE,ATMPT.RAW_SCORE), ATMPT.RAW_SCORE, 'P', 'F'),nvl2(FND_PROFILE.VALUE('IRC_REGISTER_TEST'),nvl2(INP.ATTEMPT_ID, 'A','N'),null)) AS ATTEMPT_STATUS, to_number(decode(ATMPT.RAW_SCORE, -1000, null, ATMPT.RAW_SCORE)) AS ATTEMPT_SCORE, ATMPT.ATTEMPT_ID, decode(IrcReferralInfoEO.source_type,'ER','Y','N') AS Referred, IrcReferralInfoEO.START_DATE, IrcReferralInfoEO.OBJECT_ID, IrcReferralInfoEO.OBJECT_TYPE, IrcReferralInfoEO.END_DATE, (select meaning from hr_lookups where lookup_code = IRCREFERRALINFOEO.source_type and lookup_type = 'REC_TYPE') AS SourceType, decode (IrcReferralInfoEO.source_type, 'ER',(select distinct(full_name) from per_all_people_f where person_id = IrcReferralInfoEO.source_person_id), IrcReferralInfoEO.source_name ) AS SourceName FROM PER_ADDRESSES ADDR, PER_PHONES PHN, IRC_VACANCY_CONSIDERATIONS VCN, IRC_NOTIFICATION_PREFERENCES INP, IRC_DOCUMENTS DOC, PER_ALL_PEOPLE_F PPF, IRC_SEARCH_CRITERIA CSC, PO_VENDORS POV, OTA_ATTEMPTS ATMPT, IRC_REFERRAL_INFO IrcReferralInfoEO WHERE :20 BETWEEN PPF.EFFECTIVE_START_DATE AND PPF.EFFECTIVE_END_DATE AND PPF.PERSON_ID = DOC.PERSON_ID(+) AND PPF.PERSON_ID = PHN.PARENT_ID(+) AND PHN.PARENT_TABLE(+) = 'PER_ALL_PEOPLE_F' AND PHN.phone_type(+) = 'H1' AND :21 between nvl(PHN.date_from,:22) and NVL(PHN.date_to,:23) AND PPF.PERSON_ID = VCN.PERSON_ID(+) AND VCN.VACANCY_ID(+) = :24 AND nvl(VCN.consideration_status,'X') <> 'NO' and PPF.PERSON_ID = INP.PERSON_ID AND INP.PERSON_ID = ADDR.PERSON_ID(+) AND NVL(INP.ADDRESS_ID, DECODE(ADDR.ADDRESS_TYPE(+),'REC',ADDR.ADDRESS_ID(+),-1)) = addr.ADDRESS_ID(+) AND :25 between ADDR.DATE_FROM(+) and nvl(ADDR.DATE_TO(+),:26) AND doc.type(+) like '%RESUME' AND doc.end_date(+) is null AND CSC.object_id = PPF.PERSON_ID AND CSC.object_type= 'WPREF' AND EXISTS (SELECT NULL FROM PER_PEOPLE_F PPFS WHERE PPFS.PERSON_ID = PPF.PERSON_ID) and ((INP.AGENCY_ID = FND_PROFILE.VALUE('IRC_AGENCY_NAME')) or (FND_PROFILE.VALUE('IRC_AGENCY_NAME') is null and INP.ALLOW_ACCESS='Y')) and INP.AGENCY_ID = POV.VENDOR_ID(+) and INP.ATTEMPT_ID = ATMPT.ATTEMPT_ID(+) and ppf.party_id = IrcReferralInfoEO.object_id(+) and sysdate between IrcReferralInfoEO.start_date(+) and IrcReferralInfoEO.end_date(+) AND (PPF.ATTRIBUTE15 like :28) ORDER BY PPF.FULL_NAME ASC 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.processFormRequest(OAPageBean.java:2867) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1840) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538) at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    14 more bugmates