Subscribe

UiPath StudioX

The UiPath StudioX Guide

Read CSV

UiPath.CSV.Activities.ReadCsvFile

Copies all entries from a specified CSV file to an Excel range or sheet, or saves the data for later use in your automation.

To learn how to use this activity, see Tutorial: Copying from CSV to Excel and Emailing the File.

In the Body of the Activity

  • Read from file - Click browse files next to the field and then browse to and select the CSV file to copy the data from. Alternatively, you can click plus button on the right side of the field and then, from the menu, choose one of the available options to indicate the path of the file:
    • If the activity is inside a For Each File in Folder activity, you can select Current File > Full Path to indicate the path of the file you are currently iterating through.
    • Data from an application added to a card or from the Excel Workspace. For example, select an Excel file and then select a cell that contains a file path, or indicate a field from a selected email in Outlook that contains a file path.
    • Text - Enter a file path in the Text Builder. You can combine text with a formula from an Excel file cell, for example to add a date to the file name using formulas in the Excel Workspace.
    • Open in Advanced Editor - Enter a VB expression.
  • Output to - Click plus button on the right side of the field and then, from the menu, select what to do with the copied data:
    • Select an Excel file and use the available options to choose a table, a sheet, or indicate a range in Excel where to copy the data.
    • Save for Later Use - Use the output data later in your project as input for another activity.
    • Open in Advanced Editor - Enter a VB expression.
  • Has headers - If selected, it indicates that the first row in the CSV file is a header row and this row will not be copied. If not selected, the first row in the CSV file is copied. By default, this option is selected.

Properties

Common

  • DisplayName - The name displayed for the activity in the Designer panel.

File

Misc

  • Private - If selected, the data used in the activity is not logged by StudioX.

Options

  • Delimiter - Specifies the delimiter in the CSV file. It can be tab, comma(','), semicolon(';'), caret('^'), or pipe('|').
  • Encoding - The encoding type to be used. You can find the complete list of codes for each character encoding here. To specify the encoding type to be used, use the value from the Name field. If no encoding type is specified, the activity will search for the file's Byte Order Marks to detect the encoding. If no Byte Order Marks are detected, the system ANSI code page is selected by default. This field supports String variables.
  • HasHeaders - See Has headers in the body of the activity.
  • IgnoreQuotes - Specifies if quotes should be ignored when reading the file.

Output

Updated 2 years ago


Read CSV


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.