Mappings > Mappings > Special characters in native field names
  

Special characters in native field names

By default, mappings replace all special characters in field names with an underscore (_). You can configure a mapping to preserve some special characters in field names for flat file, MySQL, Oracle, and SQL Server connections.
When you configure a mapping to preserve special characters in field names, the mapping preserves most, but not all, characters. The following table describes how special characters are handled for different types of transformations:
Transformation type
Special character handling
Source transformation
The following characters are replaced with an underscore:
" ; : , \t \r \n
All midstream transformations
The following characters are replaced with an underscore:
. + - = ~ ` ! $ % ^ & * ( ) [ ] { } ' \ " ; : / ? , < > | \t \r \n
User-defined expressions can't use field names that include the number sign (#). For example, the expression in an Aggregator transformation or Expression transformation can't include the number sign.
Lookup transformation
The following characters cause the mapping to fail:
. + - = ~ ` ! $ % ^ & * ( ) [ ] { } ' \ " ; : / ? , < > | \t \r \n
Normalizer transformation
Normalized field names can't include the number sign.
Target transformation
The following characters are replaced with an underscore:
. " ; : , \t \r \n
If a target field name includes a number sign, the Target transformation must use automatic field mapping.
When you preserve special characters, consider the following rules and guidelines:

Preserving special characters in native field names

To preserve special characters, configure the mapping advanced properties and DTM properties.
    1In the Mapping Designer, click Actions > Advanced Properties and enable the property Preserve special characters in native field names.
    2Configure the DTM property AddQuotesAlways in the Secure Agent or the mapping task.
    To configure the property in the Secure Agent, perform the following steps:
    1. aIn Administrator, locate the agent on the Runtime Environments page and click Edit.
    2. bIn the Custom Configuration Details section, select Data Integration Server as the service and DTM as the type.
    3. cSet the name to AddQuotesAlways and the value to Yes.
    To configure the property in the mapping task, perform the following steps:
    1. aIn Data Integration, edit the mapping task.
    2. bIn the Advanced Session Properties section on the Runtime Options page, add a new session property.
    3. cChoose the property name Custom Properties and set the value to AddQuotesAlways=Yes.
    4. dIn the Secure Agent, ensure that the DTM property UseCustomSessionConfig is set to the value Yes.
    3If the mapping includes a Lookup transformation, configure the DTM property AddQuotesForLookup and set the value to Yes. Follow the instructions in step 2 to configure the property in the Secure Agent or the mapping task.