Query to Find GL Interface (Journal Import) Errors in Oracle R12

Journal Import reads GL_INTERFACE and creates journals. Rows that fail stay in the table with an error code in STATUS (rows not yet processed have status NEW, and processed rows are deleted unless you chose to keep them). The query below lists every row whose status is not processed, together with a meaning and description from a lookup, so you can see why it failed.

SQL: rows with Journal Import errors

--gl interface errors
SELECT 
  gl.status error_code, 
  fl.meaning ERROR, 
  fl.DESCRIPTION Error_Desc, 
  gl.* 
FROM 
  apps.gl_interface gl, 
  apps.fnd_lookups fl 
where 
  gl.status = fl.lookup_code(+) 
  and fl.LOOKUP_TYPE(+)= 'PSP_SUSP_AC_ERRORS' 
  and gl.status != 'P';

Notes

  • The lookup used here may not describe every Journal Import code. The Journal Import Execution Report (the request output) lists each error code with its full explanation.
  • Common causes: an invalid or disabled account combination, a closed or never-opened period, an unbalanced journal group, or an invalid currency or conversion rate.
  • Filter on gl.user_je_source_name, gl.group_id or gl.request_id to look at one import.
  • Fix the rows (in the Correct Journal Import Data window or in the source), then run Journal Import again; delete rows you don’t want to import with the Delete Journal Import Data program.

Where are Journal Import errors stored?

In GL_INTERFACE.STATUS for the rejected rows, and in the Journal Import Execution Report produced by the request.

How do I reprocess rejected GL interface rows?

Correct the data in the Correct Journal Import Data window or at the source, then submit Journal Import again for the same source and group ID.

Related queries

Related posts: Upload your own post and refer it anywhere anytime:

Leave a Comment