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 the source and target field names for flat file, MySQL, Oracle, and SQL Server connections.
When a mapping preserves special characters, the source and target field names can include any character except the following characters: . + - = ~ ` ! $ % ^ & * ( ) [ ] { } ' \ " ; : / ? , < > | \t \r \n
The mapping replaces the listed characters with an underscore.
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 set 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 set the value to Yes.
    To set 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 advanced.custom.property and set the value to AddQuotesForLookup=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.