---
title: Ingest data via Source Connector
slug: qatar-airways-hol/ingest-data-via-source-connector
docTags: 
createdAt: 2024-01-12T13:35:08.298Z
---

In the last exercise we onboarded CRM data to our Dataset manually via the UI uploader. In a production deployment this process will likely be automated using batch APIs provided by the Platform or the many **Source Connectors** available in Experience Platform.

Experience Platform provides a RESTful API and an interactive UI that lets you set-up source connections to various data providers with ease. These source connections enable you to authenticate your storage systems and CRM services, set times for ingestion runs, and manage data ingestion throughput.

Let's see how we can onboard data using a source connector. In this exercise we will onboard **call center** data stored in our Amazon Web Services S3 bucket.&#x20;

### Step 1: Connecting to a Source

1. Select **Sources** from under Connections in the left hand navigation.
2. Click on th&#x65;**&#x20;Catalog&#x20;**&#x74;ab.
3. You will see a list of all Source Connectors. Search for **Amazon S3** and select **Add Data**.

We've already set up a Connection to an S3 Bucket for the purpose of this Lab.

1. Select **Qatar CRM Data Source** from the Accounts list.
2. Select **Next**.

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/bqLA-tqu0KH9pybuGJPiU_screenshot-2024-07-21-at-202121.png)

Now we need to select the CSV file we want to onboard.

1. Select the file `[T] Call Centre Interactions` from the list on the left.
2. Choose **Delimited** for the file format from the drop down.

:::hint{type="info"}
You will be shown a preview of the data so you can validate the Adobe Experience Platform is interpreting the data in the file correctly.
:::

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/RcBEt--lm0MGEYqziFgrR_screenshot-2024-07-21-at-201631.png)

Click **Next.**

We now need to specify the Dataset where this file will be ingested:

1. From the dropdown list under *Target dataset*, select `Demo System - Event Dataset for Call Center (Global v1.1)` from the Dataset details drop down.&#x20;
2. Under **Dataflow details** prefix the Dataflow name with your own name so you can find this later.
3. Leave the other settings as the default.
4. Click **Next.**

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/inFnQBC2Tnpa0KcPJyFoW_screenshot-2024-07-21-at-201723.png)

With your CSV file ready, you can proceed with mapping it to the corresponding fields in the call center XDM Schema.

:::hint{type="info"}
As we saw in the last exercise when we ingested data via the UI, we did not need to do this mapping step. This was becuase the format of the JSON structure in the file was already comliant with the XDM schema. Whereas in this example, the CSV file has a different structure that does not confirm to the XDM Schema, so we must map the column headers in the CSV to the fields in the XDM Schema before ingestion.
:::

### Step 2: Using a Workflow to map a CSV file to an XDM Schema

The goal of this is to onboard call center data in Platform. Most of the data that is ingested in Platform should be mapped against a specific XDM Schema. What you currently have is a CSV dataset on one side, and a dataset that is linked to a schema on the other side. To load that CSV file in that dataset, a mapping needs to take place. To facilitate this mapping exercise, we have **Workflows** available in Adobe Experience Platform.

You should now be on the mapping step of the Workflow to onboard the data from S3.

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/YLWNsOPdBlnyxoo5eGD0V_screenshot-2024-07-21-at-201829.png)

You now need to map your CSV Column Headers with an XDM-property in your Dataset.

:::hint{type="info"}
**NOTE:&#x20;**&#x66;or the Schema Mappings, Adobe Experience Platform has linked fields together already. However, in the case not all proposals of mapping are correct, you can adjust the individual mappings in the UI.

To edit the mappings:

1. Select the **lightbulb** icon on the Target field you want to change.
2. If your chosen field doesn't appear in the list, choose **Select manually.**
3. Select your chosen field from the schema structure.
4. Your source attribute is now mapped to your chosen Target filed.&#x20;
5. You can also type your Target field directly in the text box if you know the path.
:::

For this exercise you will not need to edit any of the mappings. Instead will choose to **Import Mapping** from a previous ingestion.

1. Select **Import mapping&#x20;**&#x66;rom the menu above the mappings near the center of the screen.
2. This will open a window with mappings from previous **Dataflows**.&#x20;
3. Select the `Call Center Events`.
4. Click **Select.**

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/vmyflygUk5EFRR1NV2REb_screenshot-2024-07-21-at-223421.png)

### Verify your final mappings

Your final mapping should be:

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/5PTwmC7LpqJIJrT43IY_T_image.png)

1. Click **Next**, you'll then see the **Scheduling&#x20;**&#x6F;ptions available for this Source Connector.&#x20;
2. Keep the default settings of **Once**, and click **Next.**
3. On the final **Review** step, click **Finish&#x20;**&#x74;o onboard your data.

You'll then be directed to the Sources overview, where you will see the list of the Dataflows configured for this source.&#x20;

1. Find yours and select the **Target Dataset&#x20;**&#x74;o view the Dataset Activity.
2. You'll then see the **Dataset Overview** where your ingestion has processed, and after a couple of minutes you can refresh your screen to see if your workflow completed successfully.&#x20;

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/ZxattvHrG6X0wFtOmbufd_image.png)

On the Dataset activity screen, you'll see a **Batch ID** that has been ingested just now, with 30 records ingested and a status of **Success.**

1. Click on the **Preview Dataset** button to get a quick view of a small sample of the data ingested to ensure that it loaded correctly.

![](https://api.archbee.com/api/optimize/1Jp0iolWv35Z_mkI7oUiT/5xul5GPbt6N-60fufm67D_image.png)

Once data is loaded, you can define the correct data governance approach for your dataset. We will do this in a later exercise.

:::hint{type="success"}
With this, you’ve now successfully ingested and classified CRM Data in Adobe Experience Platform!
:::

