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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard