You are on page 1of 5

Informatica Cloud Services On-Demand Training 1

Informatica

Cloud Services
On-Demand Training

Module 6 Lab Exercises

















2 Informatica Cloud Services On-Demand Training


Module 6 Lab 1: Debugging Task-Level Errors
Scenario:
You need to understand how to debug issues and errors in your Informatica
Cloud tasks.
Goals:
In this lab, you will learn how to debug task-level errors.
Duration:
This lab should take approximately 10 minutes.
Instructions

1. Copy source file.
Copy the file, Debug_ACCOUNT_Data.csv (included in the zip file) to the
c:\ICSLabFiles directory you created for this class.
2. Create a new Data Synchronization task.
1) Click on the Data Services tab.
2) Click the New button.
You will be presented with the six-step wizard.
3. Specify task definition information.
1) Enter Account Debug in the Task Name field.
2) Select Upsert from the Operation menu.
3) Click Next.
4. Specify Source information.
1) Select LocalCSVFiles from the Connection menu.
2) Select Debug_ACCOUNT_Data.csv from the Source Object menu.
3) Click Next.
5. Specify target information.

Informatica Cloud Services On-Demand Training 3
1) Select your Salesforce connection from the Connection menu.
2) Select Account from the Target Object menu.
3) Click Next.
4) Click Next again to skip Step 5, Field Mappings.
6. Define Field Mappings.
1) Map the following fields by dragging them from the source to the target:
Source Field Name Target Field Name
ACCOUNT_NAME Name
AREA_CODE Phone
BILLING_CITY BillingCity
BILLING_COUNTRY BillingCountry
BILLING_POSTALCODE BillingPostalCode
BILLING_STATE BillingState
BILLING_STREET BillingStreet
PHONE_NUMBER Phone

2) Click Save.
7. Open the source file.
1) Open the source file, Debug_Account_Data.csv, in an application like
Excel or Notepad.
2) Do not close the file leave it open for the next few steps.
8. Run the task.
Click the Run Now button in the Actions column to run the task.

When the task has finished, you can view the results in the Activity Log.
What is the error (in the Error Message column)? How might you correct this
error?
9. De-bug and correct the error.
1) Click on the task name, AccountDebug, to view the Job Details window.
2) Review the text in the Recommendation section.
3) Click the task name in the Job Properties section.
4) Click the Edit button to edit the task.
5) Go to the Field Mapping step of the wizard.
6) Map the MARKETING_APP_ID field in the source to the
Account_External_ID_c field in the target.
7) Save the task.
10. Run the task.
Click the Run Now button in the Actions column to run the task.

When the task has finished, you can view the results in the Activity Log.
What is the error (in the Error Message column)? How might you correct this
error?
11. Debug and correct the error.
1) Close the source file.
2) Re-run the task.



4 Informatica Cloud Services On-Demand Training
Module 6 Lab 2: Debugging Row-Level Errors
Scenario:
You need to understand how to debug row-level errors in your Informatica Cloud
tasks.
Goals:
In this lab, you will learn how to debug row-level errors in a task.
Duration:
This lab should take approximately 10 minutes.
Instructions

1. Create a new Data Synchronization task.
1) Copy the task, UpsertContacts.
2) Rename the task Upser t Cont act sEr r or s.
2. Edit task details.
1) On the Source tab, select the source object,
CONTACT_DataErrorRows.csv.
2) Go to the Field Mapping tab and click the Refresh Fields button.
3) Map the EmailBouncedDate in the source to the EmailBouncedDate in the
target.
4) Review the field mappings and ensure they are as follows:
Source Field Name Target Field Name
Account_ID AccountId
Contact_ID Contact_External_ID_c
Email Email
EmailBouncedDate EmailBouncedDate
Fax Fax
First_Name FirstName
Last_Name LastName
Mailing_City MailingCity
Mailing_Country MailingCountry
Mailing_State_Province MailingState
Mailing_Street MailingStreet
Mailing_Zip_Postal_Code MailingPostalCode
Mobile Mobile
Phone Phone
Title Title

5) Click the Validate Mappings button to ensure that the mapping matches
the fields in the new source file.
3. Save and run the task.
1) Save the task.
2) Run the task.
3) Review the results of the task in the Status column.
Notice that the task finished, but with error rows.

Informatica Cloud Services On-Demand Training 5
4. Debug the errors.
1) Open the Error Rows file by clicking on the icon in the Error Rows
column:

This opens the Error Rows file.
2) Review the file.
3) Scroll to the right and review the error in the message in the Error column
for each row.
Can you determine why the task returned some error rows?
5. Correct the error.
1) Click on the Configuration tab.
2) Click on Connections.
3) Locate the connection you created in a previous lab, LocalCSVFiles, and
click to edit the connection.
4) Change the date format for the connection (select MM/dd/yyyy).
Note that this is one way to correct the invalid date format error. The
solution implemented in this module works if all of the files in the
connection (directory) have the same date format. If the files have different
date formats, it is better to correct the date format using the TO_DATE
function in an expression in the field mapping. Expressions will be covered
in a later module.
5) Save the connection.
6. Re-run the task.
1) Run the task again.
2) Review the results of the task in the Status column.
Notice that the task finished, but with 1 error row this time.
7. Debug the error.
1) Open the Error Rows file.
2) Review the error message in the Error column.

The error you will see in the error file looks like this:
Error loading into target [Contact] : Error received from salesforce.com.
Fields []. Status code [INVALID_FIELD]. Message [Foreign key external
ID: acct015 not found for field Account_External_ID__c in entity
Account].

This means that for this row, Informatica Cloud was unable to find an
account with the external ID of acct015. Therefore, it was unable to
insert the contact. This would indicate that the account is missing from
Salesforce, or that the value in the Account_ID column is incorrect.

You might also like