Importing Data Into PeopleSoft Enterprise CRM

This chapter provides an overview of the Data Import Application Engine process (RBIMPORT) and discusses how to:

Click to jump to top of pageClick to jump to parent topicUnderstanding the Data Import Application Engine Process (RBIMPORT)

This section lists prerequisites and provides an overview of the Data Import process.

Click to jump to top of pageClick to jump to parent topicPrerequisites

Before you can import data into PeopleSoft Enterprise Customer Relationship Management (PeopleSoft Enterprise CRM), you must ensure that:

Click to jump to top of pageClick to jump to parent topicData Import Process

The Data Import process enables you to:

Data Import process flowchart

To import data into PeopleSoft Enterprise CRM:

  1. Create a flat file with one of the accepted delimiters (tab, comma, or semicolon) for the import.

  2. Define an import template by using the Define Import Template component.

    1. Define import template information (name, role to associate with imported data, and audience to associate with template, if applicable).

    2. Define field mapping requirements.

    3. Define matching criteria.

  3. (Optional) Run the Data Import process by using the Run Data import page.

    To validate the template against the data file contents, select the File Validation Only check box to perform validation tests of the data.

    The file validation step checks the file contents and structure and writes errors to an error file, which you can use to correct problems prior to running the Data Import process.

    Examples of validations that are performed are: length of fields in the import file compared to field lengths that are in the database, compatibility of data types, and number of delimiters in each row.

  4. View the status of the Data Import process by using the View Import Status page.

    You can view import dates, times, and statuses, such as: inprocess, queued, and successful.

  5. View the results of the Data Import process by using the View Import Statistics page.

    You can view the number of inserted, matched, updated, and in-error import rows.

  6. Correct any data errors that don't successfully load in the process and perform the Data Import process again.

Click to jump to top of pageClick to jump to parent topicSetting Up Data Import Global Settings

To set up data import global settings, use the Data Import Global Settings (RB_IMP_GLB_SETUP) component.

This section discusses how to define data import global settings.

Click to jump to top of pageClick to jump to parent topicPage Used to Set Up Data Import Global Settings

Page Name

Object Name

Navigation

Usage

Data Import Global Setup

RB_IMP_GLB_PG

Customers CRM, Data Import, Data Import Global Settings, Data Import Global Setup

Define global settings that are for the Data Import process.

Click to jump to top of pageClick to jump to parent topicDefining Data Import Global Settings

Access the Data Import Global Setup page.

Default SetID

Enter the default setID. The Data Import process enters the default setID on any target table that requires a set ID while it processes import data. Examples of tables which require setIDs are: RD_PERSON and RD_COMPANY.

Currency Code

Enter the default currency code, which the Data Import process uses for target tables that require a currency code.

Last Object Id Sequence

Enter a starting integer. Use this field when you create object IDs that are not system-generated. The format of generated IDs is sequence number:counter. For example, if my starting sequence number is 1, and you import a file with 100 companies, the format of the generated IDs is 1:1 through 1:100. The subsequent load of 50 company objects generates IDs 2:1 through 2:50.

Stage Table Generation

Dynamic Record Creation

Indicates that tables are dynamically created during the Data Import process, which executes many CREATE TABLE statements during processing. This is necessary to stage the imported data and to perform matching logic. You cannot edit this field.

Note. The PeopleSoft super user ID must have Create Table privileges for the process to complete successfully.

Auto number

Select to enable automatic number generation for imported data.

See Setting Up Automatic Numbering.

Stage Table Name Prefix

Enter the prefix for the staging tables. The staging tables are defined as prefix_numeric value (for example, STG_215). The system assigns numeric values in sequential order.

Last Stage Table Sequence

Enter a new sequence number, or leave the default, which is the last stage table sequence that the system creates. The system automatically assigns table sequences during the Data Import process. If you enter a new number, the system uses that number as its starting point in the process.

SQL Space Name

Enter the tablespace name under which you want the system to create the staging tables.

PeopleSoft Enterprise CRM provides the predefined table space name (RDWORK).

Note. When performing the Data Import process on an Oracle or DB2 platform, you must define a SQL space name.

Click to jump to top of pageClick to jump to parent topicDefining Data Import Templates

To define data import templates, use the Data Import (RB_IMP_DATA_CONFSR_GBL) component.

This section discusses how to:

Click to jump to top of pageClick to jump to parent topicPages Used to Define Data Import Templates

Page Name

Object Name

Navigation

Usage

Data Import

RB_IMP_DATA_CONFSR

Customers CRM, Data Import, Data Import Templates, Data Import

Access a data import template to modify or add a new template.

Data Import - Step 1: Define Import Template

RB_IMP_HEADER

  • Click the Create a New Import Template button on the Data Import Template Search page.

  • Select an existing template on the Data Import Template Search page.

  • Click the Go Back to Import Definition button on the Save Confirmation page.

  • Customers CRM, Data Import, Run Data Import, Run Data Import Search

    Click the View Import Definition link on the Run Data Import page.

Define general information and the role with which the imported data is associated. The role determines the target field tree that appears at mapping time.

Audiences - Audience Details

RA_LIST_MAIN

Click the Transfer to Audience button on the Data Import - Step 1: Define Import Template page.

Describe the audience of the data that is imported. For use in PeopleSoft Marketing, you must specify an audience of type Internal using Import.

See Creating and Managing Audiences.

Data Import - Step 2: Define Import File

RB_IMP_FILESPEC

Click the Next button on the Data Import - Step 1: Define Import Template page.

Associate the flat file of data and load the header fields from the flat file to the import template. Optionally, assign user-friendly labels to the header fields.

Data Import - Step 3: Mapping

RB_IMPORT_MAP

Click the Next button on the Data Import - Step 2: Define Import File page.

Map the source fields that are contained in the flat file to the target fields in the PeopleSoft Enterprise CRM database and define the field requirements.

Data Import - Select Target Field

RB_SEL_MAP_IN_FLD

Click the Select Target link next to a Field Label on the Data Import - Step 3: Mapping page.

View the target fields in a tree format to assist with target field selection in the mapping process.

Specify Concatenation

RB_MAP_CONCAT

Select a Mapping Action of Concatenate in the Advanced region of the Data Import - Step 3: Mapping page and click the Specify Concatenation link.

Define the field concatenation criteria.

Data Import - Step 4: Matching

RB_IMP_MATCH_ADV

Click the Next button on the Data Import - Step 3: Mapping page.

Define the matching rules for the import data. For example, define which existing field or set of fields in the PeopleSoft Enterprise CRM database you want to specify as constituting a match for an individual or organization record.

Save Confirmation

RB_IMP_CONF_PG

Click the Save Import Template button on the Data Import - Step 4: Matching page.

Verify import template creation.

Click to jump to top of pageClick to jump to parent topicAccessing Data Import Templates

Access the Data Import page.

The appearance, behavior, and personalization options for this page are controlled by the search definition for the Data Import Template component.

Create a New Import Template

Click to access the Data Import - Step 1: Define Import Template page and create a new import template.

Click to jump to top of pageClick to jump to parent topicDefining Data Import Templates

Access the Data Import - Step 1: Define Import Template page.

Import with Role

Select the role to associate with the import template. All records that are in the file are imported into the BORM with the selected role. Values are:

Company: Select for company or partner company records.

Company/Contact: Select for individual records for persons who function as contacts for companies or any type of organization.

Consumers: Select for persons who do not function as contacts for companies.

Note. The role that you select here determines the objects that you can map to. For example, if you select Consumer, the only fields that are available to map to are those that are defined for the Consumer role.

Source

(Optional) Enter the source of the information that is contained in the flat file. This field is associated with the template itself as opposed to individual records that are within the file. To associate a source with each record, create a text profile field that is called Source and use the Data Import - Step 3: Mapping page to map a constant value into that field.

Import Status

Displays the import status that the system assigns when you begin to create an import template. Initially, the status is In Process. It stays as such until you complete the steps to define an import template, at which time it changes to Active.

SetID and Audience

Enter an existing setID and audience of type Internal using Import to bring the import data into the PeopleSoft Enterprise CRM database as a discrete audience. Or, to create a new audience, click the Transfer to Audience button to access the Audiences - Audience Details page and identify the name, audience ID, and owner.

Note. If you import the records as an Internal by using Import audience, you can use the audience immediately after import. However, you can't further segment the audience in the Audience Builder. If you want to do further segmentation rather than create an audience at the time of import, create a text profile field called Audience Source, and use the Mapping step to map a constant value in that field for all records. After import, create an internal audience by using the Audience Builder with the first condition being that all records that are equal to the constant value that is mapped into the profile field called Audience Source.

See Creating and Managing Audiences.

Next

Click to access the Data Import - Step 2: Define Import File page and proceed to the next page in the import definition process.

Click to jump to top of pageClick to jump to parent topicDefining Import Files

Access the Data Import - Step 2: Define Import File page.

On initial access to access this page when you are defining a new template, the Attach File button is available; the rest of the fields are empty. The Delete File and View File buttons are not available until you attach a file.

To define an import file:

  1. Attach the flat file to the import template.

    1. Click the Attach File button; a dialog box appears.

    2. Click the Browse button on the dialog box and select the desired flat file.

    3. Click the Upload button.

      The system attaches the flat file to the import template definition, and the Data Import - Step 2: Define Import File page appears.

  2. (Optional) Click the View File button to view the rows of information that are contained in the flat file.

  3. Define flat file information.

  4. Attach the flat file fields to the import template.

    Click the List Fields From File button. The system attaches the flat file fields to the import template.

    If the flat file contains a header row, the system populates the Field Name column with the exact names of the fields (for example, lname and fname) that are contained in the header row of the flat file's header row. The system also populates the Field Label fields with the same information as shown in the field name fields.

    If the flat file doesn't contain a header row, the system populates these columns with FIELD1, FIELD2, and so on until all of the flat file fields are represented.

  5. (Optional) Change the field labels to represent more meaningful and understandable names to the flat file fields.

    For example, the field name lname may need a field label of Last Name to assist others who may review the template for reuse.

  6. Click the Next button to access the Data Import - Step 3: Mapping page and proceed to the next step in the import template definition process.

Deleting Import Files

To delete an import file:

  1. Display an existing import template definition that already has an import file attached on the Data Import - Step 2: Define Import File page.

  2. Click the Delete File button.

    When you click this button, the system deletes the flat file from the import template definition as well as all field and mapping definitions that are from the import template. At that time, you can select another flat file.

Click to jump to top of pageClick to jump to parent topicMapping Source Fields to Target Fields

Access the Data Import - Step 3: Mapping page.

When you access this page, the source field labels appear in the Step 3: Mapping scroll area, and the Advanced scroll area is collapsed.

You must map at least one source field that is contained in the flat file to a target field in the PeopleSoft Enterprise CRM database. The fields that you must map depend on the target fields that you select. A message appears if you do not map all required fields (required fields have an asterisk at the end of the field name in the folder tree view).

If you can perform one-to-one mapping of the source fields to the target fields, you only need to use the Mapping scroll area.

If you must use a default constant in a target field, concatenate source fields into one target field, or enter a source field into multiple target fields, you must use both the Mapping and Advanced scroll areas.

Mapping Source Fields to Target Fields

To map the source flat file fields to target fields:

  1. Select the target field for each source field.

    1. Click the Select Target link next to a source field label to access the Select Target Field page, which displays the target fields that are in the PeopleSoft Enterprise CRM database in a tree format. The tree format depends on the role that you select when you define the import template. An asterisk appears next to the fields that PeopleSoft Enterprise CRM requires. At each folder level, there are required fields. For example, at the highest folder, Individual-Consumer, the required field is Last Name. Down one level, in the Phone folder, Contact Method Purpose ID and Telephone both have an asterisk; while Telephone is not required for an import. If the folder is mapped, then you must map any required fields in that folder or in the folders above it. In this example, you must map both Contact Method Purpose ID from the Phone folder and Last Name from the higher-level Individual-Consumer folder.

    2. Find and select the target field by expanding the folders and viewing the fields on the Select Target Field page.

      When you click the field in the tree, the Data Import - Step 3: Mapping page appears with the field description in the Select Target field for this particular field.

  2. Select the import action for each field:

    Ignore

    Select to ignore this field and not import it when you perform the import process. This is useful for when you reuse import templates and want to import only a subset of the premapped fields.

    Import

    Select to import this field when you perform the import process.

  3. Define required fields for the flat file import process.

    Select the Required Flag check box if this field must have a value in the flat file before the data is imported into PeopleSoft Enterprise CRM.

    For example, if Name is defined as a required field on the flat file and you attempt to import a flat file that does not contain name information, those rows of data on the flat file are not imported into PeopleSoft Enterprise CRM; they are written to the error file.

  4. (Optional) Select the Optional tab in the Step 3: Mapping page region to define fields to group together.

    Enter the same number for every field that in the group in the Sequence field. For example, suppose that you have a flat file that contains this information on one row, as indicated in the Source Field column:

    Source Field

    Sequence

    Target Field

    First Name

    1

    Consumer.First Name

    Last Name

    1

    Consumer.Last Name

    Email Address

    1

    Email.Email Address

    First Name

    2

    Consumer.First Name

    Last Name

    2

    Consumer.Last Name

    Email Address

    2

    Email.Email Address

    In this case, the same type of information is repeated on one row. For the system to understand what fields should go together when they are inserted into the database, you must assign a sequence number. In this example, the first three fields are grouped together and are inserted into the database as a group, and the last three fields are grouped together and are inserted into the database as a group. You must always map a consistent number of objects with a file in this format. For example, if you map two instances of First Name, you must also map two instances of Last Name and two instances of Email Address.

    If you create a flat file that has multiple rows with the information instead of one row, you don't need to use the Sequence field. By virtue of the information being on separate rows, the system knows what fields to group together.

  5. Click Next to access the Data Import - Step 4: Matching page and proceed to the next step in the import process.

Note. You perform the functions in the remainder of this section in the Advanced region of the page.

Mapping Concatenated Source Fields to Target Fields

To map concatenated source fields to a target field:

  1. Expand the Advanced region and select a mapping action of Concatenate.

    The system displays the Specify Concatenation column with a Specify Concatenation link.

  2. Select the target field.

  3. Enter the fields or values that you want concatenated.

Mapping Constants to Target Fields

To map a constant value to a target field:

  1. Select a mapping action of Constant next to a row in the Advanced scroll area.

    This makes the Value field available.

  2. Select the target field.

  3. Enter the value that you want to appear by default in the target field in the Value field.

    To enter data, time, or date values, please consult the Enterprise PeopleTools PeopleBooks to determine the correct formats.

Mapping Already-Mapped Source Fields to Other Target Fields

To map an already mapped source field to another target field:

  1. Expand the Advanced scroll area and select a mapping action of Field next to a row.

    This activates the Field Label field.

  2. Select the target field.

  3. Select the already-mapped field label in the Field Label field.

Click to jump to top of pageClick to jump to parent topicDefining Matching Criteria

Access the Data Import - Step 4: Matching page.

This page enables you to specify the fields in the PeopleSoft that must match fields in the import file before the database is updated from the import file. If the system doesn't find a match, it inserts the incoming row as a new record in the PeopleSoft Enterprise CRM database. If it finds a match, the system updates the existing record with the new information from the file, unless you clear the Update Matched Records check box at import time. In that case only, the system writes matched records to the error file instead of being updated.

Note. New data never overwrites or updates an existing record's contact method fields (phone, email, and address); the new fields are appended as additional contact methods. All other types of mapped fields are updated or overwritten by the new data for matched records.

Warning! All fields, including email address, are case sensitive for matching. To avoid instances where a match is not found due to case sensitivity, you should convert fields such as email address to lowercase prior to import. For example, convert [email protected] to [email protected] before importing the file.

Select Target

Click to display a hierarchy of fields that are in the PeopleSoft Enterprise CRM database into which you are importing data.

Save Import Template

Click to save the data import template and access the Save Confirmation page.

Enter the matching criteria that you want to associate with the import template. Use the Open Bracket and Close Bracket options appropriately for the nested condition on which to match. For example, it's always a good idea to match on a combination of email address and last name or of any contact method and name information (for example, email address and lastname or phone and lastname). For the Company/Contact import type, it's good to match on at least one field from the Company mapping, and at least one field from the Contact mapping or Contact Method mapping.

Click to jump to top of pageClick to jump to parent topicVerifying Template Creation

Access the Save Confirmation page.

This page displays:

Click to jump to top of pageClick to jump to parent topicRunning the Data Import Application Engine Process (RBIMPORT)

This section discusses how to:

Click to jump to top of pageClick to jump to parent topicPages Used to Run the Data Import Application Engine Process (RBIMPORT)

Page Name

Object Name

Navigation

Usage

Data Import

RB_IMP_RUN_CONFSRC

Customers CRM, Data Import, Run Data Import, Data Import

Search for and view existing templates to use for the Data Import process.

Data Import

RB_IMP_RUN_DATA_PG

  • Click the Save Import Template button on the Data Import - Step 4: Matching page.

    Click the Run Import link on the Save Confirmation page.

  • Select an existing template on the Run Data Import Search page and click the Import Data button.

Run the Data Import process.

Click to jump to top of pageClick to jump to parent topicAccessing the Run Data Import Page

Access the Data Import search page.

The search definition for the Run Data Import component controls the appearance, behavior, and personalization options for this page.

See Also

Configuring Search Pages

Click to jump to top of pageClick to jump to parent topicRunning the Data Import Application Engine Process (RBIMPORT)

Access the Data Import page.

If you access this page from the menu, you must attach a flat file and define its parameters. When you access this page as the last step when defining an import template, the system populates the flat file information for you.

Note. Attaching a flat file on this page works as on the Data Import - Step 2: Define Import File page .

File Information

Date, Time, and Now

Enter a date and time when the Data Import process is to run, or select Now. If you enter a past date, the system runs the process immediately.

File Validation Only

Select to perform data validation tests of the Data Import process before you actually perform the process. This is a preventative step that is useful for new files from unknown vendors.

If you select this option, the Data Import process runs to validate data types that are within the file but doesn't run the actual insert of the data into the PeopleSoft Enterprise CRM database. For example, the process validates for proper field types; if a character string is mapped into a number field, or if a mapped date is not in the correct format, an error occurs. The process checks for whether mapped fields are longer than the target field. The end result is an error file that contains all of the input rows with detailed error messages so that the end user can make corrections.

Update Matched Records

Select this check box to specify that when there is a match between a source record and an existing target record in the PeopleSoft Enterprise CRM database, the existing target record is updated with the fields that are mapped from the source record data. The rules that you set up on the Data Import - Step 4: Matching page determine the match.

If you do not select this check box, you must view the error file to see a list of the records that match but are not updated.

See Viewing the Status of One Data Import Process Instance.

Note. Contact method fields are never updated with imported data; instead, the new information is added to the database.

Import Contact Methods as Primary

Select to enforce that an imported contact method is checked as Primary. This overwrites existing primary flags in the PeopleSoft Enterprise CRM database. If you do not select this check box (which is cleared by default), the system still imports all mapped contact methods, but none are flagged as Primary.

Every PeopleSoft Enterprise CRM business object supports multiple contact methods of each type. For example, a contact or consumer that is named John Doe can have multiple business email addresses, multiple home phone numbers, and so on. However, John Doe can have only one primary home phone number.

File Field List

The File Field List screen region displays the fields that are associated with the import template. This enables you to verify whether the import works in the case where you access the Data Import process directly from the menu and use an existing template.

Import As Audience

SetID and Audience Name

Enter an existing setID and audience of type Internal using Import in the Import as Audience (optional) group box to bring the import data into the PeopleSoft Enterprise CRM database as a discrete audience. Or, create a new audience by clicking the Transfer to Audience button to access the Internal using Import Audience definition page and identify the name, audience ID, and owner.

Import Status

The Import Status group box appears only after you click the Import Data button.

View Import Statistics

Click to access the View Import Statistics page.

Other Page Links and Buttons

View Import Definition

Click to access the Data Import - Step 1: Define Import Template page and view the import template definition.

See Defining Data Import Templates.

Import Data

Click to run the Data Import process and open the Import Status group box, which displays the status of the Run Data Import process and contains a View Import Statistics link.

If the Data Import process finds no matches between the flat file data and data in the PeopleSoft Enterprise CRM database, it creates the business objects, contacts, consumers, or organizations as specified.

If the Data Import process finds a match with the flat file data and data in the PeopleSoft Enterprise CRM database, it updates the business objects as specified.

Click to jump to top of pageClick to jump to parent topicViewing the Data Import Process Status

This section discusses how to view the status of the Data Import process.

Click to jump to top of pageClick to jump to parent topicPages Used to View the Data Import Process Status

Page Name

Object Name

Navigation

Usage

Data Import

RB_IMP_VIEW_CONFSR

Customers CRM, Data Import, View Import Status

View instances, or runs, of the Run Data Import process.

Data Import

RB_IMP_VIEW_STATUS

Select an instance of the Run Data Import process on the View Import Status Search page.

View the status of one instance of the Data Import process.

View Import Statistics

RB_IMP_VW_STATS

Click the View Import Statistics link on the Run Data Import page or the View Import Status page.

View import statistics.

Click to jump to top of pageClick to jump to parent topicViewing Instances of the Run Data Import Process

Access the Data Import page.

The search definition for the View Import Status component controls the appearance, behavior, and personalization options for this page.

See Configuring Search Pages.

Click to jump to top of pageClick to jump to parent topicViewing the Status of One Data Import Process Instance

Access the Data Import page.

View File

Click to view the flat file that is used for the Data Import process.

View Error File

Click to download and view the error log file that the Data Import process creates. The error log contains details about the rows that are in error so that you can fix them and rerun the process. If you do not select Update Matched Records on the Data Import page, the error log also contains a listing of the records that match but are not updated.

View Import Statistics

Click to access the View Import Statistics page and view the import statistics, number of rows inserted, updated, and matched, and the total number of records that are processed.

Click to jump to top of pageClick to jump to parent topicViewing Import Statistics

Access the View Import Statistics page.

This page displays the import statistics from the Data Import process.

View Process Monitor

Click to access the Process Monitor - Process List page and monitor the Data Import process in detail.

See PeopleSoft Process Scheduler

View Error File

Click to download and view the error file that the Data Import process creates. The error file contains details about the rows that are in error so that you can fix them and rerun the process, if desired.

Click to jump to top of pageClick to jump to parent topicViewing the Data Import Process Error File

Access the error file.

The error file looks just like the input flat file except that after every row there are messages about what is wrong with the input row. Correct the problems with data on this error file and then rerun the Data Import process by using this file.