Write Range Error In Code

FetchingStockData.xaml (25.1 KB)

Hi Guy, i wrote code that fetches live stock quotes, i keep getting this error when it gets to write range at the end of the activity

Write Range: Object reference not set to an instance of an object.

is the flow of my code correct?

1 Like

This means that there is something being passed into the activity which is null. Check the variables you’re passing into the activity in debug mode.

1 Like

Fine lets go one by one
here mention the input as item and not the current filepath mentioned as item is the variable which now hs the filepath we want
image

andkeep this whole for each inside the open browser and then try
image

And finally make sure that get text activity is working fine and hrs value from the page
For that to validate use a writeline activity and mention the output variable we obtained
Place those writeline activity next to those get value activity so that we can see the value in the output panel

CHeers @Mpumi_Setshedi

2 Likes

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