Informatica Cloud Mapping Tutorial for Beginners
In the last couple of articles we discussed the basics of Informatica Cloud and Informatica Cloud Designer. In this tutorial we describe how to create a basic mapping, save and validate the mapping, and create a mapping configuration task. The demo mapping reads and writes data sources, also include the parameterization technique.

The mapping we create here reads source data, filters out unwanted data, and writes data to the target. The mapping also includes parameters for the source connection and filter value. For this tutorial, you can use a sample Account source file available in the Informatica Cloud Community. You can download the sample source file from the following link Sample Source File for the Mapping Tutorial.

Step 1. Mapping Creation and Source Configuration

The following procedure describes how to create a new mapping and configure the sample Account flat file as the source.
  1. To create a mapping, click Design > Mappings > New Mapping
  2. Informatica Cloud Mapping Tutorial for Beginners
  3. In the New Mapping dialog box, enter a name for the mapping: Account_by_State. You can use underscores in mapping and transformation names, but do not use other special characters. 
  4. Informatica Cloud Mapping Tutorial for Beginners
  5. To add a source to the mapping, on the Transformation Palette, click Source
  6. Informatica Cloud Mapping Tutorial for Beginners
  7. In the Properties Panel, on the General tab, enter a name for the source: FF_Account. 
  8. On the Source tab, configure the following properties:
    • Connection :- Source connection. Select the flat file connection for the sample Account source file. Or, create a new flat file connection for the sample source file.
    • Source Type :- Source type. Select Object.
    • Object :- Source object. Select the sample Account source file. To preview source data, click Preview Data.
  9. To view source fields and field metadata, click the Fields tab.
  10. Informatica Cloud Mapping Tutorial for Beginners
  11. To save the mapping and continue, on the toolbar, click Save > Save and Continue.

Step 2. Filter Creation and Field Rule Configuration

In the following procedure, you add a Filter transformation to the data flow and define a parameter for the value in the filter condition. When you use a parameter for the value of the filter condition, you can define the filter value that you want to use when you configure the task. And you can create a different task for the data for each state.

The sample Account source file includes a State field. When you use the State field in the filter condition, you can write data to the target by state. For example, when you use State = MD as the condition, you include accounts based in Maryland in the data flow.
  1. To add a Filter transformation, on the Transformation palette, drag a Filter transformation to the mapping canvas. 
  2. To link the Filter transformation to the data flow, draw a link from the FF_Account source to the Filter transformation. When you link transformations, the downstream transformation inherits fields from the previous transformation. 
  3. To configure the Filter transformation, select the Filter transformation on the mapping canvas. 
  4. To name the Filter transformation, in the Properties panel, click General and enter the name: Filter_by_State. 
  5. image
  6. To configure field rules, click Incoming Fields. Field rules define the fields that enter the transformation and how they are named. By default, all available fields are included in the transformation. Since we want to use all fields, do not configure additional field rules. 
  7. image
  8. To configure the filter condition, click Filter
    1. To create a simple filter with a parameter for the value, for Filter Condition, select Simple
    2. Click Add New Filter Condition
    3. For Field Name, select State, and use Equals as the operator. 
    4. For Value, select New Parameter
    5. image
    6. In the New Parameter dialog box, configure the following options and click OK
      1. Name: FConditionValue 
      2. Display Label: Filter Value for State 
      3. Description: Enter the two-character state name for the data you want to use. 
      4. Default Value: MD. Notice, you can only create a string parameter in this location. 
      5. image
  9. To save your changes, click Save > Save and Continue.

Step 3. Target and Source Parameter Configuration

In the following procedure, you configure the target, then replace the source connection with a parameter.

Because you plan to parametrize the source, you also need to use a parameter for the field mapping.
  1. To add a Target transformation, on the Transformation palette, drag a Target transformation to the mapping canvas. 
  2. To link the Target transformation to the data flow, draw a link from the Filter transformation to the Target transformation. 
  3. Click the Target tab and configure the following properties:
    1. Connection :- Target connection. Select a connection for the target. Or, create a new connection to the target. Target Type :- Target type. Select Object. 
    2. Object :- Target object. Select an appropriate target. 
    3. Operation :- Target operation. Select Insert.
    4. Informatica Cloud Mapping Tutorial for Beginners
  4. To configure the field mapping, click Field Mapping
  5. To map some fields and allow the remaining fields to be mapped in the task, configure the Field Map Option for Partially Parametrized
  6. image
  7. Create a New Parameter and configure the following properties.
    1. Name: PartialFieldMapping. 
    2. Display Label: Partial Field Mapping. 
    3. Select Allow partial mapping override. This allows you to view and edit mapped fields in the task. When want to prevent the task developer from changing field mappings configured in the mapping, clear this option.
    4. Informatica Cloud Mapping Tutorial for Beginners
  8. Map the fields that you want to show as mapped in the task. 
  9. Click Save > Save and Continue
  10. To edit the source to add a parameter for the source connection, click the FF_Account Source transformation, and then click the Source tab. 
  11. For Connection, click New Parameter
  12. In the New Parameter dialog box, configure the following parameter properties.
    1. Name: SourceConnection. 
    2. Display Label: Sample Flat File. 
    3. Description: Select the connection to the sample file.
    4. Informatica Cloud Mapping Tutorial for Beginners
Below shown is the completed mapping.
image

Step 4. Mapping Validation and Task Creation

In the following procedure, you save and validate the mapping. And you create a mapping configuration task based on the mapping.
  1. To validate the mapping, click Save > Save and Continue
    • When you save the mapping, the Mapping Designer validates the mapping. The mapping is valid when the Status in the status area shows Valid. 
    • If the status is Invalid, in the toolbar, click the Validation icon. In the Validation panel, click Validate. 
    • Informatica Cloud Mapping Tutorial for Beginners
    • The Validation panel lists the transformations in the mapping and the mapping status. The mapping should be valid. If errors display, correct the errors. Click Validate to verify that errors are corrected. 
    • Informatica Cloud Mapping Tutorial for Beginners
  2. To create a task based on the mapping, click Save > Save and New Mapping Configuration Task. The Mapping Configuration Task wizard launches as shown below. 
  3. Informatica Cloud Mapping Tutorial for Beginners
  4. On the Definition page, enter a name for the task: Mapping Tutorial and give your Secure Agent. Notice, the task uses the mapping that you just completed. 
  5. Informatica Cloud Mapping Tutorial for Beginners
  6. Click Next. On the Sources page, the source parameter displays. Notice, the tool tip for the connection displays the parameter description. For Sample Flat File, select the source connection to the sample file, and click Next
  7. Informatica Cloud Mapping Tutorial for Beginners
    • Notice, the Targets page does not display because the target connection and object is defined in the mapping. 
    • The Other Parameters page displays the remaining parameters for the mapping. 
  8. In the Partial Field Mapping parameter, map the target fields that you want to use. 
  9. Informatica Cloud Mapping Tutorial for Beginners
    • Note that because you allowed partial mapping override, the Target Fields list displays all fields. You can keep or remove the existing links. 
  10. For the Filter Value for State parameter, delete the default value, MD, and enter TX. 
  11. image
  12. To save and close the task, click Save > Save and Close.
In the next step you can schedule the mapping on a predefined schedule. Hope you guys enjoyed this article. We are curious to know about your feedback.

Share with your friends

Readers Comments