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

**URL:** <https://forum.uipath.com/t/topic/2766616>\
**Category:** フォーラム\
**Created:** [March 27, 2025, 3:31am UTC](https://forum.uipath.com/t/topic/2766616 "2025-03-27T03:31:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![oyaken0717](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/oyaken0717/32/517976_2.png) [@oyaken0717](https://forum.uipath.com/u/oyaken0717)\
**Post date:** [March 27, 2025, 3:31am UTC](https://forum.uipath.com/t/topic/2766616/1 "2025-03-27T03:31:50Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/4X/b/0/2/b0207fc6b7986d177a3661196b79d54f62612b63.png)  
表データを抽出アクティビティでお店の情報をデータテーブルに格納したいです。  
しかし  
データ テーブルを Excel に書き込みの段階で以下のエラーが表示されてしまいます。

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

原因がわかりません。

---

<div class="post-metadata">

**Author:** ![Yoichi](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yoichi/32/523754_2.png) [@Yoichi](https://forum.uipath.com/u/Yoichi)\
**Post date:** [March 27, 2025, 3:35am UTC](https://forum.uipath.com/t/topic/2766616/2 "2025-03-27T03:35:01Z")

</div>

こんにちは

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

---

<div class="post-metadata">

**Author:** ![gorby](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gorby/32/543563_2.png) [@gorby](https://forum.uipath.com/u/gorby)\
**Post date:** [March 27, 2025, 3:35am UTC](https://forum.uipath.com/t/topic/2766616/3 "2025-03-27T03:35:05Z")

</div>

> [@oyaken0717](#):
>
> データ テーブルを Excel に書き込みの段階で以下のエラーが表示されてしまいます

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

---

<div class="post-metadata">

**Author:** ![sharazkm32](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sharazkm32/32/492954_2.png) [@sharazkm32](https://forum.uipath.com/u/sharazkm32)\
**Post date:** [March 27, 2025, 3:59am UTC](https://forum.uipath.com/t/topic/2766616/4 "2025-03-27T03:59:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![yedukondaluaregala](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yedukondaluaregala/32/557780_2.png) [@yedukondaluaregala](https://forum.uipath.com/u/yedukondaluaregala)\
**Post date:** [March 27, 2025, 6:13am UTC](https://forum.uipath.com/t/topic/2766616/5 "2025-03-27T06:13:31Z")

</div>

@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!!

---

<div class="post-metadata">

**Author:** ![oyaken0717](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/oyaken0717/32/517976_2.png) [@oyaken0717](https://forum.uipath.com/u/oyaken0717)\
**Post date:** [March 27, 2025, 9:37am UTC](https://forum.uipath.com/t/topic/2766616/6 "2025-03-27T09:37:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [March 30, 2025, 9:38am UTC](https://forum.uipath.com/t/topic/2766616/7 "2025-03-30T09:38:29Z")

</div>

Closed on March 30, 2025, 9:38am UTC

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