Skip to main content

Notifications

Community site session details

Community site session details

Session Id : jtzO2zyy8HGekCzTqyK9mW
Power Automate - Power Automate Desktop
Answered

System.NullReferenceException: Object reference not set to an instance of an object.

Like (0) ShareShare
ReportReport
Posted on 28 Jan 2021 16:43:45 by 23

I am trying to create a desktop flow to read from an excel sheet on my local machine and enter it on various screens of a web app.

 

It was working fine yesterday but today i keep getting the following error:

Robin.Core.ActionException: Click link on web page failed. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Robin.Modules.WebAutomation.Actions.WebAutomationRuntime.ClickLinkOnWebPage(WebBrowserInstanceVariant webBrowserInstanceVariant, TextVariant cssSelectorForLinkElement, Boolean waitForPageToLoad, TextVariant dialogButtonToPress, WebPageCourseOfActionIfDialogAppearsEnum courseOfActionIfDialogAppears)
at Robin.Modules.WebAutomation.Actions.WebAutomationActions.ClickLinkOnWebPage(Variant webBrowserInstance, Variant cssSelectorOfElementToClick, Variant dialogButtonToPress, Boolean waitForPageToLoad, Int32 courseOfActionIfDialogAppears)
--- End of inner exception stack trace ---
at Robin.Modules.WebAutomation.Actions.ClickBase.Execute(ActionContext context)
at Robin.Runtime.Engine.ActionRunner.RunAction(String action, Dictionary`2 inputArguments, Dictionary`2 outputArguments, IActionStatement statement)

 

If i update the UI Element it will work fine but then I will get the error at another point in the flow.

Any help, advice, tips will be greatly appreciated.

 

  • Verified answer
    miketran13 Profile Picture
    720 on 03 Feb 2021 at 06:47:53
    Re: System.NullReferenceException: Object reference not set to an instance of an object.

    Hi,

     

    I guess, it related to your UI element so that it can process for Item A but could not process for Iteam B. You should look at your UI element again and make sure it can handle all items from your excel data. Because when the UI element is captured, it always includes a Web Page title (it depends on item is processing), x-path is also different for each item (like html element Id, css class, etc.)

     

    In that cases, you have to use regular expression in your UI element or using operator like: Contains, starts with, ... to handle different items.

     

    Thanks and hope it can help you. 

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 11 Super User 2025 Season 1

#2
KO-05050229-0 Profile Picture

KO-05050229-0 4

#2
John_Mavridis Profile Picture

John_Mavridis 4 Microsoft Employee

Overall leaderboard
Loading started