RA_CUSTOMER_TRX_ALL — INVOICE_CURRENCY_CODE, AMOUNT_DUE_ORIGINAL (Trx ID: 1882310)
Full validation of AR invoices and credit memos — header integrity, line amounts, tax lines, revenue distribution accounts, payment terms, batch status, and duplicate transaction detection.
Oracle EBS Accounts Receivable transaction validation failures share a structural similarity with AP invoice validation failures — both are symptoms of a data model mismatch between what was entered and what Oracle's validation engine requires — but the AR side has a different cast of tables and a different set of failure modes. An AR transaction that fails to complete or post typically has its root cause in one of four areas: the transaction header is missing a required field, the distribution lines do not balance to the transaction amount, the tax configuration for the transaction type is incomplete, or the transaction is part of a batch where the batch total does not match the sum of the individual transaction amounts.
The distribution balance problem is the most common. Oracle AR requires that the sum of RA_CUST_TRX_LINE_GL_DIST_ALL records for a transaction, grouped by account class (REC, REV, TAX, FREIGHT), equals the transaction header amount in RA_CUSTOMER_TRX_ALL. When a transaction is created through AutoInvoice from an upstream system, the interface layer sometimes produces a distribution amount rounding difference of a few cents — the sum of line distributions is $10,000.01 against a header amount of $10,000.00. Oracle's standard error message for this condition is generic enough that the AR team often cannot identify which specific distribution is causing the imbalance without running a query directly against the tables.
Tax validation adds a second layer of complexity in multi-tax environments. When Oracle E-Business Tax is enabled, every AR transaction line that carries a taxable item must have a corresponding tax line generated by the ZX tax engine. If the tax regime, tax rate, or tax jurisdiction configuration in ZX_RATES_B is incomplete for the transaction type and ship-to address combination, the tax line is either not generated or generated with a zero amount, and the transaction fails to complete with a tax calculation error that references the ZX tables rather than the RA tables. The AR team may not have visibility into the E-Business Tax setup screens that contain the root cause.
AR-01 runs a complete validation of the transaction record — header field completeness, distribution balance check with penny-variance identification, tax line existence and amount validation, batch balance verification, duplicate transaction number detection, and accounting code combination validity. It identifies every condition that will prevent the transaction from completing or posting, and provides the exact resolution path — functional form navigation for setup issues, direct fix with full backup for data rounding issues and distribution corrections.
AR-01 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 — AR TRANSACTION VALIDATION DIAGNOSTIC
════════════════════════════════════════════════════════════
Transaction ID : 1882310
Transaction Number : INV-2026-00892
Customer : Meridian Technologies (Account: 10441)
Case Number : AR-290184
Report Date : 20-FEB-2026 10:22:18
════════════════════════════════════════════════════════════
[ SECTION 1 — TRANSACTION HEADER ] STATUS: ✓ PASS
────────────────────────────────────────────────────────────
Transaction Type : INV — Invoice ✓
GL Date : FEB-2026 — OPEN ✓
Bill-to Customer : Meridian Technologies — ACTIVE ✓
Bill-to Site : US-PRIMARY — ACTIVE ✓
[ SECTION 2 — DISTRIBUTION BALANCE ] STATUS: ✗ FAIL
────────────────────────────────────────────────────────────
Header Amount : $28,400.00
REC Distribution : $28,400.00
REV Distribution : $28,400.01 ✗
Variance : $0.01 — distribution does not balance
✗ FAIL: REV distribution sum exceeds header by $0.01
Root Cause : AutoInvoice rounding — Line 3 AMOUNT_DUE_REMAINING $0.01 over
Fix : Direct correction to RA_CUST_TRX_LINE_GL_DIST_ALL with full backup
[ SECTION 3 — TAX LINES ] STATUS: ✓ PASS
────────────────────────────────────────────────────────────
Tax Line : ZX tax line present — $2,272.00 ✓
Tax Rate : 8.0% — California Sales Tax ✓
[ SECTION 4 — BATCH STATUS ] STATUS: ⚠ WARNING
────────────────────────────────────────────────────────────
⚠ Batch BATCH-2026-0144 total off by $0.01 due to same rounding issue
[ SECTION 5 — DUPLICATE CHECK ] STATUS: ✓ PASS
────────────────────────────────────────────────────────────
No duplicate transaction number detected ✓
════════════════════════════════════════════════════════════
DIAGNOSTIC SUMMARY
════════════════════════════════════════════════════════════
1 blocking condition: REV distribution variance of $0.01
Fix: Direct correction to DIST_AMOUNT on RA_CUST_TRX_LINE_GL_DIST_ALL Line 3
Batch total will auto-correct after distribution fix
════════════════════════════════════════════════════════════
Backup Created : CONS_BACKUP.RA_CUST_TRX_LINE_GL_DIST_ALL_290184 ✓
Registry ID : 3041
════════════════════════════════════════════════════════════
Every table touched by AR-01 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 AR-01 execution — written from actual run output. No manual documentation required.
Revenue line CCID is disabled or is not a REVENUE type account. AR-01 identifies the exact distribution, CCID, and the account type mismatch.
Transaction marked as taxable but no tax distributions exist. AR-01 identifies the tax code expected and the recalculation path.
Batch control amount does not equal sum of transaction amounts — blocking batch close. AR-01 identifies the discrepancy transaction.
Transaction number already exists for the same customer and OU. AR-01 identifies both records with dates and amounts for resolution.
| Table / View | Schema | Purpose in Diagnostic |
|---|---|---|
| RA_CUSTOMER_TRX_ALL | AR | Transaction header — status, type, customer, dates |
| RA_CUSTOMER_TRX_LINES_ALL | AR | Transaction lines — amounts, tax codes, item references |
| RA_CUST_TRX_LINE_GL_DIST_ALL | AR | Revenue and tax distributions — CCID, amounts |
| RA_BATCHES | AR | Batch header status and control amounts |
| HZ_CUST_ACCOUNTS | HZ | Customer account active status |
| HZ_CUST_SITE_USES_ALL | HZ | Bill-to site uses active status |
| RA_CUST_TRX_TYPES_ALL | AR | Transaction type validity |
| ZX_RATES_B | ZX | Tax code active status |
| GL_CODE_COMBINATIONS | GL | Distribution CCID validation |
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 |
|---|---|---|
| REV/REC distribution rounding variance — penny difference | Direct Fix | AR-01 calculates the exact variance, identifies the distribution line, and corrects AMOUNT on RA_CUST_TRX_LINE_GL_DIST_ALL with full backup. Pre-flight confirms transaction is not posted and no XLA event is active. |
| Invalid revenue account — disabled CCID on distribution | Functional First | Re-enable the account in GL Accounting Flexfield or correct the distribution account via Transactions > Transactions > More Actions > GL Distributions. AR-01 identifies the CCID and the navigation path. |
| Missing tax line on taxable transaction | Functional First | Tax configuration issue in Oracle E-Business Tax — tax regime, rate, or jurisdiction missing for the transaction type and ship-to site combination. AR-01 identifies the specific ZX configuration gap. |
| Batch amount mismatch — batch total ≠ sum of transactions | Direct Fix | AR-01 identifies the specific transaction(s) causing the batch imbalance and corrects the RA_BATCHES control total with full backup after the underlying transaction variance is resolved. |
| Duplicate transaction number in same batch source | Functional First | Delete or renumber the duplicate via Transactions workbench. AR-01 identifies the original transaction and the duplicate, with the batch source and import date for both. |
| Transaction type not active or wrong transaction class | Functional First | Correct via Receivables > Setup > Transactions > Transaction Types. AR-01 identifies the inactive type and the valid active alternatives for the transaction class (INV, CM, DM, DEP). |
| XLA event in ERROR — AR transaction accounting blocked | Oracle Support | XLA subledger tables are never modified directly. Error events are investigated via the Create Accounting output and submitted as a Service Request with the event ID and error detail. |
| FREIGHT distribution missing on transaction with freight line | Direct Fix | AR-01 identifies the missing freight distribution and inserts the FREIGHT account class record into RA_CUST_TRX_LINE_GL_DIST_ALL with full backup, using the default freight account from the transaction type setup. |
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 |
|---|---|---|
| 120arig.pdf | Oracle Receivables Implementation Guide — Ch. 2: Defining Receivables System Options | pp. 2-24 to 2-38: System options for transactions, accounting, and tax configuration |
| 120arig.pdf | Oracle Receivables Implementation Guide — Ch. 1: Setup Checklist | pp. 1-3 to 1-7: Transaction and accounting setup prerequisites for validation errors |
| 120ceug.pdf | Oracle Cash Management User Guide — Ch. 2: Setting Up AR for CE Integration | pp. 2-14 to 2-15: Receivables setup for bank account reconciliation and accounting |
AR-01 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 →