---
title: "Add a pipeline step to iterate the data read from a source file"
slug: "add-a-pipeline-step-to-iterate-the-data-read-from-a-source-file"
abstract: "How to create a pipeline step in Sitecore Data Exchange Framework to iterate data from a source file."
---
# Add a pipeline step to iterate the data read from a source file

The first step in this pipeline adds a pointer to a location where subsequent pipeline steps can access it. You must configure the second step to access the data so it can iterate over the lines read from the text file, and pass the data to the other pipeline that handles the data.

To add a pipeline step to iterate data:

1. In the Content Editor, navigate to the pipeline item *City Info from File to City Info Item Sync Pipeline*.

    ![Read City Info from File pipeline in the content tree](https://doc.sitecore.com/api/markdown-image/xp/en/developers/def/60/data-exchange-framework/images/pipeline-read-data-1-child.png)

2. In the right-hand pane, click *Iterate Data and Run Pipelines Pipeline Step*. Name the new item *Iterate Rows from Text File and Run Pipeline*.
3. In the content tree, select the new item.

    ![Iterate Rows from Text File and Run Pipeline pipeline step in the content tree](https://doc.sitecore.com/api/markdown-image/xp/en/developers/def/60/data-exchange-framework/images/pipeline-step-iterate.png)

4. In the right-hand pane, in the **Settings** section, specify the following field values:

    | Field | Value |
    | --- | --- |
    | **Pipelines** | *Pipelines/City Info from File to City Info Item Sync Pipeline* |
    | **Iterable Data Location** | *Pipeline Context Iterable Data* |
    | **Data Location** | *Pipeline Context Source* |

5. Save the item.
6. Drag and drop the new item to the second position in the *Pipelines* folder.

    ![Move the Iterate Rows from Text File and Run Pipeline pipeline step in the content tree](https://doc.sitecore.com/api/markdown-image/xp/en/developers/def/60/data-exchange-framework/images/pipeline-step-iterate-ordered.png)