---
title: "How to use Onesait origin file"
canonical: "https://onesaitplatform.refined.site/space/DOCT/2220822872/How%20to%20use%20Onesait%20origin%20file"
format: markdown
---
> ℹ️ This node is available from version 2.0.2 of the Platform.

## Description

The Onesait origin file is used to read large files from the Binary Files of the Onesait Platform.

## How to use it

### Importing to the pipeline

To add it to the pipeline, search for Onesait in the stages palette like so:

![image](media://8f08187e-c441-4801-a6cf-d1363473957b)

Drag and drop to the panel.

![image](media://96100c5b-870d-4c51-a51b-d52d29725ee5)

Once imported, it can be configured to achieve different beheaviours depending on the case. 

### General tab

This tab has general information and an option to show the event generator point on the stage.

![image](media://bbf0a819-0ad8-45cd-a05a-0aaddf8e4529)

Checking the "*Produce Events*" option the stage shows another point to make usage of the events.

The events are triggered on:

- Initilization.
- No more data to read from the file.
- Page read.

![image](media://6e65d5f9-e333-45a9-b749-042066818878)

**Connection tab**

This tab shows a form to fill with the needed information to connect with the Platform’s Control Panel.

![image](media://e61d0c2c-5910-4e33-a467-a94f63e93ac2)

> ℹ️ Only users authorized will be allow to read the file selected.

**Configuration tab**

This tab shows a form to fill with the reading configuration. 

- <u>File Id</u>: the id of the file you want to read.
- <u>Batch number</u>: numer of lines that can be red each time.
- <u>Starting offset</u>: the line number you want to start reading on.
- <u>Skip headers</u>: choose whether you want to return the headers of the CSV file each time or not.
- <u>Stop on complete</u>: stop pipeline when finish.

![image](media://62f4da57-001e-4921-8c4f-0144016992d6)

**Result**

Suppose that we are reading a CSV file and that we have configured the node to include the headers. We would obtain a result of the style:

![image](media://a44d9408-c11b-4977-b3f1-395f7c4dddc3)