Use a different object path for the migrated mapping
After you migrate the mapping, you can use a different object path to run the mapping from the new environment.
In this scenario, before you migrate the mapping, you can change the object metadata or the runtime attributes to reflect the object path in the migrated environment. You do not have to edit or update the mapping in the new environment.
As a rule, when you specify the schema and table in the advanced properties or object properties, Data Integration honors the attributes in the following order of precedence:
1Runtime advanced attributes. The advanced properties such as schema name and table name in the Source, Target, or Lookup transformation in a mapping.
2Object metadata. The object type selected in the Source, Target, or Lookup transformation in a mapping.
Migration options
When you migrate, you can choose from one of the following options to update the object path:
Option 1. Update the connection properties to reference the new object
When you import the mapping into Org 2, in the Review Connections section, you can change the existing connection to map to the connection that has access to the specified schema and table in Org 2.
Option 2. Override the properties from the advanced properties
Before the migration, specify the required schema and table name for the object from Org 2 in the advanced properties of the Org 1 mapping.
After the migration, when you run the mapping, the Secure Agent uses the configured advanced parameters to override the object specified in the mapping imported from Org 1.
Option 3. Parameterize the properties in the mapping
You can choose to parameterize the advanced attributes, such as the schema and table name before the migration. You can configure input parameters, in-out parameters, and parameter files in the mapping.
After you migrate the mapping, do not edit or update the mapping. If you have used in-out parameters, you can change the schema and table attributes using the parameter file so that the changes are applied when the task runs.
Parameterizing only the advanced properties, but not the object in the mapping
If you want to parameterize only the advanced properties and use them at runtime, select a placeholder object in the object properties in the mapping and then specify an override to this placeholder object from the advanced properties. Ensure that the placeholder object contains the same metadata as the corresponding table that you specify as an override. When you run the mapping, the value specified in the advanced property overrides the placeholder object.
Parameterizing both the object and the advanced properties
If you want to keep both the Amazon Redshift object type and the advanced fields parameterized, you must leave the Allow parameter to be overridden at runtime option unselected in the input parameter window while adding the parameters, and then select the required object at the task level. When you run the task, the values specified in the advanced properties take precedence.
Parameterization rules
Consider the following rules to parameterize the object and advanced properties:
•Parameterization is not applicable for mappings that use the Create Target option.
•For the migration use case, input parameters and in-out parameters are applicable for mappings in advanced mode.
•If there are multiple pipelines configured in a mapping, do not parameterize the Amazon Redshift object. You must select a placeholder object while creating the mapping before you migrate.
Rules and guidelines for migrating a mapping
Consider the following rules and guidelines when you use the same or a different object path for the migrated mapping :
•The following table lists the transformation, object type, and the fields in the advanced properties of a mapping that you can retain when you migrate to the new environment:
Transformations
Object Type
Advanced Fields
Source
Single object, multiple objects
Schema and table name
Lookup
Single object
Note:
Applicable for unconnected, and connected cached and uncached.
Target
Single object
•Before you migrate a mapping to Org2, map the connection1 of Org1 to Org2 that can access the schema and table name configured in the advanced properties in Org1.
•After you migrate the mapping to Org2, you must not edit the mapping.
• When you override the schema and table name in a mapping, the mapping fails with an error if the schema used in the connection in Org2 is not valid. The mapping fails with the following error:
An unexpected exception occured while fetching metadata:[The following schema is not found - invalidschema]
•You cannot dynamically refresh the data object schema at runtime. You must maintain the same metadata for the table selected in the source, target, or lookup transformations and the corresponding advanced field overrides as schema change handling is not applicable.
•Consider the following guidelines for multiple sources:
- If the mapping contains multiple sources, you can override the schema in the advanced properties only if the source objects have the same schema, as in the following example:
object1: <schema1.object1>
object2: <schema1.object2>
If the schema is different, for example, if the schema for object1 is <schema1.object1> and object2 is <schema2.object2>, migration does not work.
- Do not override the table from the advanced properties if the mapping contains multiple objects.