> ## Documentation Index
> Fetch the complete documentation index at: https://docs.maia.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Pipelines tutorial part 1: Load data

In this part of the tutorial, you'll create an orchestration pipeline that loads social media data from an Excel sheet and a Google Sheet into your data warehouse. For an overview of the whole tutorial, read [Pipelines tutorial](https://docs.maia.ai/docs/guides/pipelines-tutorial.md).

***

## Create an orchestration pipeline

You'll use an orchestration pipeline to load your data, starting in Designer. For more information about Designer, read [Using Designer](https://docs.maia.ai/docs/guides/using-designer.md).

You'll create a folder called `SocialMediaData`, containing an orchestration pipeline called `LoadSocialMediaData`.

1. Click **Files** to open the **Files** panel.
2. Click the **+** icon, then click **Folder**. Name your new folder `SocialMediaData`.
3. Click the three dots **...** next to this folder, then **Add**, then select **Orchestration pipeline**.
4. In the **Pipeline name** field, name this pipeline `LoadSocialMediaData`.
5. Optionally, in the **Description** field, enter a description for the pipeline.

The pipeline opens on the canvas.

***

## Load posts data using Excel Load

In this step, you'll use the [Excel Load](https://docs.maia.ai/docs/components/excel-load.md) component to load data from an Excel sheet that is stored in an S3 bucket.

### Configure the component

1. The [Start](https://docs.maia.ai/docs/components/start.md) component appears on the canvas. This is the starting point for your pipeline flow.
2. Click the **+** icon to the right of the **Start** component to open the **Add component** dialog.
3. Search for and click the **Excel Load** component. This component is automatically connected to the **Start** component on the canvas, and the **Configuration** tab of the component properties panel opens on the right of the canvas.
4. In the **Connect** section of the component properties panel, adjust the following settings:
   * In **Storage Type**, keep the default selection of **Amazon S3 Storage**.
   * Click the **Storage URL** property, then in **Storage Accounts path** enter `S3://matillion-docs/Attachments/academy/socialmediadata.xlsx` and click **Save**.
5. In the **Configure** section of the component properties panel, adjust the following settings:
   * In **Load Type**, select **Full Load**.
   * In **Data Source**, select the **posts** worksheet.
   * Click the **Data Selection** property, then select the **All** checkbox to include all columns from this worksheet.
6. In the **Destination** section of the component properties panel, adjust the following settings:
   * In **Destination**, select **Snowflake**.
   * In **Warehouse**, **Database**, and **Schema**, select **\[Environment Default]**. This uses the warehouse, database, and schema set in your environment, so the pipeline works in any environment without changes.
   * In **Table Name**, enter `posts`.
   * In **Load Strategy**, select **Replace**. The default, **Fail if Exists**, makes the pipeline fail if you run it a second time, because the table already exists.
   * Check that **Stage Platform** is set to **Snowflake**, which is the default.

### Validate the pipeline and sample your data

1. Make sure the pipeline configuration is valid by clicking **Validate** on the canvas.
2. Sample your data by clicking the **Sample data** tab at the bottom of the canvas, then click **Sample data**. You'll see the first 25 rows of data loaded using this component.

***

## Load user data using Google Sheets

In this step, you'll use the [Google Sheets](https://docs.maia.ai/docs/components/google-sheets.md) component to load social media data that is stored in a Google Sheet. To do this, copy the following Google Sheet to your own Google account. You may want to bookmark it or save it as a favorite, so you can access it easily.

[https://docs.google.com/spreadsheets/d/1VYV8-MbMko12pWKeGJGhSu5zpkDDb51Hx3CIrqirTzk/edit?usp=sharing](https://docs.google.com/spreadsheets/d/1VYV8-MbMko12pWKeGJGhSu5zpkDDb51Hx3CIrqirTzk/edit?usp=sharing)

1. In your orchestration pipeline, click the **+** icon to the right of the **Start** component to add another component.
2. In the **Add component** dialog, search for and click the **Google Sheets** component.

### Authenticate the component

1. In the **Connect** section of the component properties panel, in **Authentication Type**, select **OAuth 2.0 Authorization Code (Matillion Managed App)**.
2. Click the **Authentication** property, then click **Manage**. This takes you to the **Connections** tab in your project.
3. Click **Add connection**.
4. Select **Google** as the provider, then click **Continue**.
5. In **Name**, enter `google-sheets`.
6. In **Authentication type**, select **OAuth 2.0 Authorization Code**.
7. Click **Authorize**. In the new browser tab, select the Google account associated with the sheet you need to access, then click **Allow**.
8. Click **Add**.

Your new `google-sheets` connection appears in the list of connections. For more information about connections, read [Add a connection](https://docs.maia.ai/docs/guides/connections.md#add-a-connection).

### Configure the component

1. Return to Designer and reopen your `LoadSocialMediaData` orchestration pipeline.
2. Click the **Google Sheets** component.
3. Click the **Authentication** property, then select your new **google-sheets** OAuth connection.
4. Click the **\<** icon to return to the **Configuration** tab of the component properties panel.
5. In the **Configure** section of the component properties panel, adjust the following settings:
   * In **Spreadsheet Name**, enter `SocialMediaData`.
   * In **Worksheet name**, select **SocialMediaData\_users**.
   * Click the **Output columns** property, select the **All** checkbox to include all columns from this sheet.
6. In the **Destination** section of the component properties panel, adjust the following settings:
   * In **Destination**, select **Snowflake**.
   * In **Warehouse**, **Database**, and **Schema**, select **\[Environment Default]**.
   * In **Table Name**, enter `users`.
   * In **Load Strategy**, select **Replace**.
   * Check that **Stage Platform** is set to **Snowflake**, which is the default.
7. Validate the pipeline and sample your data as described for the **Excel Load** component.

***

## Run the orchestration pipeline

Click **Run** on the canvas.

This orchestration pipeline runs and loads the data from the Excel file and Google Sheet into the target tables in your cloud data warehouse. When it finishes, you have a `posts` table with about 3,000 rows and a `users` table with about 1,000 rows.

At the bottom of the screen, in the **Task history** tab, you can see the progress of this pipeline and observe whether it runs successfully. You can click a task to see more details.

***

## Next steps

Your data is now in your data warehouse. In [part 2](https://docs.maia.ai/docs/guides/pipelines-tutorial-transform-data.md), you'll create a transformation pipeline to convert and join it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.