AddDataRowアクティビティでエラー

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

DataTable dt_Datatableで列名"Date"が"2024/06/10"でかつ列名"Status"が="〇"の行の数を配列要素をカウントする方式で数え、
抽出した配列を別のDataTable dt_Datatable2に代入するWFを作成してみました。

隠れて見えないコードは下記になります。

arr_DataRow = dt_Datatable.Select(“Date=‘2024/06/10’ AND Status=‘〇’”)

有識者の方、2点ご教示ください。

1.DataTable dt_Datatableで列名"Date"が"2024/06/10"でかつ列名"Status"が="〇"の行の数を配列要素カウント方式ではなく、
Datatable.Select文でカウントする方法はありますか?

2.最後のAddDataRowアクティビティで添付のエラーが出ます。対処法をご教示ください。
error

@gorby

  1. Dt.Select(…).Count is the way to count the filtered rows
  2. You cannot directly add a datarow from one table to another …instead of sending currentdatarow as input in datarow field…use it in array field with currentDataRow.ItemArray

Cheers

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