Informatica Developers Handbook Interfaces
Informatica Developers Handbook Interfaces
INTERNAL
Informatica Architecture
CommonLE Integration Design
Table of Contents
TABLE OF CONTENTS................................................................................................................................... 2
1 BACKGROUND............................................................................................................................................ 4
1.1 PURPOSE................................................................................................................................................. 4
1.2 INTENDED AUDIENCE................................................................................................................................. 4
2 DETAILED ETL PROCEDURES................................................................................................................... 5
2.1 INFORMATICA ETL INTERFACE STRATEGIES................................................................................................ 5
2.1.1 Interface Patterns............................................................................................................................ 5
2.1.1.1 Detailed Logical Architecture.......................................................................................................................5
2.2 INFORMATICA ERROR LOGGING AND EXCEPTION HANDLING........................................................................6
2.2.1 Informatica Standard Task Level Error Logging...............................................................................6
2.2.2 Informatica Row Level Error Logging...............................................................................................6
2.3 INFORMATICA FMS FILE TRANSFER........................................................................................................... 7
2.3.1 Informatica FMS Design.................................................................................................................. 7
2.3.2 FMS File Parameters....................................................................................................................... 8
2.3.3 FMS_FILE_PARAMETERS Table Structure..................................................................................10
2.3.4 FMS Mapping template.................................................................................................................. 11
3 INFORMATICA STANDARDS..................................................................................................................... 15
3.1 WORKFLOW DEVELOPMENT..................................................................................................................... 15
3.2 CODE NAMING STANDARDS..................................................................................................................... 15
3.2.1 Code Comments............................................................................................................................ 15
3.2.2 Transformation Naming Standards................................................................................................ 15
3.2.3 Informatica Code Object Naming Standards.................................................................................17
3.2.4 Port Variable Naming Standards................................................................................................... 18
3.3 CONNECTION CONFIGURATION STANDARDS.............................................................................................. 18
3.4 GENERAL BEST PRACTICES..................................................................................................................... 19
3.4.1 Log File Names.............................................................................................................................. 19
3.4.2 Session Development Standards................................................................................................... 19
3.4.3 Lookup Transformations................................................................................................................ 19
3.5 INFORMATICA MIDDLEWARE ENVIRONMENT STANDARDS............................................................................19
3.5.1 Infromatica Directory Structures.................................................................................................... 19
3.5.2 FMS Directory Structure on Informatica Server.............................................................................19
3.5.3 FMS Control File Names............................................................................................................... 19
3.5.4 Informatica Flat File Naming Standard.......................................................................................... 20
3.5.5 Informatica Middleware Staging Table Naming Standards............................................................20
3.6 CONTROL-M EXECUTION OF WORKFLOWS............................................................................................... 21
4 BUILD AND UNIT TEST ACTIVITIES......................................................................................................... 23
4.1 POWERCENTER DESIGNER TASKS........................................................................................................... 23
4.2 POWERCENTER WORKFLOW MANAGER TASKS......................................................................................... 23
4.3 MAPPING PARAMETERS FOR SESSIONS.................................................................................................... 26
4.4 BUILD COMPLETION AND NEXT STEPS..................................................................................................... 29
4.4.1 String / Assembly Testing............................................................................................................... 29
4.4.2 Migration to QA, UAT, and PROD.................................................................................................. 29
APPENDIX A: STEP-BY-STEP APPLICATION OF CODE TEMPLATE TO CORE PROCESSES................30
APPENDIX B: ACCESSING COMMONLE LOGS......................................................................................... 33
APPENDIX C: STEP-BY-STEP INSTRUCTIONS – IMPLEMENTING FMS MAPPING TEMPLATE.............38
APPENDIX D: IMPLEMENTING RECORD-LEVEL EXCEPTION LOGGING INTO CORE PROCESSES....39
Appendix E: Implementing Record-Level Audit Logging into Core Processes................................................42
INTERNAL
Informatica Architecture
CommonLE Integration Design
1 Background
1.1 Purpose
This document has been created to provide a more detailed understanding of the ETL patterns and the usage of
Informatica as it related to Project OneUP. This document should be leveraged during the technical design and build
phases of the development effort. This document is NOT static. As architecture patterns evolve and new best practices
are introduced and implemented, the pages that follow will be updated to reflect these changes.
INTERNAL
Informatica Architecture
CommonLE Integration Design
2. Source data is extracted via the specific source extract strategy defined for the interface.
b. Data is staged within the middleware database to support multiple requirements for the source data.
3. Data is transformed via the ETL tool into the target-specific format(s).
INTERNAL
Informatica Architecture
CommonLE Integration Design
6. Data is loaded to the target application based upon the format specified.
8. Error handling will be triggered based upon the status of preceding steps.
This interface pattern does not require use of the middleware database. The middleware database (labeled “Batch Data
Store”) in Step 2 is utilized to accomplish any one of the following requirements of the business process:
Multiple passes through each received data set (for example, if source data is sent only once and
multiple mappings will require this information, it is best to store the data within a database to facilitate
one process to receive data and multiple process to load data)
Error handling
As an alternative to the exception patterns, verbose logging within Infomatica can be utilized. Keep in mind verbose
logging within the Informatica session can greatly reduce performance of the session run. When configuring sessions, a
developer has multiple options for error handling, error logging, and traceability levels. When an error occurs at the
transformation level (per row/record), the PowerCenter Server logs error information that allows a support team to
determine the cause and source of the error. Row error logging may be captured within a database format or using flat
file structures. For Project OneUP, a decision has been made to use the database format option for row error logging
purposes. The relational database structure will allow the Application Integration team to standardize the format and
content of the error logs and manage this portion of the application within one central location.
In addition to capturing error data based upon the row being processed within transformations, the PowerCenter Server
may also be able to capture the source data associated with the row in a transformation. However, Informatica will be
unable to create a link between the row level error in a transformation and the source record within the source qualifier if
INTERNAL
Informatica Architecture
CommonLE Integration Design
the error occurs after an active source. An active source within Informatica is defined as an active transformation used to
generate rows. Here is a list of the following transformations that are classified as active:
- Aggregator
- Application Source Qualifier
- Custom, configured as an active transformation (It has been assumed that SAP custom
transformations fall into this category as well)
- Joiner
- MQ Source Qualifier
- Normalizer (VSAM or pipeline)
- Rank
- Sorter
- Source Qualifier
- XML Source Qualifier
- Mapplet, if it contains any of the above active transformations
By default, the PowerCenter Server will log all transformation errors within the session log file and all rejected target
records into the reject or bad file. When row error logging has been enabled, all such information is now filtered to the
error log database/flat file structures. If the architecture landscape determines that all errors should reside in the error
logging structures and the standard session log and reject/bad file, then the configuration should include enabling
Verbose Data Tracing. All of this additional logging may negatively impact the performance of sessions and workflows
being executed on the PowerCenter server, as data are being processed on a row-by-row basis instead of a block of
records at once.
INTERNAL
Informatica Architecture
CommonLE Integration Design
3 Informatica Standards
================
Revision History:
================
1.0 – 01/01/2005 - Initial development
In addition to this comment, each of the transformations within a mapping should also have a brief explanation defining
its functionality within the mapping.
Transformation Directory
Name
Sorter $PMRootDir/<release>/Temp
Joiner $PMRootDir/<release>/Cache
Aggregator $PMRootDir/<release>/Cache
INTERNAL
Informatica Architecture
CommonLE Integration Design
Transformation Directory
Name
Lookup $PMRootDir/<release>/Cache
Rank $PMRootDir/<release>/Cache
(ie:
wf_INTFC_ISCP_INVENT_INF
O_BW_I2)
Worklets Wklt_description. Worklets are objects that represent a set of workflow tasks
that allow you to reuse a set of workflow logic in several
workflows.
Reusable Session rs_description This is a session that may be shared among several
workflow and may execute while another instance of the
same session is running.
Cntrl Task Cntrl_description You can use the Control takes to stop, abort, or fail the top-
level workflow or the parent workflow based on an input
link condition.
Event Task Evnt_description Event-Raise task represents a user-defined event. When
the Informatica Server executes the Event-Raise task, the
Event-Raise task triggers the event. Use the Event-Raise
task with the Event-Wait task to define events.
Each session within the workflow is associated to a mapping. The mapping consists of source, target and transformation
objects. Within each of the source and target objects are connection parameters which are configured at the session
level in Workflow Manger. The connection strings are documented in the QTG2 Informatica Connections List.xls
spreadsheet. This document can be found under the following StarTeam directory: 1UP - Informatica\QTG2\Supplement.
INTERNAL
Informatica Architecture
CommonLE Integration Design
QTG1
INF Dev - phgp0233: /etlapps/dev/71/qtg1/SrcFiles/
/etlapps/dev/71/qtg1/TgtFiles/
INF QA - phgp0232: /etlapps/fit/71/qtg1/SrcFiles/
/etlapps/fit/71/qtg1/TgtFiles/
QTG2
INF Dev - phgp0233: /etlapps/dev/81/qtg2/SrcFiles/
/etlapps/dev/81/qtg2/TgtFiles/
All FMS Control Files should use the following naming standard:
All files brought into or sent from the middleware layer should adhere to the below standard. (Note: This assumes that
FMS will be able to rename files from Source & to Target.)
Example: The ItemSiteMaster file for the ISCP process area, business objects Transportaion Lanes for I2RP would be as
follows:
INTERNAL
Informatica Architecture
CommonLE Integration Design
ISCP_I2RP_TRNLANES_ITEMSITEMASTER.yyyyMMddHHmmss.RDY
All source and target staging tables will consist of a common set of columns not including the data columns required for
each specific interface:
Transaction ID – unique sequence number for each record per interface run.
Timestamp – date\time stamp when the record was inserted into the staging table.
Status – flag to indicate whether the record has been processed, completed failed, etc…
Transaction Name – name of interface
The STATUS field can consist of the following values. Depending on the interface not all STATUS codes will be used.
N – (New) flag indicating that the record has been successfully inserted into the staging DB.
P – (Processing) flag indicating that the middleware application is processing the record.
C – (Complete) flag indicating that the middleware application has successfully processed the record.
F – (Failed) flag indicting that the middleware application has failed to process the record. (Assumption –
depending on interface business rules, failed records will remain in the staging table until successfully
processed).
Table Design:
Name Type Null
TRANSACTION_ID VARCHAR2 No
CREATE_DTM DATE No
STATUS VARCHAR2 No
TRANSACTION_NAME VARCHAR2 No
Table naming standards for a source system loading data into middleware staging are:
<Process Area>_SRC_<Src\Tgt>_<Business_Object>_<Table_Name>
Example: The ItemSiteMaster table for the ISCP process area, business objects Transportaion Lanes from BW would be
as follows:
ISCP_SRC_BW_TRNLANES_ITEMSITEMASTER
The same applies to the middleware application needing to load data into the middleware staging before sending to the
target system.
<Process Area>_TGT_<Src\Tgt>_<Business_Object>_<Table_Name>
Example: The ItemSiteMaster table for the ISCP process area, business objects Transportaion Lanes to I2RP would be
as follows:
ISCP_TGT_I2RP_TRNLANES_ITEMSITEMASTER
INTERNAL
Informatica Architecture
CommonLE Integration Design
#!/bin/sh
###############################################################################
## Variables used for commencement of the Project OneUP IDoc Listener Workflow
###############################################################################
###########################################
## Creating Variables for Execution ##
## USERNAME, PASSWORD, and INFORMAT_PORT ##
###########################################
. //schedapps/p1up/env_p1up_batch.sh
. //schedapps/p1up/env_p1up_batch_qtg2.sh – for QTG2 and PCNA1 interfaces
###############################################################################
##
## Used to start Project OneUP Informatica Workflow
##
###############################################################################
//schedapps/p1up/start_workflow.sh US_CORP_1UP_QTG1_INTFC wf_INTFC_QTG1_SHARED_IDOC_LISTENER -wait
The yellow highlighted section of the script provides the proper initialization of the environment variables for the
start_workflow.sh script. User name, password, and Informatica port number are set within the env_p1up_batch.sh
script.
The core functionality of these scripts is highlighted in grey. There are two versions of this line, start_workflow.sh and
stop_workflow.sh. In nearly all situations, the start_workflow.sh is used with a wait condition. The only Informatica
component that uses the stop_workflow.sh is the IDoc Listener, which is started without a wait condition.
There are three parameters that are supplied to the start_workflow.sh and stop_workflow.sh scripts: folder name
(highlighted in blue text), workflow name (highlighted in green text), and the wait condition (red text). The wait condition
should be used by most interfaces, as this will allow the workflow to complete prior to sending a return code to Control-M.
This is important because the return code is responsible for communicating success or failure to Control-M and Control-
M uses this return code to dictate execution of subsequent jobs in the group.
There will be a script implemented for each interface. The script name should conform to the following standard:
p1up_qtqg2_<interface name>
To manually start the Informatica workflow with out Control-M, run the start_workflow.sh for that particular interface from
the /schedapps/p1up directory.
INTERNAL
Informatica Architecture
CommonLE Integration Design
Each developer will need to create shortcuts to the following three SHARED mappings from SHARED_US_CORP_1UP
folder:
m_P1UP_SHARED_AUDIT_LOG_BEGIN
m_P1UP_SHARED_AUDIT_LOG_END
m_P1UP_SHARED_ERROR_MESSAGING
DO NOT DIRECTLY COPY THESE MAPPINGS INTO YOUR DEVELOPMENT FOLDER. Shortcuts are required so that
each developer is referencing the latest version of the code. If the mapping changes within the Shared folder, those
changes will be propagated into the developer’s folder as well. Changes may impact the developer’s session and its
ability to execute, but this type of error should not be difficult to resolve with either a Validation of the session or a slight
configuration change.
Screenshot 7.1.1.a
This demonstrates the creation of a SHORTCUT into a developer folder. Notice the shortcut icon on each mapping that
was added.
After the mapping shortcuts have been created in the developer’s folder, the associated sessions can now be copied as
well. The following four sessions will be copied:
s_m_P1UP_SHARED_AUDIT_LOG_BEGIN_SAMPLE
s_m_P1UP_SHARED_AUDIT_LOG_END_SUCCESS_SAMPLE
s_m_P1UP_SHARED_AUDIT_LOG_END_FAILURE_SAMPLE
s_m_P1UP_SHARED_ERROR_MESSAGING_SAMPLE
INTERNAL
Informatica Architecture
CommonLE Integration Design
Screenshot 7.1.2.a
4.) Navigate to the developer’s folder that is currently open and Paste using the Edit menu.
Screenshot 7.1.2.b
INTERNAL
Informatica Architecture
CommonLE Integration Design
5.) Step #4 will generate a new window to emerge called “Copy Wizard”. The Copy Wizard is designed to help
eliminate any conflicts Workflow Manager detects when copying sessions or workflows from one folder to the
next. This wizard should determine that there is a conflict with regards to the session/mapping associations.
For each mapping/session combination, you will need to go through and select the mapping shortcut you
previously created. Screenshot 6.1.2.d demonstrates the resolution of the conflict.
INTERNAL
Informatica Architecture
CommonLE Integration Design
9.) Refer to Section 6.1.3 for sample entries into the parameter files.
This table represents all of the parameters used for the CommonLE audit and error logging mappings and sessions. The
table specifies which units of code utilize the various parameters on the list. It is the developer’s responsibility to
determine the values for their work units and communicate that information to the development leads and the Informatica
architect so that all documentation and code can be kept up-to-date.
INTERNAL
Informatica Architecture
CommonLE Integration Design
INTERNAL
Informatica Architecture
CommonLE Integration Design
INTERNAL
Informatica Architecture
CommonLE Integration Design
INTERNAL
Informatica Architecture
CommonLE Integration Design
1) Create a copy of the following mappings from the SHARED_US_CORP_1UP folder into your current folder:
i) m_P1UP_SHARED_AUDIT_LOG_BEGIN
ii) m_P1UP_SHARED_AUDIT_LOG_END
iii) m_P1UP_SHARED_SUMMARY_ERROR_MESSAGING
iv) m_P1UP_SHARED_INTFC_ERR_LOG_MESSAGING
v) m_P1UP_SHARED_INTFC_AUDIT_LOG_MESSAGING
2) Create a session using the mapping m_P1UP_SHARED_AUDIT_LOG_BEGIN. To save time, create a copy of the
session s_m_P1UP_SHARED_AUDIT_LOG_BEGIN_SAMPLE from folder SHARED_US_CORP_1UP.
3) Rename the session to comply with the following standards for interfaces.
i) s_m_INTFC_[interface_abbreviation]_AUDIT_LOG_BEGIN
4) Double-click the session and click on the Properties tab. Change the session log file name to
your_session_name.log.
5) Click on the Properties Tab of your session. Use the following value for the parameter file setting:
“$PMRootDir/ai/Scripts/US_CORP_1UP_AI_INTFC_begin_audit_parms.txt”.
6) Click on the Mapping Tab. For the target entitled shortcut_to_INFA_INTERFACE_LOG, change the reject file name
to your_session_name.bad.
7) Log into Unix command line for the Informatica server. Modify the parameter file for begin audit logs located in
the //etlapps/dev/71/qtg1/Scripts directory. The file name will be US_CORP_1UP_AI_INTFC_begin_audit_parms.txt.
To add the applicable data, copy and paste the following 8 lines into the parameter file and replace the parameter
values with the values that pertain to your session.
[US_CORP_1UP_QTG1_INTFC.s_m_P1UP_SHARED_AUDIT_LOG_BEGIN_SAMPLE]
$$INTERFACE_NAME=SAMPLE_INTERFACE_NAME
$$APPLICATION_ID=1UP_QTG1_INF_DEV
$$SERVICE_NAME=12345 (Note: This is actually the caliber ID)
$$TRANSACTION_DOMAIN=BUSINESS_OBJECT_NAME
$$APPLICATION_DOMAIN=TARGET_APPLICATION
$$NEXT_SESSION=s_m_INTFC_NEXT_SESSION
$$WORKFLOW_NAME=wf_P1UP_SHARED_INTERFACE_SAMPLE
Please refer to Section 7.1.3 for mapping parameters and parameter files.
8) Create a session using the mapping m_P1UP_SHARED_AUDIT_LOG_END_FAILURE. To save time, you can
copy session s_m_P1UP_SHARED_AUDIT_LOG_END_FAILURE_SAMPLE from folder
SHARED_US_CORP_1UP.
9) Rename the session to comply with the following standards for interfaces.
i) s_m_INTFC_[interface_abbreviation]_AUDIT_LOG_END_FAILURE
10) Double-click the session and click on the Properties tab. Change the session log file name to
your_session_name.log.
11) Click on the Properties Tab of your session. Use the following value for the parameter file setting:
“$PMRootDir/ai/Scripts/US_CORP_1UP_AI_INTFC_end_audit_parms.txt”.
12) Create a session using the mapping m_P1UP_SHARED_AUDIT_LOG_END_SUCCESS. To save time, you can
copy session s_m_P1UP_SHARED_AUDIT_LOG_END_SUCCESS_SAMPLE from folder
SHARED_US_CORP_1UP.
13) Rename the session to comply with the following standards for interfaces.
INTERNAL
Informatica Architecture
CommonLE Integration Design
i) s_m_INTFC_[interface_abbreviation]_AUDIT_LOG_END_SUCCESS
14) Double-click the session and click on the Properties tab. Change the session log file name to
your_session_name.log.
15) Click on the Properties Tab of your session. Use the following value for the parameter file setting:
“$PMRootDir/ai/Scripts/US_CORP_1UP_AI_INTFC_end_audit_parms.txt”.
16) Log into Unix command line for the Informatica server. Modify the parameter file for begin audit logs located in
the //etlapps/dev/71/qtg1/Scripts directory. The file name will be US_CORP_1UP_AI_INTFC_end_audit_parms.txt.
To add the applicable data, copy and paste the following 18 lines into the parameter file and replace the parameter
values with the values that pertain to your session.
[US_CORP_1UP_QTG1_INTFC.s_m_P1UP_SHARED_AUDIT_LOG_END_SUCCESS_SAMPLE]
$$INTERFACE_NAME=TECH_ARCH_TEAM
$$APPLICATION_ID=1UP_QTG1_INF_DEV
$$SERVICE_NAME=99999 (Note: This is actually the caliber ID)
$$TRANSACTION_DOMAIN=TECH_ARCH_DOMAIN
$$APPLICATION_DOMAIN=TGT_TECH_ARCH
$$PREVIOUS_SESSION=s_m_P1UP_TECH_ARCH_SAMPLE
$$WORKFLOW_NAME=wf_P1UP_SHARED_INTERFACE_SAMPLE
$$AUDIT_STATUS=PROCESSED
[US_CORP_1UP_QTG1_INTFC.s_m_P1UP_SHARED_AUDIT_LOG_END_FAILURE_SAMPLE]
$$INTERFACE_NAME=TECH_ARCH_TEAM
$$APPLICATION_ID=1UP_QTG1_INF_DEV
$$SERVICE_NAME=99999 (Note: This is actually the caliber ID)
$$TRANSACTION_DOMAIN=TECH_ARCH_DOMAIN
$$APPLICATION_DOMAIN=TGT_TECH_ARCH
$$PREVIOUS_SESSION=s_m_P1UP_TECH_ARCH_SAMPLE
$$WORKFLOW_NAME=wf_P1UP_SHARED_INTERFACE_SAMPLE
$$AUDIT_STATUS=FAILED
Please refer to Section 7.1.3 for mapping parameters and parameter files.
17) Create a session using the mapping m_P1UP_SHARED_SUMMARY_ERROR_MESSAGING. To save time, create
a copy of the session s_m_P1UP_SHARED_SUMMARY_ERROR_MESSAGING_SAMPLE from folder
SHARED_US_CORP_1UP.
18) Rename the session to comply with the following standards for interfaces.
i) s_m_INTFC_[interface_abbreviation]_SUMMARY_ERROR_MESSAGING
19) Double-click the session and click on the Properties tab. Change the session log file name to
your_session_name.log.
20) Click on the Properties Tab of your session. Use the following value for the parameter file setting:
“$PMRootDir/ai/Scripts/US_CORP_1UP_AI_INTFC_error_parms.txt”.
21) Log into Unix command line for the Informatica server. Modify the parameter file for exception logs located in the
//etlapps/dev/71/qtg1/Scripts directory. The file name will be US_CORP_1UP_AI_INTFC_error_parms.txt. To add
the applicable data, copy and paste the following 8 lines into the parameter file and replace the parameter values
with the values that pertain to your session.
[US_CORP_1UP_QTG1_INTFC.s_m_P1UP_SHARED_ERROR_MESSAGING_SAMPLE]
$$INTERFACE_NAME=SAMPLE_INTERFACE_NAME
$$APPLICATION_ID=1UP_QTG1_INF_DEV
$$SERVICE_NAME=12345 (Note: This is actually the caliber ID)
$$TRANSACTION_DOMAIN=BUSINESS_OBJECT_NAME
$$APPLICATION_DOMAIN=TARGET_APPLICATION
$$SEVERITY_CODE=3 (NOTE: This will be dependent upon the SID definition for the interface)
$$WORKFLOW_NAME=wf_P1UP_SHARED_INTERFACE_SAMPLE
Please refer to Section 7.1.3 for mapping parameters and parameter files.
INTERNAL
Informatica Architecture
CommonLE Integration Design
22) Create a session using the mapping m_P1UP_SHARED_INTFC_ERR_LOG_MESSAGING. To save time, create a
copy of the session s_m_P1UP_SHARED_INTFC_ERR_LOG_MESSAGING_SAMPLE from folder
SHARED_US_CORP_1UP.
23) Rename the session to comply with the following standards for interfaces.
i) s_m_INTFC_[interface_abbreviation]_INTFC_ERR_LOG_MESSAGING
24) Double-click the session and click on the Properties tab. Change the session log file name to
your_session_name.log.
25) Click on the Mapping Tab. For the target entitled INFA_INTERFACE_ERR_LOG1, change the reject file name to
your_session_name.bad.
26) Click on the Properties Tab of your session. Use the following value for the parameter file setting:
“$PMRootDir/ai/Scripts/US_CORP_1UP_AI_INTFC_error_parms.txt”. The same error parameter file will be
leveraged throughout the record-level exception handling components. Copy the lines used for the summary
exception messaging session and reference this new session. Keep these entries close together in case a change
is required.
27) Create a session using the mapping m_P1UP_SHARED_INTFC_AUDIT_LOG_MESSAGING. To save time, create
a copy of the session s_m_P1UP_SHARED_INTFC_AUDIT_LOG_MESSAGING_SAMPLE from folder
SHARED_US_CORP_1UP.
28) Rename the session to comply with the following standards for interfaces.
i) s_m_INTFC_[interface_abbreviation]_INTFC_AUDIT_LOG_MESSAGING
29) Double-click the session and click on the Properties tab. Change the session log file name to
your_session_name.log.
30) Click on the Mapping Tab. For the target entitled INFA_INTERFACE_AUDIT_LOG, change the reject file name to
your_session_name.bad.
31) Click on the Properties Tab of your session. Use the following value for the parameter file setting:
“$PMRootDir/ai/Scripts/US_CORP_1UP_AI_INTFC_begin_audit_parms.txt”. The same audit begin parameters will
be leveraged throughout the record-level audit logging components for this session. Copy the lines used for the
begin audit messaging session and reference this new session. Keep these entries close together in case a change
is required.
32) Within the core processing sessions, add the following entries to the workflow parameter file located at:
“$PMRootDir/ai/Scripts/US_CORP_1UP_AI_INTFC_workflow_parms.txt”.
[US_CORP_1UP_AI_INTFC.s_m_P1UP_SHARED_INTFC_AUDIT_LOG_MESSAGING_SAMPLE]
$$INTERFACE_NAME=SAMPLE_INTERFACE_NAME
Shortcut_to_mplt_Process_Audit_Logs.$$AUDIT_LOGGING_SWITCH=ON
INTERNAL
Informatica Architecture
CommonLE Integration Design
The following steps outline the process to login to the CommonLE front-end application to view Informatica log entries.
1) The logs and errors are viewed via a web browser, Use the following link for the development environment:
http://wlsite4.corp.pep.pvt:7229/1UPPepsiCSD/gologin.do
INTERNAL
Informatica Architecture
CommonLE Integration Design
4) Click View Logs and choose Application. You may use the other fields to narrow the search. Click the Submit button.
INTERNAL
Informatica Architecture
CommonLE Integration Design
INTERNAL
Informatica Architecture
CommonLE Integration Design
6) The details of that specific log will be displayed at the bottom of the page.
INTERNAL
Informatica Architecture
CommonLE Integration Design
1)
INTERNAL
Informatica Architecture
CommonLE Integration Design
procedures.
in_TRANS_OUTPUT_DATA All output values from a failed Concatenated value defined
transformation should be within the mapplet-calling
concatenated and mapped to this mapping.
port of the mapplet.
in_ERR_CODE This provides a standard Constant value matching the
exception code for a given error in exact type and case from the
an interface. The error message table below
is derived from this value.
in_ERR_BUSINESS_ID This identifies each source record Concatenated value defined
as a unique occurrence. It is very within the mapplet-calling
possible that more than one field mapping
is required for a unique business
id. Each SID document should
articulate in detail the exact
business id for a given interface.
in_ERR_TIMESTAMP The time of occurrence for an SYSDATE defined within the
exception mapplet-calling mapping.
Error Codes
This section will contain a table of all of the acceptable error messages to be logged into the
INFA_INTERFACE_ERR_LOG table. Emphasis must be placed upon using the proper messages when logging to this
table.
INTERNAL
Informatica Architecture
CommonLE Integration Design
INTERFACE_NAME
MAPPING_NAME
AUDIT_BUSINESS_ID
AUDIT_TIMESTAMP
The outputs of this transformation will link directly to the target table, INFA_INTERFACE_AUDIT_LOG. Using the
AutoLink feature of Informatica, the output from the mapplet transformation will automatically link or port to the target
table’s columns. During session creation, assign SAPEAI as the connection for this target table.
Within each mapping, there are two main parameters that need to be defined: $$INTERFACE_NAME set via the
parameter file and $$MAPPING_NAME that can be defaulted within the mapping itself. There is no need to maintain this
value within the parameter file itself. In addition, the mapplet contains a parameter that must be fed from the parameter
file for core processes. This parameter, $$AUDIT_LOGGING_SWITCH, will provide the functionality of controlling audit
INTERNAL
Informatica Architecture
CommonLE Integration Design
logging to the Common Services reporting components. When not configured to the value of ‘ON’, the interface will not
log Business IDs to the INFA_INTERFACE_AUDIT_LOG table and subsequently no messages will be delivered to the
AUDIT queue for Common Services.
For assembly testing purposes, audit logging should always be enabled. The general rule for system test cycles should
be that the AUDIT_LOGGING_SWITCH is set to ‘ON’ unless performance becomes a major issue for successful
completion of the testing phases. Performance of the common components should be thoroughly investigated during
these test intervals. Application Integration architects will assist with any performance issues that emerge from these
common mapplets, mappings, and sessions. Data volumes within the INFA_INTERFACE_AUDIT_LOG table may
become the single largest contributor of performance issues for this reusable component.
INTERNAL