UiPath Activities

The UiPath Activities Guide

Create File

UiPath.Core.Activities.CreateFile

Description

Creates an empty file in the specified location. If a file already exists at that location, it is replaced. If you want to create a file in which you want to write, it is recommended to use the Append Line activity.

Properties

File

  • Path - The full path of the file to be created.
  • Name - The name of the file to be created.

Common

  • DisplayName - The display name of the activity.
  • ContinueOnError - Specifies if the automation should continue even when the activity throws an error. This field only supports Boolean values (True, False). The default value is False. As a result, if the field is blank and an error is thrown, the execution of the project stops. If the value is set to True, the execution of the project continues regardless of any error.

Note:

If this activity is included in Try Catch and the value of the ContinueOnError property is True, no error is caught when the project is executed.

Misc

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

UiPath.Core.Activities.CreateFile

Description

Creates a file in the specified location.

To learn how to use this activity, see Tutorial: Working with Files and Folders.

Configuring the Activity

In the Body of the Activity

  • File location - Click Browse browse files next to the field, and then browse to and select the folder where to create the file. Alternatively, you can click Plus plus button on the right side of the field and select one of the available options to indicate the folder path:
    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, you can select a cell that contains a folder path.
    • Use Saved Value - Select a value in the form of a folder path that you previously saved for later use in the project.
    • Text - Enter a folder path in the Text Builder.
    • Ask when run - Prompt for a folder path when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.
  • File name - Click Plus plus button on the right side of the field, and then use one of the options in the menu to indicate the name of the file to create:
    • Data from the Project Notebook, a parent Excel file or Outlook account. For example, you can select a cell that contains the file name.
    • Use Saved Value - Select a table value that you previously saved for later use in the project.
    • Text - Enter the name in the Text Builder.
    • Ask when run - Prompt for a name when the project is executed.
    • Open in Advanced Editor - Enter a VB expression.

In the Properties Panel

Common

  • ContinueOnError - If selected, specifies that the automation should continue even when the activity throws an error. If not selected, the execution of the project stops when an error is encountered.
  • 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.

Updated 4 days ago


Create File


Suggested Edits are limited on API Reference Pages

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