web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / System.NullReferenceEx...
Power Automate
Answered

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

(0) ShareShare
ReportReport
Posted on 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.

 

I have the same question (0)
  • Verified answer
    miketran13 Profile Picture
    720 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 284 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 188 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard