| Case Number | 00029785 |
| Oracle Module | Inventory (INV) / General Ledger (GL) |
| EBS Version | R12 / 11i |
| Functional Area | Inventory / Material Accounting / GL Transfer |
| Related Patches | None |
GL_INTERFACE contains rows for the affected group_id from a previous failed transfer attempt that were never successfully imported to GL.MTL_MATERIAL_ACCOUNTS rows for the affected gl_batch_id show a non-negative batch ID, indicating the transfer was attempted but not completed — the records are locked to the failed batch and cannot be re-transferred.An inventory GL Transfer run failed after populating GL_INTERFACE but before completing the GL Journal Import. This left orphaned rows in GL_INTERFACE associated with the failed group_id. The corresponding MTL_MATERIAL_ACCOUNTS records have a positive gl_batch_id stamped from the failed run, which prevents the Transfer to GL process from re-selecting them. Resetting the gl_batch_id to -1 allows the Transfer to GL process to re-pick the transactions, and clearing the GL_INTERFACE rows removes the orphaned data from the previous failed attempt.
Run data_fix.txt. Backup tables are created for:
GL_INTERFACE rows for the affected group_idMTL_MATERIAL_ACCOUNTS rows for the affected gl_batch_idDelete from GL_INTERFACE where group_id = <affected_group_id>. Commit. This removes the orphaned rows from the failed transfer run.
Update MTL_MATERIAL_ACCOUNTS to set gl_batch_id = -1 where gl_batch_id = <affected_gl_batch_id>. Commit. Setting gl_batch_id = -1 is the Oracle convention for "not yet transferred" — the Transfer to GL process selects rows with gl_batch_id = -1.
Resubmit the Inventory Transfer Transactions to GL concurrent program. After the transfer completes, run GL Journal Import for the new group to import the journals, then post the resulting journal batch.
.txt file with a brief action plan. The group_id and gl_batch_id values are bind variables (:1) in the script — substitute the actual values for the failed transfer run before executing. Verify the correct group_id in GL_INTERFACE and gl_batch_id in MTL_MATERIAL_ACCOUNTS before deleting/updating.
| File | Description |
|---|---|
| data_fix.txt | Brief action plan (not a standalone executable script). Creates backups of GL_INTERFACE and MTL_MATERIAL_ACCOUNTS rows; deletes GL_INTERFACE rows for the failed group_id; resets MTL_MATERIAL_ACCOUNTS.gl_batch_id to -1; instructs to resubmit Transfer to GL and GL Journal Import. |
| Table | Action |
|---|---|
| GL_INTERFACE | Delete stuck rows for the failed transfer group_id |
| MTL_MATERIAL_ACCOUNTS | Update gl_batch_id to -1 to reset transfer eligibility |