ETL Error and Audit Log Process Using A
ETL Error and Audit Log Process Using A
EMPTORIS –
USING
INFORMATICA
______________________________________________
Table of Contents
1 DOCUMENT PURPOSE......................................................................................................................... 3
2 ERROR LOG TABLE DETAILS –............................................................................................................... 3
2.1.1 PMERR_DATA..................................................................................................................................3
2.1.2 PMERR_MSG...................................................................................................................................5
2.1.3 PMERR_SESS....................................................................................................................................7
2.1.4 PMERR_TRANS................................................................................................................................8
3 DATA ERROR LOG TABLE DETAILS –...................................................................................................... 9
3.1.1 ETL Data Error Table........................................................................................................................9
4 AUDITING DETAILS -........................................................................................................................... 9
4.1.1 Auditing Log Table...........................................................................................................................9
2 Document Purpose
The Purpose of this document is to understand the Error Handling & Auditing process for
EMPTORIS using Informatica.
Data Error
Examples:
1) Invalid Data
2) Erroneous Data
3) Null data
3 Error Log Table Details –
3.1 PMERR_DATA
When the Integration Service encounters a row error, it inserts an entry into the PMERR_DATA table. This
table stores data and metadata about a transformation row error and its corresponding source row.
D - valid
N - null
T - truncated
B - binary
U - data unavailable
This value can span multiple rows. When the data exceeds
2000 bytes, the Integration Service creates a new row. The
line number for each row error entry is stored in the
LINE_NO column.
SOURCE_ROW_ID Value that the source qualifier assigns to each row it reads. If
the Integration Service cannot identify the row, the value is
-1.
SOURCE_ROW_TYPE Row indicator that tells whether the row was marked for
insert, update, delete, or reject.
0 - Insert
1 - Update
2 - Delete
3 - Reject
D - valid
O - overflow
N - null
T - truncated
B - binary
Column Name Description
U - data unavailable
This value can span multiple rows. When the data exceeds
2000 bytes, the Integration Service creates a new row. The
line number for each row error entry is stored in the
LINE_NO column.
LINE_NO Specifies the line number for each row error entry in
SOURCE_ROW_DATA and TRANS_ROW_DATA that spans
multiple rows.
3.2 PMERR_MSG
When the Integration Service encounters a row error, it inserts an entry into the PMERR_MSG table. This table
stores metadata about the error and the error message.
ERROR_MSG Error message, which can span multiple rows. When the data
exceeds 2000 bytes, the Integration Service creates a new
row. The line number for each row error entry is stored in
the LINE_NO column.
ERROR_TYPE Type of error that occurred. The Integration Service uses the
following values:
1 - Reader error
2 - Writer error
3 - Transformation error
LINE_NO Specifies the line number for each row error entry in
ERROR_MSG that spans multiple rows.
3.3 PMERR_SESS
When you choose relational database error logging, the Integration Service inserts entries into the
PMERR_SESS table. This table stores metadata about the session where an error occurred.
FOLDER_NAME Specifies the folder where the mapping and session are
located.
WORKFLOW_NAME Specifies the workflow that runs the session being logged.
TASK_INST_PATH Fully qualified session name that can span multiple rows. The
Integration Service creates a new line for the session name.
The Integration Service also creates a new line for each
worklet in the qualified session name. For example, you have
a session named WL1.WL2.S1. Each component of the name
appears on a new line:
WL1
WL2
S1
LINE_NO Specifies the line number for each row error entry in
TASK_INST_PATH that spans multiple rows.
3.4 PMERR_TRANS
When the Integration Service encounters a transformation error, it inserts an entry into the PMERR_TRANS
table. This table stores metadata, such as the name and datatype of the source and transformation ports.
The following table describes the structure of the PMERR_TRANS table:
TRANS_ATTR Lists the port names and datatypes of the input or output
group where the error occurred. Port name and datatype
pairs are separated by commas, for example:
portname1:datatype, portname2:datatype.
This value can span multiple rows. When the data exceeds
2000 bytes, the Integration Service creates a new row for the
transformation attributes and writes the line number in the
LINE_NO column.
SOURCE_NAME Name of the source qualifier. n/a appears when a row error
occurs downstream of an active source that is not a source
qualifier or a non pass-through partition point with more
than one partition.
LINE_NO Specifies the line number for each row error entry in
TRANS_ATTR and SOURCE_ATTR that spans multiple rows.
4 Data Error Log Table Details –
Table Description
Error details at the attribute level captured during Informatica ETL execution.
5 Auditing Details -
Table Description
Status information captured for a particular informatica ETL execution.
For Sequence :
create sequence audit_id Increment by 1 Start with 1 ;