UiPath Activities

The UiPath Activities Guide

UiPath.CSV.Activities.ReadCsvFile

Description

Reads all entries from a specified CSV file.

Properties

File

  • FilePath - Full path of the CSV file.

Output

  • DataTable - Represents the output DataTable that contains the information obtained from the CSV file.

Options

  • Delimiter - Specifies the delimiter in the CSV file: 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.
  • Has headers - Specifies if the first row in the CSV file should be considered a header row. If set to false, the output DataTable will have columns with default names.
  • IgnoreQuotes - Specifies if quotes should be ignored when reading the file.

Common

  • DisplayName - The display name of the activity.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Example of Using the Read CSV Activity

To exemplify how to use this activity, we have built an automation project that, among others, includes a Read CSV activity.

You can check and download the example from here

UiPath.CSV.Activities.ReadCsvFile

Description

Copies all entries from a specified CSV file to an Excel range, table, 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.

Configuring the Activity

In the Body of the Activity

  • Read from file - Click Browse 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 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 CurrentFile > Full Path to indicate the path of the file you are currently iterating through.
    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, you can select a cell 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 Project Notebook.
    • Ask when run - Prompt for a file path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • Output to - Click Plus plus button on the right side of the field and then, from the menu, select what to do with the copied data:
    • Select a parent Excel file and then a range, table, or sheet, or indicate a range in Excel where to copy the data.
    • Save for Later Use - Save the output data for later use 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. If not selected, a header row is added. This option is selected by default.

In the Properties Panel

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 - Select the delimiter used in the CSV file: Tab, Comma(','), Semicolon(';'), Caret('^'), or Pipe('|').
  • Encoding - Select 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, select Plus plus button > Text, and then enter the value from the Name field in the Text Builder. 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.
  • Has headers - See Has headers in the body of the activity.
  • IgnoreQuotes - Specifies if quotes should be ignored when reading the file.

Output

Updated 3 months 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.