Expense Report Export and Audit New Expense Reports Both Error WIth ORA-01407: cannot update ("AP"."AP_EXPENSE_REPORT_HEADERS_ALL"."WEEK_END_DATE") to NULL (Doc ID 1489597.1)

Last updated on DECEMBER 25, 2015

Applies to:

Oracle Internet Expenses - Version 12.1.3 to 12.1.3 [Release 12.1]
Information in this document applies to any platform.
Expense Report Export
Audit Expense Report
ORA-01407: cannot update ("AP"."AP_EXPENSE_REPORT_HEADERS_ALL"."WEEK_END_DATE") to NULL

Symptoms

On : 12.1.3 version, Expenses Requests

When attempting to run expense report export program and also when an auditor attempts to audit for newly created expense reports in the main audit page, the following errors occurs.

ERROR
-----------------------
Cause: FDPSTP failed due to ORA-01407: cannot update ("AP"."AP_EXPENSE_REPORT_HEADERS_ALL"."WEEK_END_DATE") to NULL
ORA-06512: at "APPS.AP_WEB_EXPORT_ER", line 2116
ORA-06512: at line 1

ERROR
-----------------------
oracle.apps.fnd.framework.OAException: oracle.jbo.DMLException: JBO-26041: Failed to post data to database during "Update": SQL Statement "
UPDATE AP_EXPENSE_REPORT_HEADERS_ALL ExpenseReportHeaderEO SET LAST_UPDATE_DATE=:1,LAST_UPDATED_BY=:2,TOTAL=:3,
MAXIMUM_AMOUNT_TO_APPLY=:4,ADVANCE_INVOICE_TO_APPLY=:5,APPLY_ADVANCES_DEFAULT=:6,LAST_UPDATE_LOGIN=:7,
WORKFLOW_APPROVED_FLAG=:8,PREPAY_NUM=:9,PREPAY_DIST_NUM=:10,PREPAY_GL_DATE=:11,AMT_DUE_EMPLOYEE=:12,
LAST_AUDITED_BY=:13,IMAGE_RECEIPTS_STATUS=:14 WHERE REPORT_HEADER_ID=:15".


## Detail 0 ##
java.sql.SQLException: ORA-01407: cannot update ("AP"."AP_EXPENSE_REPORT_HEADERS_ALL"."WEEK_END_DATE") to NULL

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.executeForRows(T4CPreparedStatement.java:1008)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1307)

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Upgrade to R12.1.3 from 11i
2. Run expense report export program or try to audit a new expense report
3. Above error occurs

Changes

 Upgraded to R 12.1.3

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