← Back to Cases
AP Paid Invoice Remaining on Trial Balance — Liability Balance Account Correction (11i)
Case Number00088203
Oracle ModuleAccounts Payable (AP)
EBS Version11i (11.5.10.2)
Functional AreaPayment Processing / AP Trial Balance / Liability Balance
Related PatchesNone

Symptoms

Root Cause

The AP liability balance table (AP_LIABILITY_BALANCE) and accounting entry lines (AP_AE_LINES_ALL) for the payment side of affected invoices contain a different code_combination_id than the invoice liability lines. This mismatch prevents the Trial Balance from netting the invoice and payment to zero. The fix identifies the credited (invoice) account as the correct CCID and updates all payment-side liability balance and AE line records to use the same account.

Resolution

Step 1 – Populate the driver table

Populate RSI_AP_BAL_TMP_88203 with the affected invoice IDs, their current account balances, and CCID values before running the fix script.

Step 2 – Run the fix script

Run data_fix.sql. The script identifies invoices in the driver table that have more than one distinct account (CCID) across their liability balance records, then for each affected invoice:

  1. Determines the correct target CCID as the credited account (invoice liability account).
  2. Backs up the affected AP_AE_LINES_ALL and AP_LIABILITY_BALANCE records.
  3. Updates AP_LIABILITY_BALANCE.code_combination_id to the target CCID for all payment-side balance rows with the incorrect account.
  4. Updates AP_AE_LINES_ALL.code_combination_id to the target CCID for the corresponding AE lines.
  5. Optionally inserts GL Interface adjustment entries to document the account change (if GL transfer is required).
Step 3 – Commit and validate

The script commits after each invoice and prints a summary of successful and failed records. Verify the affected invoices no longer appear on the AP Trial Balance after re-running the report.

Note: This fix applies to the 11i AP_AE_LINES_ALL and AP_LIABILITY_BALANCE accounting model. The driver table RSI_AP_BAL_TMP_88203 must be created and populated with the affected invoice data before running this script. An optional GL Transfer mode (l_gl_transfer = TRUE) can insert correcting GL Interface entries.

Script Inventory

FileDescription
data_fix.sqlPL/SQL script (11i). Corrects mismatched code_combination_id on AP_LIABILITY_BALANCE and AP_AE_LINES_ALL for paid invoices remaining on the Trial Balance. Consolidates all payment-side liability rows to use the invoice liability account CCID. Creates backup tables and error log. Produces spooled output.

Key Tables Affected

TableAction
AP_LIABILITY_BALANCEUpdate code_combination_id to invoice liability CCID
AP_AE_LINES_ALLUpdate code_combination_id to invoice liability CCID
GL_INTERFACEOptional — insert correcting adjustment entries if GL transfer required