Uipath起動時のエラーについて

お世話になります。

Uipathを起動すると下記のようなエラーが出ます。
何が悪いのかご存じの方ご教示お願い致します。

名前が’Constraint<Activity>’の制約を名前が’項目を選択’市町村’の型
UiPath.UIAutomationNext.Activities.NSelectltemのアクティビティに対して実行
しているときに内部制約例外が発生しました。例外:
System.NullReferenceException:オブジェクト参照がオブジェクトインスタンスに
設定されていません。

@Yuzuki_Hanai

As per error some variable you are using is null or is not initialized

cheers

@Yuzuki_Hanai

Go to the workflow where you have the ‘Select Item’ activity targeting the ‘City’ item. Make sure that all properties, constraints, and variables used within this activity are correctly set and initialized.

Look for any variables or properties that might be null when the activity is executed. Make sure that all variables used in the activity are initialized properly and contain valid values.

Please debug the process so that it will be easy to identify the exception

Hi @Yuzuki_Hanai

The error message you’re encountering suggests that there’s a null reference exception, meaning that the program is trying to access an object or member that hasn’t been initialized. This typically occurs when you’re trying to access a property or method of an object that is currently set to Nothing (null).

Make sure the variable you are passing in Select Item activity has some value. Try to debug the process by placing a break point near Select Item activity and check whether the value has been stored or not using Immediate panel.

Regards

こんにちは。
初期化とはどのようにすればいいのでしょうか。

@Yuzuki_Hanai

Depending on the variable there are different methods…

As simple as using assign and assign a value to that variable like var1 = "value"

Cheers

Anil_Gさん

ありがとうございます。
「項目を選択」で取得したデータを初期化したいのですが
どうすればいいのでしょうか。

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