Unable to start execution & Change file

image
Getting this error message while trying to debug the code, any help would be highly helpful.


Wanted to change the File but was unable to do it as the error message throws up.

@Kumaresan_Boopathy

The exception occurs generally when a variable is null or some value that is to be provided is not

Cheers

@Anil_G I didn’t get that can you explain in detail please.

@Kumaresan_Boopathy

Object reference error means…say you are using a variable x in your activity and if that variable x value is not assigned before this step or the variable is not initialized…then it would through this error…as the variable value is expected but value is not present…is that clear

Cheers

Hi! In case some variables are not initialized this errro shows up.Kindly check if yoiu need to initialize any variable e.g- for list of string you need to take an assign activity, create a list(string) variable and and initialize by giving value new(list of String).

(CurrentRow(“Requester Name”).ToString()).Remove(0,8)



The GSheet isn’t accessible is that the reason CurrentRow isn’t getting declared?

@Kumaresan_Boopathy

What is currentrow?…

Ideally that is a variable which is accessible only inside your for loop and not in variable properties…

Inside the for loop use an assign actviity and then assign currentrow etc to the variable you want to assign

Cheers

Thanks Anil_G. When i do a search with a few criteria like From& To date, Username, and status the system keeps loading, and the bot doesn’t realize it and moves forward for the next time to search. How do I stop this from happening please advice.

Adding more details to the Query, when I search a record manually there isn’t any wait time but when I search through the bot the loading screen appears and the data isn’t getting fetched.

I tried delay and Onscreen element but no luck as the element isn’t appearing the bot continues to the next record and ends up in error. Any advice would be helpful. Thanks

@Kumaresan_Boopathy

Try using wait for load complete before entering the data so that the site loads and then the data is added

Also if you are using any element exists add a delay before element exists or use a wait for load complete there as well

cheers

Anil_G I’m not adding any data to the site. I’m trying to search for a user with a date & status filter. I tried Wait and Element Exists but no luck.


With “Wait Image Vanish” the process of moving to the next record was delayed but eventually it didn’t stop proceeding to the next record.

@Kumaresan_Boopathy

Depending on wait element you have to provide condition to move ahead or not…like logic needs to be implemented

better raise a separate topic with full details of what is needed so that issues can be segregated

cheers

Anil_G I’ve a new topic on this already. Here is the link to it.

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