← Back to Cases
AP Payment XLA Events Reset and Manual GL Transfer with Sequential Numbering Profile Fix
Case Number00149428
Oracle ModuleAccounts Payable (AP) / Subledger Accounting (XLA) / General Ledger (GL)
EBS VersionR12
Functional AreaPayment Processing / XLA Accounting / GL Transfer / Sequential Numbering
Related PatchesNone

Symptoms

Root Cause

AP payment XLA accounting events were generated and accounted (producing XLA_AE_HEADERS and XLA_AE_LINES records), but GL transfer failed — likely because the Sequential Numbering profile option was set to Always Used for the GL responsibility, causing the journal import to fail when a sequence could not be allocated. The XLA accounting entries remained behind in an incomplete transfer state. The fix resets the XLA event status to allow re-accounting, then manually inserts GL_INTERFACE rows from the XLA lines for the affected AE headers, marks those headers as GL-transferred, and imports and posts the correcting batch, then closes the period.

Resolution

Step 1 – Create backup tables

Run data_fix.txt. Backup tables are created for:

Step 2 – Reset posted flags and XLA event status

Update AP_INVOICE_PAYMENTS_ALL to set ACCRUAL_POSTED_FLAG = 'N' for the affected event IDs. Update AP_PAYMENT_HISTORY_ALL to set POSTED_FLAG = 'N'. Update XLA_EVENTS to set EVENT_STATUS_CODE = 'U' and PROCESS_STATUS_CODE = 'U' (unprocessed) for the affected event IDs.

Step 3 – Delete XLA accounting entries for the affected events

Delete from XLA_AE_HEADERS, XLA_AE_LINES, XLA_DISTRIBUTION_LINKS, and XLA_ACCOUNTING_ERRORS for the affected event IDs. Commit.

Step 4 – Run Create Accounting

Re-run the Create Accounting process for the affected period. This regenerates the XLA_AE_HEADERS and XLA_AE_LINES records for the reset events.

Step 5 – Disable Sequential Numbering profile

Temporarily change the Sequential Numbering profile option to Not Used for the GL SuperUser responsibility associated with the affected ledger. This allows GL Journal Import to proceed without requiring a sequence number.

Step 6 – Insert GL Interface entries from XLA lines

Insert rows into GL_INTERFACE by selecting from XLA_AE_LINES joined to XLA_AE_HEADERS for the specific ae_header_id values produced by Create Accounting. Use STATUS = 'NEW', the correct ledger_id, period_name, and an appropriate group_id for the import batch. Set reference1 to identify the batch (e.g., case reference).

Step 7 – Mark XLA AE headers as GL-transferred

Back up the affected XLA_AE_HEADERS rows (second backup for the new headers), then update XLA_AE_HEADERS.GL_TRANSFER_STATUS_CODE = 'Y' for the same ae_header_id values. Commit.

Step 8 – Run GL Journal Import and post

Run GL Journal Import for the group_id used in Step 6 to create the correcting journal batch. Post the resulting journal to the affected period.

Step 9 – Re-enable Sequential Numbering profile

Restore the Sequential Numbering profile option to Always Used for the GL SuperUser responsibility.

Step 10 – Close the period

Close the affected period in AP, then close it in GL.

Note: The Sequential Numbering profile option must be temporarily disabled only for the duration of the GL Journal Import step. Restore it immediately after the import completes. The GL Interface insert in Step 6 targets specific ae_header_id values generated by Create Accounting in Step 4 — verify the correct header IDs before running the insert. This fix script is delivered as a .txt file containing step-by-step SQL and procedural instructions.

Script Inventory

FileDescription
data_fix.txtStep-by-step fix instructions (not a standalone executable script). Covers: backup creation; reset of ACCRUAL_POSTED_FLAG, POSTED_FLAG, and XLA event status; deletion of XLA AE headers/lines/links/errors; manual GL_INTERFACE insert from XLA lines; XLA_AE_HEADERS GL transfer status update; Sequential Numbering profile change steps; GL Import and posting instructions.

Key Tables Affected

TableAction
AP_INVOICE_PAYMENTS_ALLUpdate ACCRUAL_POSTED_FLAG to 'N'
AP_PAYMENT_HISTORY_ALLUpdate POSTED_FLAG to 'N'
XLA_EVENTSUpdate EVENT_STATUS_CODE and PROCESS_STATUS_CODE to 'U'
XLA_AE_HEADERSDelete (pre-re-accounting); update GL_TRANSFER_STATUS_CODE to 'Y' (post-re-accounting)
XLA_AE_LINESDelete (pre-re-accounting); source for GL_INTERFACE insert
XLA_DISTRIBUTION_LINKSDelete
XLA_ACCOUNTING_ERRORSDelete
GL_INTERFACEInsert correcting journal entries for GL Import