UNEXPECTED ERROR WHEN AUDITOR SEARCHES FOR REPORT OF TERMINATED/REHIRED EMPLOYEE (Doc ID 2171901.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle Internet Expenses - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

Navigate to Internet Expense Auditor responsibility , go to Expense Audit, Search by EXP596285.

EXP596285 was entered by an employee that was terminated and rehired as contingent workers.

The Auditor encounters " error - you have encountered an unexpected error.."
Again, this is error happens when trying to view reports for employees that were terminated and rehired as
contingent workers. Note, when the terminated employees were rehired - their
assigned organization was changed.

The error Exception Details are
"...oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException:
JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM
(SELECT lookup_code lookup_code, meaning description
FROM fnd_lookup_values_vl
WHERE lookup_type = 'HOME_OFFICE'
AND AP_WEB_DB_HR_INT_PKG.isPersonCwk(:1) = 'N'
UNION
SELECT TO_CHAR(vendor_site_id) lookup_code, vendor_site_code description
FROM ap_supplier_sites
WHERE SYSDATE < NVL(INACTIVE_DATE, SYSDATE + 1)
AND NVL(pay_site_flag,'N')='Y'
and vendor_id is not null
AND vendor_id =
(SELECT paaf.vendor_id
FROM per_all_assignments_f paaf
WHERE paaf.person_id = :2
AND paaf.primary_flag = 'Y'
AND trunc(fnd_date.canonical_to_date((:3))) BETWEEN
trunc(paaf.effective_start_date ) AND trunc(paaf.effective_end_date )
AND paaf.vendor_id IS NOT NULL
)) QRSLT ORDER BY description at
oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:912)at
oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErro
rHandler.java:1169) at
oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:3334
) at
oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:3129
)at _OA._jspService(_OA.java:229)
...
at java.lang.Thread.run(Thread.java:619)
## Detail 0 ##
java.sql.SQLException: Missing IN or OUT parameter at index:: 1 at
oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePrepa
redStatement.java:1752) at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedState
ment.java:3444) at
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatemen
t.java:3493)
...
at java.lang.Thread.run(Thread.java:619)
java.sql.SQLException: Missing IN or OUT parameter at index:: 1 at
oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePrepa
redStatement.java:1752) at
oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedState
ment.java:3444) at
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatemen
t.java:3493)..."

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms