XLA_EVENTS — EVENT_STATUS_CODE = ERROR (Event IDs: 881204, 881206)
Pre-close readiness scan covering unvalidated invoices, unaccounted transactions, open holds, unposted cash, sweep candidates, SLA errors, and period status across all ledgers.
The Oracle EBS AP period close process has a specific sequence of prerequisites that must all be satisfied before the period can be closed in the Payables module — and those prerequisites have their own prerequisites in the subledger accounting layer. An AP period cannot close if there are invoices in NEEDS REVALIDATION status with GL dates in the current period. It cannot close if there are SLA accounting events in ERROR status that have not been resolved. It cannot close if there are payment batches in CONFIRMING status that have not been confirmed. When any of these conditions exist, the Close Payables Period concurrent program completes with an error, and the AP team begins a manual hunt through multiple screens to identify which transactions are blocking the close.
The operational difficulty is that the blocking conditions exist in different places. Unvalidated invoices are visible in the Invoice Workbench if you know to filter by validation status. Accounting errors are visible in the Create Accounting output if you know where to look. Unconfirmed payment batches are visible in the Payment Batches form. No single screen in Oracle's standard UI shows all blocking conditions simultaneously — which means the AP team fixes one condition, reruns Close Payables Period, hits another error, fixes that one, and repeats. In a large environment with hundreds of invoices and dozens of payment batches, this process can consume an entire day.
The Sweep Payables Transactions program adds another dimension. Invoices with GL dates in prior periods that are not swept forward before the close will land in the wrong accounting period — either blocked by the closed period or posted to a period that has already been reconciled to the GL. The sweep logic has its own prerequisites: the target period must be open, the invoice must not be already accounted, and the AP system options must have the sweep enabled. AP-05 identifies all sweep candidates before the close and validates that the sweep can run successfully.
AP-05 runs a complete period-close readiness scan — all invoices in NEEDS REVALIDATION or NEVER VALIDATED with GL dates in the current period, all XLA events in ERROR or UNPROCESSED status, all payment batches not yet confirmed, all sweep candidates with target period validation, and the AP-to-GL transfer status. It produces a single prioritized report that shows every blocking condition with the exact resolution path, ordered by the sequence in which they must be resolved.
AP-05 systematically investigates every major condition that can cause the issue this diagnostic targets. Below is the complete coverage breakdown.
Representative output showing the diagnostic running against a real-world scenario. The script identifies every condition, states the root cause, and generates the fix.
════════════════════════════════════════════════════════════
ORACLE EBS R12 — AP PERIOD CLOSE READINESS DIAGNOSTIC
════════════════════════════════════════════════════════════
Period : FEB-2026
Ledger : US Primary Ledger
Operating Unit : US Operations OU
Case Number : 856140
Report Date : 25-FEB-2026 16:00:44
════════════════════════════════════════════════════════════
[ SECTION 1 — PERIOD STATUS ] STATUS: ✓ PASS
────────────────────────────────────────────────────────────
AP Period : FEB-2026 — OPEN ✓
GL Period : FEB-2026 — OPEN ✓
XLA Period : FEB-2026 — OPEN ✓
[ SECTION 2 — UNVALIDATED INVOICES ] STATUS: ✗ FAIL
────────────────────────────────────────────────────────────
NEEDS REVALIDATION : 14 invoices — $284,100 ✗
NEVER VALIDATED : 3 invoices — $41,500 ✗
✗ FAIL: 17 invoices must be validated before period close
[ SECTION 3 — UNACCOUNTED TRANSACTIONS ] STATUS: ✗ FAIL
────────────────────────────────────────────────────────────
XLA ERROR Events : 2 events — Invoice IDs 1998210, 1998445 ✗
UNPROCESSED Events : 5 events — older than 24 hours ⚠
✗ FAIL: 2 accounting events in ERROR must be resolved
[ SECTION 4 — OPEN HOLDS ] STATUS: ⚠ WARNING
────────────────────────────────────────────────────────────
⚠ 8 invoices on hold — $162,400 — may miss close
[ SECTION 5 — PAYMENT BATCHES ] STATUS: ✓ PASS
[ SECTION 6 — SWEEP CANDIDATES ] STATUS: ⚠ WARNING
────────────────────────────────────────────────────────────
⚠ 4 invoices with JAN-2026 GL dates — sweep required
════════════════════════════════════════════════════════════
CLOSE READINESS SUMMARY
════════════════════════════════════════════════════════════
PERIOD CANNOT CLOSE — 2 blocking conditions
1. Validate 17 invoices (run Payables Invoice Validation)
2. Resolve 2 XLA ERROR events (see Create Accounting output)
Advisory: Sweep 4 prior-period invoices after validation
════════════════════════════════════════════════════════════
Every table touched by AP-05 data fixes is backed up before the first UPDATE fires. Backup is verified by row count. One script restores the original state if needed.
Backup happens before any DML. Script aborts if backup creation fails.
This article is produced automatically at the end of every AP-05 execution — written from actual run output. No manual documentation required.
Invoices validated but not sent to Create Accounting. AP-05 lists them by GL date with aging and provides the resubmit path for the Create Accounting concurrent program.
XLA accounting events in error — blocking GL posting. AP-05 identifies the error type, affected invoices, and provides the error correction navigation path.
Invoices with prior period GL dates that will land in the wrong period if not swept. AP-05 identifies sweep candidates and the Sweep Payables Transactions program parameters.
Payment batches in FORMATTING or CONFIRMING status will not hit GL until confirmed. AP-05 shows outstanding batches by age and total amount.
| Table / View | Schema | Purpose in Diagnostic |
|---|---|---|
| AP_INVOICES_ALL | AP | Invoice status and accounting flags |
| AP_HOLDS_ALL | AP | Active holds blocking posting |
| XLA_EVENTS | XLA | SLA event status — error and unprocessed |
| XLA_AE_HEADERS | XLA | Accounting header status per event |
| GL_PERIOD_STATUSES | GL | Period open/closed status |
| AP_PAYMENT_HISTORY_ALL | AP | Payment batch confirmation status |
| CE_STATEMENT_LINES | CE | Bank statement interface records |
| AP_INVOICE_PAYMENTS_ALL | AP | Individual payment to invoice links |
| XLA_PERIOD_STATUSES | XLA | Subledger period status |
| AP_SYSTEM_PARAMETERS | AP | AP options including sweep configuration |
Before any data is modified in a production Oracle database, AP-01 walks through a four-stage decision process. Every condition identified by the diagnostic maps to exactly one resolution path.
Oracle's own forms and concurrent programs are always the first option. If the condition can be corrected through Oracle's standard UI — a form, a concurrent program, a setup screen — that path is taken first. No consultant SQL required, no database risk, and the fix is fully supported by Oracle. The diagnostic identifies these conditions explicitly and states the exact front-end navigation path.
When the front-end path is unavailable or would require an unacceptable volume of manual steps, a direct fix is evaluated against explicit criteria. All of the following must be true before proceeding:
Certain table areas are never touched directly, regardless of how well the underlying structure is understood. The diagnostic flags these conditions and generates the Service Request documentation:
XLA_EVENTS, XLA_AE_HEADERS — incorrect changes corrupt the subledger audit trail in ways undetectable until period close fails or an auditor requests a reconciliationWF_ITEMS, WF_ITEM_ACTIVITY_STATUSES — ad-hoc DML can corrupt the workflow engine state instance-wideA timestamped backup table is created and row-count verified before the first UPDATE fires. Explicit parameter confirmation is required — the script will not self-execute. After execution, a verification query confirms the expected state. A complete change record — rows affected, before and after values, database username, timestamp — is written to the FIX_BACKUP_REGISTRY and becomes the primary artifact in the knowledge base entry for this incident.
| Condition Identified | Resolution Path | Notes |
|---|---|---|
| Unvalidated invoices in NEEDS REVALIDATION or NEVER VALIDATED | Functional First | Submit Payables Invoice Validation concurrent program for the operating unit and period. AP-05 provides the exact parameters. If holds result from validation, they are categorized by type for priority resolution. |
| XLA events in ERROR — accounting blocked | Oracle Support | XLA error events are investigated through the Create Accounting output and the Oracle Subledger Accounting module. Root cause is typically a disabled account or missing accounting rule. Direct DML on XLA tables is never performed. |
| GL date in closed period — invoice will not validate | Direct Fix | AP-05 identifies the next open period, generates the GL date update against AP_INVOICES_ALL with full backup. Pre-flight confirms invoice is unposted and no XLA event is active before proceeding. |
| Unconfirmed payment batches blocking close | Functional First | Submit Confirm Payments concurrent program for each outstanding batch. AP-05 identifies all batches in FORMATTING or CONFIRMING status with the request ID and submission parameters. |
| Sweep candidates — prior period GL dates | Functional First | Submit Sweep Payables Transactions concurrent program with the target period. AP-05 identifies all sweep candidates, validates the target period is open, and confirms auto-sweep is enabled in AP system options. |
| AP-to-GL transfer incomplete — journal not created | Functional First | Submit Transfer to GL concurrent program. AP-05 identifies which accounting periods have untransferred journals and provides the exact submission parameters. |
| Accounting events UNPROCESSED — older than 24 hours | Functional First | Resubmit Create Accounting for the affected application and period. UNPROCESSED events older than 24 hours typically indicate the Create Accounting job did not run or completed with a timeout. |
| Period status mismatch — AP open, GL closed | Oracle Support | GL period status is managed by the General Ledger module. AP cannot be closed into a closed GL period. GL period reopening requires Controller authorization and Oracle GL support if the period was closed in error. |
Before any data fix runs, the script verifies pre-flight conditions and creates a complete verified backup. If any check fails, the script aborts. There is no partial execution path.
Before the first UPDATE fires, the script creates a complete copy of every row to be modified. Tables are named CONS_BACKUP.<TABLE>_<CASE#> and persist permanently after execution.
INSERT from the backup table. No reconstruction required.The knowledge base article is generated automatically from the script's execution output. No manual documentation required. It becomes the institutional record — for the team, for auditors, and for every future engagement in the same environment.
| R12 Guide (PDF) | Title & Chapter | Detail |
|---|---|---|
| 120apug.pdf | Oracle Payables User's Guide — Ch. 8: Accounting — Period Close | Ch. 8: Payables Accounting Process, period-end accruals, and transferring to GL |
| 120ceug.pdf | Oracle Cash Management User Guide — Ch. 2: Setting Up AP for CE Integration | pp. 2-12 to 2-14: AP bank account reconciliation setup required for clean period close |
| 120poug.pdf | Oracle Purchasing User's Guide — Ch. 9: Receipt Accruals | pp. 9-89 to 9-120: Accrual process and AP/PO accrual reconciliation for period-end |
AP-05 is one of 65 diagnostic scripts covering every major Oracle EBS and Fusion module. William A. Green Consulting runs the script in your environment, applies guided data fixes, and builds the knowledge base that prevents the same issues from recurring.
See this script run autonomously — Oracle AI Platform →