表データを抽出からうまくデータテーブルにデータが入らない


表データを抽出アクティビティでお店の情報をデータテーブルに格納したいです。
しかし
データ テーブルを Excel に書き込みの段階で以下のエラーが表示されてしまいます。

ソース:データテーブルをExcelに書き込み
メッセージ:データテーブルに行または列がありません
例外の型:UiPath.Excel.ExcellException

原因がわかりません。

こんにちは

取り急ぎ原因の切り分けのために「表データを抽出」アクティビティにブレイクポイントをセットして
デバッグ実行→このアクティビティで停止するので、F11でステップインでこのアクティビティの処理を行い、その後停止した段階で、ローカルパネル内でmergedDataTableの中身の有無を確認してみてください。
この時点でmergedDataTableが空であれば、表抽出の設定の見直しが必要と思われます。

DataTableに値が取得されていないからではないでしょうか?
表データを抽出の次のアクティビティにBreak Pointを設定してローカルパネルでDataTableの値を見てください。

Error mentions that the datatable does not contains any rows or columns which means that the extract datatable activity didnt performer as expected

Kindly debug and confirm that the datatable contains value

You can put a message box and give value as mergedDataTable.rows.count and confirm the value is coming as the first step

@oyaken0717

As per the error, below will may causes

  1. There is no such data to extract the table data means from table extraction you may not getting any data
  2. may be you are using one data table variable to extract the data in table extraction and using another data table variable to write the data in excel
  3. check the variable Scope of the variable whether write range activity is in that scope or not
  4. use debug check whether you are able to getting data or not from web, use step into action and **mergeddatatable ** variable having the data or not until writing data to excel.

Happy Automation!!

抽出対象を大きく変更したらうまくいきました。
ありがとうございました。

1 Like

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