← Back to Cases
Inventory GL Interface Rows Stuck — Clear GL Interface and Reset MTL_MATERIAL_ACCOUNTS Batch ID
Case Number00029785
Oracle ModuleInventory (INV) / General Ledger (GL)
EBS VersionR12 / 11i
Functional AreaInventory / Material Accounting / GL Transfer
Related PatchesNone

Symptoms

Root Cause

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.

Resolution

Step 1 – Create backup tables

Run data_fix.txt. Backup tables are created for:

Step 2 – Delete stuck GL Interface rows

Delete from GL_INTERFACE where group_id = <affected_group_id>. Commit. This removes the orphaned rows from the failed transfer run.

Step 3 – Reset MTL_MATERIAL_ACCOUNTS batch ID

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.

Step 4 – Resubmit Transfer to GL and import

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.

Note: This fix script is delivered as a .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.

Script Inventory

FileDescription
data_fix.txtBrief 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.

Key Tables Affected

TableAction
GL_INTERFACEDelete stuck rows for the failed transfer group_id
MTL_MATERIAL_ACCOUNTSUpdate gl_batch_id to -1 to reset transfer eligibility