アクティビティ
最新
バナーの背景画像
生産性を高めるアクティビティ
最終更新日 2024年4月26日

CSV を読み込み

UiPath.CSV.Activities.ReadCsvFile

説明

指定した CSV ファイルのすべてのエントリを Excel の範囲、表、またはシートにコピーするか、オートメーションにおいて後で使用するためにデータを保存します。

プロジェクトの対応 OS

Windows - レガシ | Windows | クロスプラットフォーム

クロスプラットフォームでの設定

アクティビティの本体
  • Read from resource file - Click Plus on the right side of the field to toggle between using a local path or a Resource file. We recommend using relative folder paths to accommodate the file structure variations between Windows and Linux during project execution. For example, newFolder or otherFolder.
  • Output to - Represents the output DataTable that contains the information obtained from the CSV file.

  • Has headers - If enabled, 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.

プロパティ

オプション

  • 区切り文字 - CSV ファイルで使用されている区切り文字を選択します。[Tab][Comma] (,)、[Semicolon] (;)、[Caret] (^)、または [Pipe] (|) を指定できます。
  • エンコード - 使用するエンコードの種類を選択します。各文字エンコードのコードの完全なリストについては、こちらをご覧ください。エンコードの種類が指定されていない場合、アクティビティはファイルのバイト オーダー マークを検索してエンコードを検出します。バイト オーダー マークが検出されない場合は、システム ANSI コード ページが既定で選択されます。
  • 引用符を無視 - ファイル読み取り時に引用符を無視するかどうかを指定します。

Windows - レガシ、Windows での設定

アクティビティの本体
  • Read from file - Click the folder icon next to the field, and then browse to and select the CSV file to copy the data from. Alternatively, you can click the Plus icon 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.
    • プロジェクト ノートブック、親の Excel ファイル、または Outlook アカウントからのデータ。たとえば、ファイル パスを含むセルを選択できます。
    • テキスト - テキスト ビルダーでファイル パスを入力します。テキストに Excel ファイルのセルの数式を結合できます。たとえば、プロジェクト ノートブックの数式を使用して、ファイル名に日付を追加できます。
    • 実行時に確認 - プロジェクトの実行時にファイル パスの入力を求めます。
    • 詳細エディターを開く - VB の式を入力します。
  • Output to - Click the Plus icon on the right side of the field and then, from the menu, select what to do with the copied data:

    • 親の Excel ファイルを選択し、データのコピー先になる範囲、表、またはシートを選択するか、Excel で範囲を指定します。
    • Save for Later Use - Save the output data for later use in your project as input for another activity.
    • 詳細エディターを開く - VB の式を入力します。
  • 先頭行をヘッダーとする - 選択すると、CSV ファイルの先頭行がヘッダー行に指定されます。選択しないと、ヘッダー行が追加されます。既定では、このオプションは選択されています。
プロパティ パネル

共通

  • 表示名 - デザイナー パネルに表示されるアクティビティの名前です。

ファイル

  • ファイル パス - 「アクティビティの本体」の「読み込み元ファイル」をご覧ください。

その他

  • プライベート - オンにした場合、変数および引数の値が Verbose レベルでログに出力されなくなります。

オプション

  • 区切り文字 - CSV ファイルで使用されている区切り文字を選択します。[Tab][Comma] (,)、[Semicolon] (;)、[Caret] (^)、または [Pipe] (|) を指定できます。
  • エンコード - 使用するエンコードの種類を選択します。各文字エンコードのコードの完全なリストについては、こちらをご覧ください。エンコードの種類が指定されていない場合、アクティビティはファイルのバイト オーダー マークを検索してエンコードを検出します。バイト オーダー マークが検出されない場合は、システム ANSI コード ページが既定で選択されます。
  • 先頭行をヘッダーとする - 「アクティビティの本体」の「先頭行をヘッダーとする」をご覧ください。
  • 引用符を無視 - ファイル読み取り時に引用符を無視するかどうかを指定します。

出力

  • データテーブル - 「アクティビティの本体」の「出力先」をご覧ください。

[CSV を読み込み] アクティビティの使用例

Was this page helpful?

サポートを受ける
RPA について学ぶ - オートメーション コース
UiPath コミュニティ フォーラム
UiPath ロゴ (白)
信頼とセキュリティ
© 2005-2024 UiPath. All rights reserved.