| Case Number | 00056785 |
| Oracle Module | Accounts Receivable (AR) |
| EBS Version | R12 / 11.5.10.2 |
| Functional Area | AR to GL Transfer / Posting Control |
| Related Patches | None |
posting_control_id and gl_posted_date pointing to the failed transfer run, but the corresponding GL journal entries were not created.An AR to GL Transfer concurrent program run updated the posting_control_id and gl_posted_date columns on AR transaction records to mark them as transferred, but the corresponding GL journal entries were not successfully created (due to a program error, timeout, or abort). The AR records are now stuck in a posted state for the failed posting control ID. Resetting these columns to their unposted values (NULL / -3) allows the GL Transfer to be resubmitted.
The script first produces a summary report of all AR records affected by the failed posting control ID, grouped by transaction type (Cash Receipts, Receivable Applications, Adjustments, Misc Cash, Transaction History), showing total debit and credit amounts per type.
Run data_fix.sql. Backup tables are created for all affected rows in:
AR_CASH_RECEIPT_HISTORY_ALLAR_RECEIVABLE_APPLICATIONS_ALLAR_ADJUSTMENTS_ALLAR_MISC_CASH_DISTRIBUTIONS_ALLAR_TRANSACTION_HISTORY_ALLFor each affected transaction type, the script iterates through records matching the failed posting_control_id and resets:
gl_posted_date = NULLposting_control_date = -3 (the Oracle AR standard value for unposted)last_updated_by and last_update_date stamped for auditThis is performed for all five transaction types in sequence.
The script issues COMMIT after processing all record types and produces a summary of records updated by type. Resubmit the AR to GL Transfer program for the affected period.
last_updated_by = -999 for audit identification. Verify the correct posting_control_id before running.
| File | Description |
|---|---|
| data_fix.sql | PL/SQL anonymous block script. Creates backups for all five AR transaction types; resets gl_posted_date and posting_control_date to unposted state (-3/NULL) across AR_CASH_RECEIPT_HISTORY_ALL, AR_RECEIVABLE_APPLICATIONS_ALL, AR_ADJUSTMENTS_ALL, AR_MISC_CASH_DISTRIBUTIONS_ALL, and AR_TRANSACTION_HISTORY_ALL for the failed posting control ID. Produces spooled output with record counts. |
| Table | Action |
|---|---|
| AR_CASH_RECEIPT_HISTORY_ALL | Reset gl_posted_date to NULL, posting_control_date to -3 |
| AR_RECEIVABLE_APPLICATIONS_ALL | Reset gl_posted_date to NULL, posting_control_date to -3 |
| AR_ADJUSTMENTS_ALL | Reset gl_posted_date to NULL, posting_control_date to -3 |
| AR_MISC_CASH_DISTRIBUTIONS_ALL | Reset gl_posted_date to NULL, posting_control_date to -3 |
| AR_TRANSACTION_HISTORY_ALL | Reset gl_posted_date to NULL, posting_control_date to -3 |