Professional Documents
Culture Documents
Business Requirement:
This PowerCenter Mapping demonstrates how to populate the custom Audit table to track
ETL load summary.
Solution URL:
https://community.informatica.com/solutions/1883
Supported Versions:
PowerCenter 9.1 and 9.5
Description:
Informatica PowerCenter records session information like start time, end time, row statistics
in the repository which can be used for operations report. In some environments it may be
necessary to load custom audit tables as part of the session runs.
In this block a method to load a custom Audit table is implemented for a slowly changing
dimension load with 3 pipelines. For each mapping there is a Pre-load pipeline to insert the
start time. The second pipeline will perform the dimension load. The third pipeline will be
the Post-load mapping updating the status, end time and rows statistics (total source rows,
insert row count, update row count etc.)
as a
mapplet in
Please rate this solution and share your feedback on Marketplace Website.
$$BATCH_ID (parameter) value is specified based on the session grouping, the other
parameters are provided to reinitialize the values of the mapping variables to 0
during each session run which is necessary for this mapping to work.
4. Please view the target load plan of the mapping as shown below.
5.
Please
note
that
the
expression
EXP_AUDIT_COUNT
in
the
main
SQ_Customer_Extract pipeline is used to count the rows and update the mapping
variables
6. Please note that the expression Exp_End_Info in the POST pipeline is used to
retrieve the counts from the mapping variables to be updated into the AUDIT_TABLE.
Please rate this solution and share your feedback on Marketplace Website.
7. Open the workflow in Workflow Manager. Assign the integration service in Workflow > Edit -> Integration Service.
8. Edit session and assign valid connection object for the source and target.
9. For more details of importing object please visit our YouTube link.
10. Execute the workflow and observe the target files. In particular, observe the results
in the AUDIT_TABLE target.
Please rate this solution and share your feedback on Marketplace Website.