Object Reference Not Set To Instance Of Object

Hi,

I am getting an error message that reads “Object Reference Not Set To Instance Of Object” while performing a write range activity from a datatable using data from a get text activity on multiple web pages. I have tried using the VBexpression New System.Data.DataTable. The error message I receive is below:

“19.7.0+Branch.master.Sha.8c253d13718eed5c7db27daef6facd1fe1b0d067
Source: Write Range
Message: Object reference not set to an instance of an object.
Exception Type: System.NullReferenceException
RemoteException wrapping System.NullReferenceException: Object reference not set to an instance of an object.
at UiPath.Core.Activities.ScopeActivity.OnFaulted(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.Invoke(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)”

use write cell to write the data,as you are using get text,it will be in string format.
Thanks

Hi,

Thanks for your response. The get text activity occurs multiple times across several different web pages. Should I try changing get text to a data scrape?

if it is single value then get text is good,
but if it is multiple and structured table then better option is datascraping.

It is a yes or no response from people who have responded to a questionnaire. It is a single value on webpage, then travels to the next respondent, gets text on their response and so on.

I still am getting the error that reads object reference not set…

I have a data scrape earlier in the sequence, is that somehow causing the issue?

if it looks like table in web page means data scraping is best.
if you want the single value in particular page means better go with get text and use write cell to write the data.
if ur using data scraping use write range and pass the output value to the write range .
i think this will be helpful to u :slightly_smiling_face:
or else share me workflow will analyze the issue

Thanks,

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