← Back to Cases
AP Paid Invoices Remaining on Trial Balance — Liability Balance Account Correction (11i)
Case Number00126977
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 multiple affected invoices contain a different code_combination_id than the corresponding invoice liability lines. This account mismatch prevents the Trial Balance from netting the invoice and payment to zero. The fix consolidates all affected liability balance and AE line records to use the invoice's credited account as the correct CCID. This is a follow-on case to the same pattern addressed in case 00088203.

Resolution

Step 1 – Populate the driver table

Populate RSI_AP_BAL_TMP_126977 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. For each affected invoice, the script determines the correct target CCID from the credited account in the driver table, then:

  1. Backs up the affected AP_AE_LINES_ALL and AP_LIABILITY_BALANCE records.
  2. Updates AP_LIABILITY_BALANCE.code_combination_id to the target CCID for all payment-side balance rows with the incorrect account.
  3. Updates AP_AE_LINES_ALL.code_combination_id to the target CCID for the corresponding AE lines.
  4. Optionally inserts GL Interface adjustment entries to document the reclassification in GL (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. Errors are logged to rsi_ap_tb_recon_126977. Verify the affected invoices no longer appear on the AP Trial Balance.

Note: This fix applies to the 11i AP_AE_LINES_ALL and AP_LIABILITY_BALANCE accounting model. The driver table RSI_AP_BAL_TMP_126977 must be created and populated before running this script. This case uses the same fix pattern as case 00088203 but for a different set of invoices.

Script Inventory

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

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