Searching the Help
To search for information in the Help, type a word or phrase in the Search box. When you enter a group of words, OR is inferred. You can use Boolean operators to refine your search.
Results returned are case insensitive. However, results ranking takes case into account and assigns higher scores to case matches. Therefore, a search for "cats" followed by a search for "Cats" would return the same number of Help topics, but the order in which the topics are listed would be different.
|A single word||
||Topics that contain the word "cat". You will also find its grammatical variations, such as "cats".|
You can specify that the search results contain a specific phrase.
Topics that contain the literal phrase "cat food" and all its grammatical variations.
Without the quotation marks, the query is equivalent to specifying an OR operator, which finds topics with one of the individual words instead of the phrase.
Two or more words in the same topic
|Either word in a topic||
|Topics that do not contain a specific word or phrase||
|Topics that contain one string and do not contain another||
|A combination of search types||
- Importing Data from External Sources
- How to Import CSV Data from an External Source – Scenario
- How to Convert Strings to Numbers
- The External_source_import Package
- Import from CSV File Job
- Import from Database Job
- Import from Properties File Job
- External Source Mapping Files
- Troubleshooting and Limitations – Importing Data from External Sources
Converters enable you to specify the way data should be converted between the external source and a CI's attributes.
A CSV file contains records of type
string. However, some of the record values need to be handled as numbers. This is done by adding a converter element to the map element (in
[your mapping file name].xml):
The import_converters.py file (Adapter Management > Resources pane > Packages> External_source_import > Scripts) contains a set of the most commonly needed converters and types:
Note The values of stringToList are separated by semicolons (;).
Example of a Converter
A CSV file contains the following row:
Usain, 21, Male
This row must be mapped to the Person CIT that includes name (
Usain), age (
21), and gender (
Male) attributes. The
age attribute should be of type integer. Therefore, the string in the CSV file must be converted to an integer in the CIT to make it compliant with the CIT attribute type, before the Person CIs can retrieve the
This is done by adding a converter element to the map element:
<map> <attribute>age</attribute> <column>2</column> <converter module="import_converters">stringToInt</converter> </map>
module="import_converters". This attribute specifies from which module the converter is to be retrieved. A module is a Jython script file that contains a set of converter methods, in this case,
stringToInt. The name of the converter. In the
import_converters.py file, the method is written as follows:
def stringToInt(value): if value is not None: return int(value.strip()) else: return 0
You can write your own custom converters: Add a new method to the
import_converters.py file or create your own script and add a set of converter methods to it. Call the method with the name of the script, for example:
We welcome your comments!
To open the configured email client on this computer, open an email window.
Otherwise, copy the information below to a web mail client, and send this email to email@example.com.
Help Topic ID: