Hi, I'm Ask INFA!
What would you like to know?
ASK INFAPreview
Please to access Ask INFA.

Table of Contents

Search

  1. Preface
  2. Mappings
  3. Mapping tutorial
  4. Parameters
  5. CLAIRE recommendations

Mappings

Mappings

Step 5. Validate and test the mapping

Step 5. Validate and test the mapping

In this step, you'll validate the mapping and then test run the mapping.
When you save a mapping, the Mapping Designer validates the mapping. You can save a mapping that is not valid. However, you can't run a task that uses a mapping that isn't valid. An example of an invalid mapping is a mapping with a Source or Target transformation that doesn't have a connection, or a mapping that doesn't have Source and Target transformations.
  1. To validate the mapping, click
    Save
    .
    The Mapping Designer validates the mapping. The status of the mapping displays in the header next to the mapping name. The mapping status can be Valid or Invalid.
  2. If the mapping is not valid, perform the following steps:
    1. In the header, click the
      Validation
      icon to open the
      Validation
      panel.
      The
      Validation
      panel shows where the errors occur. For example, in the following image, the Target transformation has an error:
      The Validation panel shows one error for Target transformation "tgt_CustomersByCountry." The cursor hovers over the arrow icon to display the error message, "Object parameter is not specified."
    2. After you correct the errors, save the mapping, and then in the
      Validation
      panel, click
      Refresh
      .
      The
      Validation
      panel updates to list any errors that might still be present.
  3. To test the mapping, click
    Run
    .
    The mapping canvas shows a complete mapping with the Source, Filter, and Target transformations. The Validation panel is open and shows no errors. The Run button is highlighted in the top right corner.
  4. In the wizard, select the Informatica Cloud Hosted Agent as the runtime environment and click
    Next
    .
    In the first page of the wizard, the Runtime Environment is set to "Informatica Cloud Hosted Agent." The wizard also displays the mapping name and an image of the mapping.
    The
    Targets
    page appears because the target is parameterized. If you create a mapping that doesn't include a parameterized target, you won't see the
    Targets
    page.
    The parameter you created for the target object displays on the page with the "Customers for Country" label that you entered when you created the parameter.
    You can select a target object or create a new target object. For this tutorial, you'll create a new target object that will include customers for France.
  5. On the
    Targets
    page, click
    Create Target
    .
    The Target Parameter Details section of the Targets page includes the "Customers for Country" object parameter, where you can select a target object or create a new target. The cursor hovers over the Create Target button to the right of the parameter field.
  6. Enter the object name
    CustomersByCountry_France
    , configure any other properties required by your target connection, and click
    OK
    .
  7. Click
    Next
    .
    The
    Input Parameters
    page appears. In the
    Filter Value for Country
    text box, note that the default value you entered for the filter condition,
    USA
    , displays in the text box.
  8. Change the value from
    USA
    to
    France
    so that the target table will include only customers from France.
  9. Click
    Run
    .
    The
    mapping
    task runs and then returns you to the Mapping Designer.
  10. In the navigation bar, click
    My Jobs
    .
    The
    My Jobs
    page lists all the jobs you've started. At the top, you should see the
    mapping
    task that was created when you ran the mapping, as shown in the following image:
    The My Jobs page includes the instance name, location, job start and end times, number of rows processed, and status of the job.
    The
    My Jobs
    page shows that there were 12 customers from France, which are now in the CustomersByCountry_France target table.
    The CustomersByCountry_France table lists 12 customers that were filtered from the source table using the country value "France."

0 COMMENTS

We’d like to hear from you!