| Case Number | 00171076 |
| Oracle Module | Accounts Payable (AP) / eBusiness Tax (ZX) |
| EBS Version | R12 |
| Functional Area | Invoice Processing / Invoice Batches / Tax Lines / Invoice Holds |
| Related Patches | None |
AP_HOLDS_ALL that prevent normal release.ZX_LINES and ZX_LINES_SUMMARY that need to be removed as part of the cleanup.AP_BATCHES_ALL) that also requires cleanup.AP_PAYMENT_SCHEDULES_ALL.An AP invoice and its associated invoice batch were incorrectly created, leaving orphaned or invalid records across the AP, ZX, and AP batch tables. The invoice cannot be processed or voided through the UI. A complete data-level deletion of the invoice record, its distributions, holds, tax lines, payment schedule, and the associated batch record is required to remove the erroneous data from the system.
Run data_fix.txt. Backup tables are created for:
AP_HOLDS_ALLAP_PAYMENT_SCHEDULES_ALLZX_LINES_SUMMARYZX_LINESAP_INVOICE_DISTRIBUTIONS_ALLAP_INVOICES_ALLAP_BATCHES_ALLDelete records from the affected tables in the following order (child records before parent records to satisfy referential integrity):
AP_HOLDS_ALL for the affected invoice.ZX_LINES_SUMMARY for the affected tax summary line.ZX_LINES for the affected tax line.AP_INVOICE_DISTRIBUTIONS_ALL for the affected invoice.AP_PAYMENT_SCHEDULES_ALL for the affected invoice.AP_INVOICES_ALL for the affected invoice.AP_BATCHES_ALL for the affected batch.Commit. Verify the invoice and batch no longer appear in the AP module.
.txt file containing a partial action plan. The deletion step was not fully completed in the documented fix file — the order of deletions above is inferred from the backup tables created. Verify the correct deletion order and child/parent dependencies before executing in production. If the invoice has XLA accounting events, those must also be cleaned up before or after the AP record deletion.
| File | Description |
|---|---|
| data_fix.txt | Partial action plan (fix file is incomplete). Documents backup creation for AP_HOLDS_ALL, AP_PAYMENT_SCHEDULES_ALL, ZX_LINES_SUMMARY, ZX_LINES, AP_INVOICE_DISTRIBUTIONS_ALL, AP_INVOICES_ALL, and AP_BATCHES_ALL. Deletion step text is truncated. |
| Table | Action |
|---|---|
| AP_HOLDS_ALL | Delete holds for the affected invoice |
| AP_PAYMENT_SCHEDULES_ALL | Delete payment schedule for the affected invoice |
| AP_INVOICE_DISTRIBUTIONS_ALL | Delete distributions for the affected invoice |
| AP_INVOICES_ALL | Delete the affected invoice record |
| ZX_LINES_SUMMARY | Delete tax summary line |
| ZX_LINES | Delete tax line |
| AP_BATCHES_ALL | Delete the associated invoice batch record |