51黑料不打烊

Data Prep UI Guide

Read this guide to learn how to use data prep mapping functions in the 51黑料不打烊 Experience Platform user interface to map CSV files to an Experience Data Model (XDM) schema.

Get Started

This tutorial requires a working understanding of the following Platform components:

  • Experience Data Model (XDM) System: The standardized framework by which Platform organizes customer experience data.

  • Identity Service: Gain a better view of individual customers and their behavior by bridging identities across devices and systems.

  • Real-Time Customer Profile: Provides a unified, real-time consumer profile based on aggregated data from multiple sources.

  • Sources: Experience Platform allows data to be ingested from various sources while providing you with the ability to structure, label, and enhance incoming data using Platform services.

Access the mapping interface in the UI

You can access the mapping interface in the UI through two different pathways.

  1. In the Experience Platform UI, select Workflows from the left-navigation and then select Map CSV to XDM schema. Next, provide your dataflow details and select the data that you want to ingest. When finished, you are taken to the mapping interface where you can configure mapping between your source data and an XDM schema.
  2. You can also access the mapping interface through the sources workspace.

Map CSV files into an XDM schema

Use the mapping interface and the comprehensive toolset that it provides to successfully map data fields from your source schema to their appropriate target XDM fields in the target schema.

The mapping interface in the Experience Platform UI.

Understanding the mapping interface mapping-interface

Refer to the dashboard at the top of the interface for information on the health of your mapping fields within the context of the ingestion workflow. The dashboard displays the following details regarding your mapping fields:

Property
Description
Mapped fields
Displays the total number of source fields that have been mapped to a target XDM field, regardless of errors.
Required fields
Displays the number of required mapping fields.
Identity fields
Displays the total number of mapping fields defined as identity. These mapping fields are represented by a fingerprint icon.
Errors
Displays the number of erroneous mapping fields.

Next, you can use the options listed in the header to better interact or filter through your mapping fields.

Option
Description
Search source fields
Use the search bar to navigate to a specific source field.
All fields

Select All fields to view a dropdown menu of options to filter your mappings by. The available filtering options include:

  • Required fields: Filters the interface to display only fields required to complete the workflow.
  • Identity fields: Filters the interface to display only fields marked as identities.
  • Mapped fields: Filters the interface to display only fields that have already been mapped.
  • Unmapped fields: Filters the interface to display only fields that have yet to be mapped.
  • Fields with errors: Filters the interface to display only fields that have errors.
New field type
Select New field type to either add a new field or a calculated field. For more information, read the section on adding a new field type.
Import mappings
Select Import mappings to import mappings from an existing file or dataflow. For more information, read the section on importing mappings.
Validate
Select Validate to check for errors in your mappings.
Download template
Select Download template to export and download a CSV file of your mappings.
Preview data
Select Preview data to use the preview panel and inspect the structure and contents of your source dataset.
Clear all
Select Clear all to delete all mappings in the interface.

Add a new field type add-a-new-field-type

You can add a new mapping field or a calculated field by selecting New field type.

New mapping field

To add a new mapping field, select New field type and then select Add new field from the dropdown menu that appears.

The mapping interface with the "add new field" button selected.

Next, select the source field you would like to add from the source schema tree that appears and then select Select.

The source schema with "country" selected as an additional new field.

The mapping interface updates with the source field you selected and an empty target field. Select Map target field to start mapping the new source field to its appropriate target XDM field.

The mapping interface with a new and unmapped source field.

An interactive target schema tree appears, allowing you to manually traverse through the target schema and find the appropriate target XDM field for your source field.

The interactive target scheme tree with a new target field selected.

Calculated fields calculated-fields

Calculated fields allow for values to be created based on the attributes in the input schema. These values can then be assigned to attributes in the target schema and be provided a name and description to allow for easier reference. Calculated fields have a maximum length of 4096 characters.

To create a calculated field, select New field type and then select Add calculated field

The mapping interface with the "add calculated field" button selected.

The Create calculated field window appears. Use the interface to input your calculated fields and refer to the dialog box on the left for supported fields, functions, and operators.

Tab
Description
Function
The functions tab lists the functions available to transform the data. To learn more about the functions you can use within calculated fields, please read the guide on using Data Prep (Mapper) functions.
Field
The fields tab lists fields and attributes available in the source schema.
Operator
The operators tab lists the operators that are available to transform the data.

The calculated field interface

You can manually add fields, functions, and operators using the expression editor at the center. Select the editor to start creating an expression. Once you are finished, select Save to proceed.

Import mapping import-mapping

You can reduce the manual configuration time of your data ingestion process and limit mistakes by using the import mapping functionality of data prep. You can import mappings from an existing flow or from an exported file.

Import mapping from flow

If you have several dataflows based on similar source files and target schemas, then you can import existing mapping and reuse them for new dataflows.

To import mapping from an existing dataflow, select Import mappings and then select Import mapping from flow.

The mapping interface with "import mapping" and "import mapping from flow" selected.

Next, use the pop-up window to locate the dataflow whose mapping you want to import. During this step, you can also use the search function to isolate a specific dataflow and retrieve it鈥檚 mappings. When finished, select Select.

A list of existing dataflows whose corresponding mappings can be imported.

Import mapping from file

In some cases, you may need to implement a large number of mappings for your data. You can do this manually with the mapping interface, but you can also export your mapping template and configure your mappings on an offline spreadsheet to save time and avoid user timeouts on Experience Platform.

To import mapping from an exported file, select Import mappings and then select Import mapping from file.

The mapping interface with "import mapping" and "import mapping from file" selected.

Next, use Upload template window to download a CSV copy of your mappings. You can then configure your mappings locally on your device, using any software that support editing CSV file types. During this step, you must ensure that you are using only the fields that are provided in your source file and target schema.

The upload template window that displays options to both download and upload an exported csv file of the mappings.

accordion
Select to view an example of an exported mapping file
The downloaded csv file of the mapping template.

When finished, select Upload file and select the updated csv file of your mappings. Allow for a brief moment for the system to process, and then select Done.

The upload template window with a a new file uploaded.

With your mappings complete, you can now select Finish and proceed to the next step to complete your dataflow.

The mapping interface with a complete set of mappings.

Next steps

You now can successfully map a CSV file to a target XDM schema using the mapping interface in the Experience Platform UI. For more information, read the following documents:

recommendation-more-help
461cc884-c234-4a0c-ac75-6efbaafc1394