# 繰り返し(各行)でエラー

**URL:** <https://forum.uipath.com/t/topic/81445>\
**Category:** フォーラム\
**Tags:** studio\
**Created:** [December 11, 2018, 5:51am UTC](https://forum.uipath.com/t/topic/81445 "2018-12-11T05:51:12Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![atsutaro](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@atsutaro](https://forum.uipath.com/u/atsutaro)\
**Post date:** [December 11, 2018, 5:51am UTC](https://forum.uipath.com/t/topic/81445/1 "2018-12-11T05:51:12Z")

</div>

Uipathを実行したところ「繰り返し(各行)オブジェクト参照がオブジェクトインスタンスに設定されていません」エラーで止まります。どのように修正すればよろしいでしょうか？教えてください。よろしくお願いいたします。

 ![%E3%82%AD%E3%83%A3%E3%83%97%E3%83%81%E3%83%A3](https://global.discourse-cdn.com/uipath/original/3X/2/5/25578c1d6e4d23fa482e811c1633105a2996f16e.png)

---

<div class="post-metadata">

**Author:** ![KarthikByggari](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/karthikbyggari/32/430060_2.png) [@KarthikByggari](https://forum.uipath.com/u/KarthikByggari)\
**Post date:** [December 11, 2018, 6:01am UTC](https://forum.uipath.com/t/topic/81445/2 "2018-12-11T06:01:19Z")

</div>

Please make sure that “transactions” is initialized and contains data.

---

<div class="post-metadata">

**Author:** ![atsutaro](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@atsutaro](https://forum.uipath.com/u/atsutaro)\
**Post date:** [December 11, 2018, 6:06am UTC](https://forum.uipath.com/t/topic/81445/3 "2018-12-11T06:06:52Z")

</div>

Please tell me how to check if data is included.

 ![%E3%82%AD%E3%83%A3%E3%83%97%E3%83%81%E3%83%A3](https://global.discourse-cdn.com/uipath/original/3X/e/7/e7a2e17ee07650e2785d9be5793bfede94fdb32b.png)

---

<div class="post-metadata">

**Author:** ![KarthikByggari](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/karthikbyggari/32/430060_2.png) [@KarthikByggari](https://forum.uipath.com/u/KarthikByggari)\
**Post date:** [December 11, 2018, 6:10am UTC](https://forum.uipath.com/t/topic/81445/4 "2018-12-11T06:10:16Z")

</div>

“transactions” has to be initialized before the For Each Loop Activity.

Where you are assigning the “transactions”.

Considering the transactions is a data table, it should have some data - like explained in the below link

> **[Studio - Types of Variables](https://docs.uipath.com/studio/standalone/latest/user-guide/types-of-variables#data-table-variables)**
>
> The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...

---

<div class="post-metadata">

**Author:** ![atsutaro](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@atsutaro](https://forum.uipath.com/u/atsutaro)\
**Post date:** [December 11, 2018, 9:28am UTC](https://forum.uipath.com/t/topic/81445/5 "2018-12-11T09:28:58Z")

</div>

I’m sorry. I do not understand it in English. Is there a Japanese FAQ site?

---

<div class="post-metadata">

**Author:** ![KarthikByggari](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/karthikbyggari/32/430060_2.png) [@KarthikByggari](https://forum.uipath.com/u/KarthikByggari)\
**Post date:** [December 11, 2018, 9:33am UTC](https://forum.uipath.com/t/topic/81445/6 "2018-12-11T09:33:34Z")

</div>

Open the same link and change language to Japanese as shown in the below figure.

 ![image](https://global.discourse-cdn.com/uipath/original/3X/9/b/9b469a30d8b6263a18bac041ffe2caddbd4497ba.png)

---

<div class="post-metadata">

**Author:** ![atsutaro](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@atsutaro](https://forum.uipath.com/u/atsutaro)\
**Post date:** [December 11, 2018, 9:36am UTC](https://forum.uipath.com/t/topic/81445/7 "2018-12-11T09:36:05Z")

</div>

> [@KarthikByggari](#):
>
> Open the same link and change language to Japanese as shown in the below figure.

Thank you! I will look it later!

---

<div class="post-metadata">

**Author:** ![kyd\_has](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@kyd\_has](https://forum.uipath.com/u/kyd_has)\
**Post date:** [December 12, 2018, 12:33am UTC](https://forum.uipath.com/t/topic/81445/8 "2018-12-12T00:33:08Z")

</div>

System.NullReferenceException(オブジェクト参照がオブジェクトインスタンスに設定されていません。)  
エラーメッセージはその名前の箱（変数）には中身がないよというメッセージです。

繰り返し（各行）の前の処理で、"transactions"に値を設定されていますでしょうか。

"ExcelとWebアプリを自動処理するには"という名前から、excelファイルから読み込んでいるデータかWebからスクレイピングで持ってきているデータだろうとは思うのですが。。

もう少し全体があるとよいのですが、現時点で想像できる原因は以下ぐらいでしょうか。。

1.取ってきている変数と読み込もうとしている変数名が違う  
2.変数名が同じでもスコープ（変数を使用できる範囲）が違う

ご参考まで。

---

<div class="post-metadata">

**Author:** ![sumire](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sumire/32/40091_2.png) [@sumire](https://forum.uipath.com/u/sumire)\
**Post date:** [December 12, 2018, 1:22am UTC](https://forum.uipath.com/t/topic/81445/9 "2018-12-12T01:22:14Z")

</div>

こんにちは  
たぶん  
Mainのワークフロー全部が写ってるスクショと  
変数のところのスクショがあると  
回答が得られやすいように思います。  
繰り返しのアクティビティ単体だと、これの前がどうなってるのかわからないので……。

---

<div class="post-metadata">

**Author:** ![atsutaro](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@atsutaro](https://forum.uipath.com/u/atsutaro)\
**Post date:** [December 13, 2018, 8:52am UTC](https://forum.uipath.com/t/topic/81445/10 "2018-12-13T08:52:54Z")

</div>

> [@kyd\_has](#):
>
> 繰り返し（各行）の前の処理で、"transactions"に値を設定されていますでしょうか。

回答ありがとうございます。そして連絡が遅くなりまして申し訳ないです。

＞繰り返し（各行）の前の処理で、"transactions"に値を設定されていますでしょうか。

設定されていませんでした。そのため設定したらうまくいきました！

ちなみにUipathの練習として以下の内容をやっています。

> **[【できるUiPath】RPAによる経費精算処理・前編。ExcelとWebアプリを連携する処理を作る](https://dekiru.net/article/17138/)**
>
> UiPath（ユーアイパス）で経費精算処理を自動化してみましょう。ここでは、Excelの表のデータを読み取って、Webアプリに自動的に入力するワークフローを作成します。

> **[【できるUiPath】RPAによる経費精算処理・後編。Excelのデータを繰り返し入力する処理を作る](https://dekiru.net/article/17139/)**
>
> UiPath（ユーアイパス）で経費精算処理を自動化するワークフローの続きを作成していきましょう。Excelから読み取ったデータをデモアプリに入力する繰り返し処理を中心に作成します。

---

<div class="post-metadata">

**Author:** ![atsutaro](https://avatars.discourse-cdn.com/v4/letter/a/bb73d2/32.png) [@atsutaro](https://forum.uipath.com/u/atsutaro)\
**Post date:** [December 13, 2018, 8:53am UTC](https://forum.uipath.com/t/topic/81445/11 "2018-12-13T08:53:51Z")

</div>

ご連絡ありがとうございました。今後の参考にします(変数のスクショ)

Uipathの練習として以下の内容をやっています。

> **[【できるUiPath】RPAによる経費精算処理・前編。ExcelとWebアプリを連携する処理を作る](https://dekiru.net/article/17138/)**
>
> UiPath（ユーアイパス）で経費精算処理を自動化してみましょう。ここでは、Excelの表のデータを読み取って、Webアプリに自動的に入力するワークフローを作成します。

> **[【できるUiPath】RPAによる経費精算処理・後編。Excelのデータを繰り返し入力する処理を作る](https://dekiru.net/article/17139/)**
>
> UiPath（ユーアイパス）で経費精算処理を自動化するワークフローの続きを作成していきましょう。Excelから読み取ったデータをデモアプリに入力する繰り返し処理を中心に作成します。
