AP_INVOICE_DISTRIBUTIONS_ALL — DIST_CODE_COMBINATION_ID (22 open distributions)
RA_CUST_TRX_LINE_GL_DIST_ALL — CODE_COMBINATION_ID (14 open distributions)
Identifies disabled CCIDs in open transactions, summary account misuse, cross-validation rule violations, incorrect account types, and orphaned combinations with no recent activity.
The Oracle EBS Chart of Accounts is the backbone of every financial transaction in the system — every AP invoice distribution, every AR revenue line, every asset depreciation entry, every inventory cost, and every project expense references a code combination in GL_CODE_COMBINATIONS. When a COA cleanup project disables, end-dates, or restructures account segments without first identifying every open transaction referencing the affected combinations, the result is a cascade of failures across every module simultaneously. A single disabled CCID can block AP invoice validation, AR transaction completion, GL journal import, and Fixed Asset journal creation at the same time.
The cross-module impact of COA changes is the core operational problem. An AP team member who disables a CCID in the GL Accounting Flexfield setup has no visibility into which open AR transactions, open PO distributions, active FA distribution lines, or active Project expenditure items reference that same CCID. The AP setup screen shows the code combination as unused from the AP perspective — but from the GL perspective, that CCID is referenced in five other modules. GL-03 is the pre-change cross-reference tool that should be run before any CCID is disabled, and the post-change diagnostic tool that identifies all the breaks after a cleanup has already run.
Summary accounts are a persistent source of journal import and transaction errors. Oracle GL distinguishes between detail accounts (SUMMARY_FLAG = 'N') which can receive transactions, and summary accounts (SUMMARY_FLAG = 'Y') which are used only for budget and reporting rollup. When a source system or an AutoAccounting rule references a summary account in a transaction distribution, the journal import rejects the entry with a summary account error. This error is common after a COA restructuring that promoted detail accounts to summary status to support a new reporting hierarchy.
GL-03 runs a complete chart of accounts diagnostic — disabled CCID cross-reference across AP, AR, FA, PO, and PA tables, summary account misuse detection in open transaction distributions, cross-validation rule violation analysis, account type validation (assets, liabilities, revenues, expenses mapped to correct segment ranges), orphaned CCID identification for combinations that have never been referenced and can be safely disabled, and natural account segment completeness check.
GL-03 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 — CHART OF ACCOUNTS DIAGNOSTIC
════════════════════════════════════════════════════════════
Ledger ID : 101 — US Primary Ledger
Value Set : US_NATURAL_ACCOUNT
Case Number : GL-504180
Report Date : 21-FEB-2026 10:05:22
════════════════════════════════════════════════════════════
[ SECTION 1 — DISABLED CCID CROSS-REFERENCE ] STATUS: ✗ FAIL
────────────────────────────────────────────────────────────
CCID 88432 : 01-500-7810-0000 — DISABLED 01-JAN-2026
AP Distributions : 22 open distributions ✗
AR Distributions : 14 open distributions ✗
PO Distributions : 6 open distributions ✗
FA Distribution : 3 active FA lines ✗
PA Expenditures : 2 open cost lines ✗
✗ FAIL: CCID 88432 disabled but referenced in 47 open transactions
[ SECTION 2 — SUMMARY ACCOUNT MISUSE ] STATUS: ✗ FAIL
────────────────────────────────────────────────────────────
CCID 91100 : 01-000-7000-0000 — SUMMARY account
GL_INTERFACE Lines : 3 lines referencing summary account ✗
✗ FAIL: Summary account 01-000-7000-0000 used in GL_INTERFACE
[ SECTION 3 — CROSS-VALIDATION RULES ] STATUS: ✓ PASS
────────────────────────────────────────────────────────────
No CVR violations detected ✓
[ SECTION 4 — ORPHANED CCIDs ] STATUS: ⚠ ADVISORY
────────────────────────────────────────────────────────────
⚠ 184 CCIDs with no transactions in 24 months — eligible for cleanup
════════════════════════════════════════════════════════════
DIAGNOSTIC SUMMARY
════════════════════════════════════════════════════════════
2 blocking conditions: disabled CCID in 47 transactions, summary account misuse
Recommended: Re-enable CCID 88432 or remap 47 transactions to CCID 99105
════════════════════════════════════════════════════════════
Every table touched by GL-03 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 GL-03 execution — written from actual run output. No manual documentation required.
Multiple modules have open transactions referencing CCIDs disabled after entry. GL-03 provides a consolidated cross-module view with the module, document, and remap guidance.
A summary account CCID is used as a distribution account — will fail posting. GL-03 identifies the transaction, the summary CCID, and the correct detail account replacement.
A segment combination violates a CVR — GL will reject the journal on import. GL-03 identifies the violated rule, the invalid combination, and the correction path.
High count of unused combinations over 36 months — indicating COA sprawl. GL-03 provides a safe-to-disable list with zero-balance verification.
| Table / View | Schema | Purpose in Diagnostic |
|---|---|---|
| GL_CODE_COMBINATIONS | GL | CCID enabled flag, account type, segments |
| AP_INVOICE_DISTRIBUTIONS_ALL | AP | Open AP distributions referencing CCIDs |
| PO_DISTRIBUTIONS_ALL | PO | Open PO distributions referencing CCIDs |
| RA_CUST_TRX_LINE_GL_DIST_ALL | AR | Open AR distributions |
| FA_DISTRIBUTION_HISTORY | FA | Active asset distributions |
| GL_CROSS_VALIDATION_RULES | GL | Active CVR definitions |
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 |
|---|---|---|
| Disabled CCID referenced in open AP distributions | Direct Fix | GL-03 identifies each AP_INVOICE_DISTRIBUTIONS_ALL record referencing the disabled CCID and generates the DIST_CODE_COMBINATION_ID remap to the replacement CCID with full backup. |
| Disabled CCID referenced in open AR distributions | Direct Fix | GL-03 identifies each RA_CUST_TRX_LINE_GL_DIST_ALL record and generates the CODE_COMBINATION_ID remap with full backup. AR transaction revalidation required after remap. |
| Disabled CCID referenced in PO distributions | Direct Fix | GL-03 identifies PO_DISTRIBUTIONS_ALL records and generates the CODE_COMBINATION_ID remap with full backup. PO re-approval may be required depending on the PO status. |
| Disabled CCID referenced in FA distribution history | Direct Fix | GL-03 identifies FA_DISTRIBUTION_HISTORY records and generates the CODE_COMBINATION_ID remap with full backup. FA journal re-creation required after remap. |
| Summary account misuse in GL_INTERFACE or distributions | Direct Fix | GL-03 identifies the summary account CCID and the correct detail account. Remaps interface records or distributions to the detail account with full backup. |
| Cross-validation rule violation in existing combination | Functional First | CVR violations in existing combinations indicate the CVR was added after the combination was created. Correct via GL > Setup > Accounts > Cross-Validation Rules. GL-03 identifies the specific segment combination and the violated rule. |
| Orphaned CCIDs — no transactions in 24+ months | Functional First | GL-03 generates a list of orphaned CCIDs safe for cleanup — no open transactions, no active budget lines, no active AutoAccounting references. Disablement via GL > Accounting Flexfield setup after review. |
| Account type mismatch — revenue account flagged as asset | Direct Fix | GL-03 identifies CCIDs where the account type in FND_SEGMENT_ATTRIBUTE_VALUES does not match the natural account segment range. Corrects the account type qualifier with full backup. |
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 |
|---|---|---|
| 120glug.pdf | Oracle General Ledger User's Guide — Account Setup | Accounting flexfield structure, segment values, cross-validation rules, summary accounts |
| 120glug.pdf | Oracle General Ledger User's Guide — Ledgers | Ledger definition, accounting calendars, currencies, and account generator setup |
| 120funmo.pdf | Oracle Applications Multiple Organizations Implementation Guide | pp. 2-7 to 2-10: Legal entity and ledger assignment for COA governance |
GL-03 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 →