← Back to Cases
AP Bank Account Uses Data Corruption — End Date Fix
Case Number00037149
Oracle ModuleAccounts Payable (AP) / Oracle Payments (IBY)
EBS VersionR12
Functional AreaSupplier Bank Accounts / Payment Processing
Related PatchesNone

Symptoms

Root Cause

Bank account use records in AP_BANK_ACCOUNT_USES_ALL became corrupted — either duplicate records were created or end dates were not properly applied when supplier bank accounts were updated or replaced. The presence of multiple active (non-ended) bank account use records for the same supplier site caused payment processing to fail or produce incorrect results.

Resolution

Step 1 – Create backup table

Run data_fix.sql. The script creates a backup of all affected AP_BANK_ACCOUNT_USES_ALL records identified via joins to supplier and bank account tables.

Step 2 – Identify affected records

The script identifies bank account use records for supplier/site combinations that have multiple active records without proper end dates, joining:

Step 3 – Apply end dates to superseded records

Update AP_BANK_ACCOUNT_USES_ALL to stamp an end_date on the corrupted/duplicate records, effectively inactivating them while leaving the correct active record without an end date.

Step 4 – Commit and validate

Issue COMMIT. Confirm that each supplier/site now has only one active (non-ended) bank account use record. Retry the affected payment run.

Note: The data fix script connects to the custom schema to perform the fix. The backup table is created in the custom schema. This is the initial version of the fix; a revised version (iteration B) was also produced for a related case (00040609).

Script Inventory

FileDescription
data_fix.sqlCreates backup of affected AP_BANK_ACCOUNT_USES_ALL records; stamps end_date on corrupted/duplicate bank account use records for the affected supplier/site combinations. Connects to custom schema via APPS.

Key Tables Affected

TableAction
AP_BANK_ACCOUNT_USES_ALLUpdate END_DATE on corrupted/duplicate records
PO_VENDORSRead only (used in identification query)
PO_VENDOR_SITES_ALLRead only (used in identification query)
AP_BANK_ACCOUNTS_ALLRead only (used in identification query)