RA_INTERFACE_ERRORS_ALL — MESSAGE_TEXT, INTERFACE_LINE_ID (47 error records)
Diagnoses all errors in RA_INTERFACE_ERRORS_ALL — invalid transaction types, currencies, GL dates, UOMs, duplicate numbers, missing flexfield values, and orphaned interface records.
AutoInvoice is Oracle EBS Accounts Receivable's mechanism for importing invoices from upstream systems — order management, project billing, contracts, and custom applications. It works through an interface table staging layer: the source system populates RA_INTERFACE_LINES_ALL, RA_INTERFACE_DISTRIBUTIONS_ALL, and optionally RA_INTERFACE_SALESCREDITS_ALL, and then the AutoInvoice concurrent program validates each record, transforms it into AR transaction tables, and reports errors to RA_INTERFACE_ERRORS_ALL. When the import fails, the error records tell you what went wrong — but the error messages are coded, and the same error code can have multiple root causes depending on the transaction type, the batch source, and the interface record configuration.
The most common AutoInvoice failure — INVALID_TRANS_TYPE — occurs when the CUST_TRX_TYPE_ID in the interface line references a transaction type that either does not exist in RA_CUST_TRX_TYPES_ALL, is inactive, or does not match the transaction class expected for the batch source. In multi-OU environments where the same batch source is used across multiple operating units, the transaction type ID from one OU is frequently used in interface records intended for a different OU, where that type ID maps to a different or inactive type. The source system has no way to know the type ID is invalid until AutoInvoice rejects it.
The GL date validation failure — GL_DATE_CLOSED_PERIOD — is the second most common error and is the most time-sensitive. When the upstream system populates the GL date field in RA_INTERFACE_LINES_ALL with the transaction date from the source system, and that date falls in a closed AR period, every interface record in that batch fails with the same error. The fix is to update the GL_DATE in the interface table to a date in an open period — but this requires knowing which period is open, confirming that the accounting date change is authorized by the Controller, and applying the update before the next AutoInvoice run to prevent a second failure.
AR-02 runs a complete analysis of the AutoInvoice interface tables — error summary from RA_INTERFACE_ERRORS_ALL grouped by error type and frequency, transaction type validity check against RA_CUST_TRX_TYPES_ALL per OU, GL date validation against open periods, unit of measure existence in FND_UNIT_OF_MEASURE, customer account and site existence in HZ tables, duplicate ORIG_SYSTEM_REFERENCE detection, and orphaned line identification where header records exist without corresponding line records. It generates the corrected SQL for each fixable interface record error.
AR-02 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 — AUTOINVOICE INTERFACE DIAGNOSTIC
════════════════════════════════════════════════════════════
Batch Source : OMS-INVOICES
Request ID : 4491820
Interface Records : 284 total
Case Number : AR-301482
Report Date : 21-FEB-2026 09:08:44
════════════════════════════════════════════════════════════
[ SECTION 1 — ERROR SUMMARY ]
────────────────────────────────────────────────────────────
Total Errors : 47 records in RA_INTERFACE_ERRORS_ALL
GL_DATE_CLOSED_PERIOD : 38 records — GL date in JAN-2026 (closed)
INVALID_TRANS_TYPE : 7 records — TRX_TYPE_ID 8812 invalid in US-WEST OU
DUP_ORIG_SYSTEM_REF: 2 records — ORIG_SYSTEM_REF already in RA_CUSTOMER_TRX_ALL
[ SECTION 2 — GL DATE ANALYSIS ] STATUS: ✗ FAIL
────────────────────────────────────────────────────────────
Interface GL Date : 31-JAN-2026
JAN-2026 Status : CLOSED ✗
Next Open Period : FEB-2026 — OPEN ✓
Fix : UPDATE RA_INTERFACE_LINES_ALL SET GL_DATE = '28-FEB-2026' WHERE REQUEST_ID = 4491820 AND ERROR_FLAG = 'Y'
[ SECTION 3 — TRANSACTION TYPE ] STATUS: ✗ FAIL
────────────────────────────────────────────────────────────
TRX_TYPE_ID : 8812
Valid in US-EAST OU: YES — Standard Invoice ✓
Valid in US-WEST OU: NO — type does not exist in this OU ✗
Fix : Correct TRX_TYPE_ID to 9104 (Standard Invoice — US West OU)
[ SECTION 4 — DUPLICATE DETECTION ] STATUS: ✗ FAIL
────────────────────────────────────────────────────────────
✗ ORIG_SYSTEM_REF OMS-2026-00441 already imported on 15-JAN-2026
✗ ORIG_SYSTEM_REF OMS-2026-00442 already imported on 15-JAN-2026
════════════════════════════════════════════════════════════
DIAGNOSTIC SUMMARY
════════════════════════════════════════════════════════════
3 distinct error types — 47 interface records blocked
1. Update GL dates for 38 records to FEB-2026 (Controller auth required)
2. Correct TRX_TYPE_ID for 7 US-West records
3. Delete 2 duplicate interface records — already imported
════════════════════════════════════════════════════════════
Every table touched by AR-02 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-02 execution — written from actual run output. No manual documentation required.
Interface line references a transaction type that does not exist or is inactive. AR-02 identifies the type name, the batch source, and the RA_CUST_TRX_TYPES_ALL correction path.
Interface line GL date falls in a closed AR period. AR-02 identifies affected records and generates the GL date update for the interface table.
Duplicate ORIG_SYSTEM_BILL_CUSTOMER_REF detected — same transaction reference already imported. AR-02 identifies the existing transaction and the deduplication path.
Interface lines with no corresponding interface errors and no complete transaction — lines that failed silently. AR-02 identifies these and the cleanup path.
| Table / View | Schema | Purpose in Diagnostic |
|---|---|---|
| RA_INTERFACE_LINES_ALL | AR | Interface lines pending import |
| RA_INTERFACE_ERRORS_ALL | AR | Interface rejection detail by error code |
| RA_INTERFACE_DISTRIBUTIONS_ALL | AR | Interface distribution records |
| RA_CUST_TRX_TYPES_ALL | AR | Transaction type validity |
| HZ_CUST_ACCOUNTS | HZ | Customer account validation |
| FND_UNIT_OF_MEASURE | FND | UOM validity |
| GL_PERIOD_STATUSES | GL | Period open/closed check for GL dates |
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 |
|---|---|---|
| GL_DATE_CLOSED_PERIOD — interface GL date in closed period | Direct Fix | AR-02 identifies the next open period, generates the UPDATE for GL_DATE in RA_INTERFACE_LINES_ALL with full backup. Controller authorization documented before execution. AutoInvoice resubmitted after correction. |
| INVALID_TRANS_TYPE — transaction type ID invalid for OU | Direct Fix | AR-02 identifies the correct TRX_TYPE_ID for the target OU and applies the correction to RA_INTERFACE_LINES_ALL with full backup. Common in multi-OU environments where source systems use a single type ID. |
| DUP_ORIG_SYSTEM_REF — record already imported | Direct Fix | AR-02 identifies the original transaction in RA_CUSTOMER_TRX_ALL and deletes the duplicate interface record with backup. If the original import was incorrect, documents the correction path before deletion. |
| INVALID_SALESREP — sales rep ID does not exist | Functional First | Correct the SALESREP_ID in the interface record or add the missing sales rep via Receivables > Setup > Salespersons. AR-02 identifies the invalid ID and the active sales rep options. |
| Orphaned interface lines — lines without header records | Direct Fix | AR-02 identifies interface line records where no corresponding header record exists and deletes the orphaned lines with backup. Common when header records fail a validation that line records passed. |
| INVALID_CURRENCY_CODE — currency not enabled | Functional First | Enable the currency via General Ledger > Setup > Currencies. AR-02 identifies the currency code in the interface record and the current enabled status in FND_CURRENCIES. |
| UOM not found in FND_UNIT_OF_MEASURE | Direct Fix | AR-02 identifies the UOM value in the interface record and the closest matching active UOM. Corrects the UOM_CODE in RA_INTERFACE_LINES_ALL with full backup. |
| INVALID_CUSTOMER — customer account not found in HZ | Functional First | Verify the customer account number or ID against HZ_CUST_ACCOUNTS. If the customer exists but is inactive, reactivate via Customers workbench. If the customer does not exist, create it before resubmitting AutoInvoice. |
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 — AutoInvoice | AutoInvoice grouping rules, line ordering rules, and interface error resolution |
| 120arig.pdf | Oracle Receivables Implementation Guide — Ch. 1: Setup Steps | Setup steps for transaction sources, transaction types, and AutoInvoice configuration |
| 120funmo.pdf | Oracle Applications Multiple Organizations Implementation Guide | Operating unit isolation of RA_INTERFACE_LINES_ALL data for multi-org environments |
AR-02 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 →