← Back to Cases
AP Payment XLA Gain/Loss Accounting Lines Entered Amount Incorrect
Case Number00026526
Oracle ModuleAccounts Payable (AP) / Subledger Accounting (XLA)
EBS VersionR12
Functional AreaPayment Processing / XLA Accounting / Gain/Loss Rounding
Related PatchesNone

Symptoms

Root Cause

XLA payment accounting events were created with incorrect entered debit or credit amounts on the gain/loss rounding lines. The unrounded_entered_dr / unrounded_entered_cr values in both XLA_AE_LINES and XLA_DISTRIBUTION_LINKS do not match what the accounting engine computed, causing XLA accounting errors. The fix applies the correct entered amounts directly to the affected AE lines and distribution links, marks the events as processed and the AE headers as Final, and clears the accounting errors so the payments can be re-accounted and transferred.

Resolution

Step 1 – Create backup tables

Run data_fix.txt. Backup tables are created for:

Step 2 – Mark XLA events as processed and AE headers as Final

Update XLA_EVENTS to set PROCESS_STATUS_CODE = 'P' and EVENT_STATUS_CODE = 'P' for the affected event IDs. Update XLA_AE_HEADERS to set ACCOUNTING_ENTRY_STATUS_CODE = 'F' (Final) for the affected AE header IDs.

Step 3 – Correct entered amounts on XLA AE lines

For each affected AE header, update XLA_AE_LINES to set the correct entered_dr and unrounded_entered_dr (or entered_cr and unrounded_entered_cr for GAIN lines) on the line with the specific gain/loss CCID. The correct amounts differ per AE header pair.

Step 4 – Correct unrounded amounts on XLA distribution links

For each affected AE header, update XLA_DISTRIBUTION_LINKS to set the correct unrounded_entered_dr or unrounded_entered_cr for LOSS or GAIN rounding class rows respectively.

Step 5 – Delete XLA accounting errors

Delete from XLA_ACCOUNTING_ERRORS for all affected accounting error IDs. Commit.

Step 6 – Re-run Create Accounting and transfer to GL

Re-submit Create Accounting for payments. Verify no payments appear on the Create Accounting error report. Transfer the corrected accounting to GL and post.

Note: This fix script is delivered as a .txt file. The correct entered amounts for each AE header pair must be determined by analyzing the original payment and exchange rate data before running the fix. After applying the fix, validate that the entered amounts equal the accounted amounts (no currency conversion discrepancy) for the affected payment AE lines.

Script Inventory

FileDescription
data_fix.txtStep-by-step fix instructions. Creates backups; marks XLA_EVENTS as processed and XLA_AE_HEADERS as Final; updates entered_dr/cr and unrounded amounts on XLA_AE_LINES for GAIN/LOSS gain-loss lines across multiple AE header pairs; updates XLA_DISTRIBUTION_LINKS unrounded amounts; deletes XLA_ACCOUNTING_ERRORS. Includes post-fix validation query and Create Accounting re-submission instructions.

Key Tables Affected

TableAction
XLA_EVENTSUpdate PROCESS_STATUS_CODE and EVENT_STATUS_CODE to 'P'
XLA_AE_HEADERSUpdate ACCOUNTING_ENTRY_STATUS_CODE to 'F' (Final)
XLA_AE_LINESUpdate entered_dr/cr and unrounded_entered_dr/cr for gain/loss CCID rows
XLA_DISTRIBUTION_LINKSUpdate unrounded_entered_dr/cr for GAIN/LOSS rounding class rows
XLA_ACCOUNTING_ERRORSDelete error records