← Back to Cases
AP Payment Batch Stuck — Clear Checkrun and Release Invoices
Case Number00050272
Oracle ModuleAccounts Payable (AP)
EBS VersionR12
Functional AreaPayment Processing / Manual Payment Batch (11i-style)
Related PatchesNone

Symptoms

Root Cause

The AP payment selection process (11i-style manual checkrun) was initiated but not completed. The checkrun tables retain the selected invoice and check records, and the invoice payment schedules are locked with the checkrun ID. The payment batch cannot be cancelled through normal UI because the concurrent program that created it is no longer running or is in an error state.

Resolution

Step 1 – Create backup tables

Run data_fix.sql. Backups are created for:

Step 2 – Clear checkrun_id from payment schedules

Update AP_PAYMENT_SCHEDULES_ALL to set checkrun_id = NULL for all invoices that were selected in the stuck batch. This releases the invoices for re-selection.

Step 3 – Delete stuck checkrun records

Delete from the following tables for the stuck checkrun name/ID:

  1. AP_SELECTED_INVOICES_ALL
  2. AP_SELECTED_INVOICE_CHECKS_ALL
  3. AP_INV_SELECTION_CRITERIA_ALL
Step 4 – Commit and validate

Issue COMMIT. Confirm the invoices are now available for selection in a new payment batch.

Note: This fix is applicable to the 11i-style manual checkrun payment flow. For R12 Payment Process Request (PPR) issues, refer to the ap_Rel_Inv_frm_TermPPR_fix.sql approach.

Script Inventory

FileDescription
data_fix.sqlCreates backups; clears checkrun_id from AP_PAYMENT_SCHEDULES_ALL; deletes stuck records from AP_SELECTED_INVOICES_ALL, AP_SELECTED_INVOICE_CHECKS_ALL, and AP_INV_SELECTION_CRITERIA_ALL.

Key Tables Affected

TableAction
AP_PAYMENT_SCHEDULES_ALLUpdate checkrun_id to NULL
AP_SELECTED_INVOICES_ALLDelete for stuck checkrun
AP_SELECTED_INVOICE_CHECKS_ALLDelete for stuck checkrun
AP_INV_SELECTION_CRITERIA_ALLDelete for stuck checkrun