Build Datatableアクティビティでヘッダ(列名)が作成できません

こんにちは
UiPath Studio 2024.10.4Community editionのユーザです。

奇妙なことが起きたので事実関係を確認させてください。

1.Build Datatableアクティビティでdtを作成しました。(添付画像のとおり列名"TimeSpan"を作成しています)

2.Read Range(Workbook)アクティビティでヘッダを追加をクリックして、
The image shows the properties window of the UiPath Excel Read Range activity with the "Add Headers" checkbox checked. (Captioned by AI)

Excelからdtにデータを取得しましたが、ローカルパネルで見たら列名"TimeSpan"がdtの中に表示されていません。
The image shows a list of time values in a text editor, with a header in Japanese that reads "ローカル値" (Local Values). (Captioned by AI)

どうしてでしょうか?

Hi @gorby

Can you show the screenshot of workflow and no need to use below row delete that

Regards,

こんにちは

ReadRangeアクティビティは、DataTableのインスタンスを新規に出力しますので、従前に設定したDataTableの内容は反映されません。

そのため動作としては正常です。

@gorby,

Add header will add column name from excel file.

If you want custom column name of the datatable, try this approach.

  1. Don’t use build datatable.
  2. Use read range activity with Add header unchecked. This will create datatable with default column name like Column1
  3. Change the column name in Assign activity.
    yourDT.Columns(0).ColumnName = "New Column Name"

Thanks,
Ashok :slightly_smiling_face:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.