Deploy > Data Synchronization Tasks > Data Synchronization Task Options
  

Data Synchronization Task Options

The Data Synchronization Task wizard provides many options for you to configure tasks. The options that display depend on the options that you select and the licenses enabled for the organization. For example, advanced Salesforce target options display on the Schedule page of the task wizard if you select a Salesforce target connection for the task on the Target page and your organization has the DSS Advanced Options license.

Data Synchronization Task Sources

You can use a single object as a source or multiple related objects as sources in a Data Synchronization task.
You can use multiple objects for database connection types. Define relationships based on key columns or create a user-defined join condition.

Rules and Guidelines for Multiple-Object Databases

Use the following rules and guidelines when you configure a multiple-object database:

Data Synchronization Task Targets

You can use a single object as a target for a Data Synchronization task.
The target connections that you can use depend on the task operation you select for the task. For example, if you select the upsert task operation, you cannot use a flat file target connection because you cannot upsert records into a flat file target.

Flat File Target Creation

If a task has a flat file target, create the flat file before you save the task. Or, you can create the flat file target with the Data Synchronization task wizard when all of the following are true:
The Data Synchronization task wizard uses the source object name as the default name of the flat file target. It truncates the name of the flat file to the first 100 characters if the source name is too long. If the target name conflicts with the name of another target object, the following error appears:
Object named <object name> already exists in the target connection.

Database Target Truncation

You can configure a Data Synchronization task to truncate a database target table before writing new data to the table when you configure the task to use an Insert task operation. By default, Informatica Cloud inserts new rows without truncating the target table.

Salesforce Targets and IDs for Related Objects

Informatica Cloud identifies records of a Salesforce object based on one of the following types of IDs:
If you create a Data Synchronization task that writes to a Salesforce target, the source must provide either the Salesforce IDs or the external IDs for the records in the Salesforce target object and applicable related objects. A related object is an object that is related to another object based on a relationship defined in Salesforce. The Data Synchronization task uses the Salesforce ID or external ID to update changes to related objects.
If the source in a task contains external IDs for Salesforce objects, you must specify the external IDs for all related objects when you create the Salesforce target for the task. If you do not specify the external ID, Informatica Cloud requires the Salesforce ID to identify records in each related object.
For more information about creating and using Salesforce external IDs, see the Informatica Cloud Community article, "Using External IDs and Related Objects in Informatica Cloud".

Column Names in Flat Files

If the column name in a flat file source contains nonalphanumeric characters, starts with a number, or contains more than 75 characters, the Data Synchronization task modifies the column name in the flat file target.
The Data Synchronization task truncates column names to 75 characters. For a flat file source, the Data Preview area and the Field Expression dialog box show modified column names. For a flat file target, the Data Synchronization task changes the column name in the flat file when it generates the file at run time.

Rules and Guidelines for Data Synchronization Task Sources and Targets

Use the following rules and guidelines for Data Synchronization sources and targets:

Rules and Guidelines for Flat File Sources and Targets

Use the following rules and guidelines for flat file sources and targets:

Rules and Guidelines for Database Sources and Targets

Use the following rules and guidelines for database sources and targets:

Field Mappings

Map source columns to target columns on the Field Mapping page of the Data Synchronization task wizard. You must map at least one source column to a target column. Map columns with compatible datatypes or create field expressions to convert datatypes appropriately.
Depending on the task operation, the Data Synchronization task requires certain fields to be included in the field mapping. By default, the Data Synchronization task maps the required fields. If you configure the field mapping, ensure that the required fields remain mapped. If you do not map the required fields, the Data Synchronization task fails.
The following table shows the required fields for each applicable task operation for a database target:
Required Field
Task Operations
Description
Primary Keys
Delete
Update
Upsert
Map primary key columns to enable the Data Synchronization task to identify records to delete, update, or upsert in a database target.
Non-null fields
Insert
Update
Upsert
Map all fields that cannot be null in database.
When you configure field mappings, you can also perform the following tasks:

Field Datatypes

When you create a Data Synchronization task, Informatica Cloud assigns a datatype to each field in the source and target. You can edit the field datatypes on the Field Mapping page of the Data Synchronization task wizard. You can edit field datatypes for any source or target type except for Informatica Cloud Connector sources and targets, and mapplets.You can edit field datatypes for any source or target type except for Informatica Cloud Connector sources and targets, mapplets, and saved queries.

Mapplets in Field Mappings

You can add a mapplet to a field mapping. After you add a mapplet to a field mapping, you must map the source fields to the input fields of the mapplet and map the output fields of the mapplet to the target fields.
When a source field is mapped directly to a target field and you map an output field of a mapplet to the same target field, Informatica Cloud concatenates the values of the source and output fields in the target field. Verify that the expression is correct for the target field.
Note: The names of the output fields of a mapplet do not match the source field names. Informatica Cloud appends a number to the end of the source field name to determine the output field name. In addition, Informatica Cloud may not display the output fields in the same order as the source fields.

Lookup Conditions

A lookup returns values based on a lookup condition. You can create a lookup condition based on information in the source on the Field Mapping page of the Data Synchronization task wizard. For example, for a SALES source database table, you might set the ITEM_ID column equal to ITEM_ID column in a ITEMS flat file, and have the lookup return the item name for each matching item ID.
When you create a lookup condition, you define the following components:

Lookup Return Values

When you configure a lookup, you configure a lookup return value. The lookup return value depends on the return value properties that you define, such as multiplicity or a lookup expression.
A lookup return value is the value that Informatica Cloud returns when it finds a match based on the lookup condition. If the lookup returns an error, Informatica Cloud writes the row to the error rows file.
You can configure a lookup expression as part of the lookup return value. Configure a simple expression that uses the $OutputField variable to represent the lookup return value.
For example, the following expression adds 100 to each lookup return value:
$OutputField+100
As another example, you can use the concatenate operator ( || ) to append a string to a string lookup return value as follows:
'Mighty' || '$OutputField'
You can use parameters defined in a parameter file in a lookup expression.
The following table describes the lookup return value properties that you can configure:
Lookup Return Value Property
Description
Output Field
The field from the lookup table that you want to use.
Multiplicity
How Informatica Cloud handles multiple return values.
  • - Error If More Than 1 Output Value. Select if the Data Synchronization task should display an error when the lookup condition returns multiple values. Informatica Cloud rejects rows when multiple matches are found, writing them to the error rows file. This is the default.
  • - Randomly Pick 1 Output Value. Select if the Data Synchronization task should choose the first returned value when a lookup condition returns multiple values. Different systems might use different orders to return lookup values.
Expression
A simple expression that uses $OutputField to represent the selected output field.
By default, Informatica Cloud passes the lookup return value without alteration with the following expression: $OutputField.

Rules and Guidelines for Lookups

Use the following rules and guidelines when creating a lookup:

Data Synchronization Task Schedule and Advanced Options

In the last page of the Data Synchronization Task wizard, you can configure scheduling and advanced options.
You can configure the following options:

Email Notification Options

You can configure email notification for a Data Synchronization or Data Replication task. When you configure email notification for the task, Informatica Cloud uses the email notification options configured for the task instead of the email notification options configured for the organization. You can send email to different addresses based on the status of the task:

Preprocessing and Postprocessing Commands

You can run preprocessing and postprocessing commands to perform additional jobs. The task runs preprocessing commands before it reads the source. It runs postprocessing commands after it writes to the target.
You can use the following types of commands:
If any command in the preprocessing or postprocessing scripts fail, the task fails.

Preprocessing and Postprocessing SQL Commands

You can run SQL commands before or after a task. For example, you can use SQL commands to drop indexes on the target before the task runs, and then recreate them when the task completes. Informatica Cloud does not validate the SQL.
Use the following rules and guidelines when creating the SQL commands:

Preprocessing and Postprocessing Operating System Commands

Informatica Cloud can perform operating system commands before or after the task runs. For example, use a preprocessing shell command to archive a copy of the target flat file before the task runs on a UNIX machine.
You can use the following types of operating system commands:

Update Columns

Update columns are columns that uniquely identify rows in the target table. Add update columns when the database target table does not contain a primary key and the Data Synchronization task uses an update, upsert, or delete task operation.
When you run the Data Synchronization task, the Data Synchronization task uses the field mapping to match rows in the source to the database table. If the Data Synchronization task matches a source row to multiple target rows, it performs the specified task operation on all matched target rows.