cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ggryan2021
Frequent Visitor

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

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
miketran13
Solution Specialist
Solution Specialist

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

View solution in original post

1 REPLY 1
miketran13
Solution Specialist
Solution Specialist

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

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Top Solution Authors
Users online (1,533)