I am trying to create a for each loop where the “find OCR text position” is used to click on the position of a specific file. this file changes name with each loop and so i have a string list of all the files (ProjectList), this is confirmed working. So I call upon this variable in each loop inside OCR find text position with the variable “Project” i am then commanding it to click at the coordinates that the text is found at but i cannot get the text position finding activity to work.
currently i am getting this fault: Find OCR Text Position ‘ols.64bit.exe Open’: Request CorrelationId: cac674c7-f377-436d-b83a-85ff675a60cf
Request PredictionId:
Object reference not set to an instance of an object.
here are the properties of my find OCR text position:
Hi, @CB2498 You are getting this error because either your selector doesn’t match at runtime the “Project” variable has no text on screen, or the OCR engine can’t find the string which results in a null output.
Double-check the selector and make sure the text exists for every loop. Always check if the output (ProjectCoordinate) is not Nothing before clicking. Wrapping this activity in a Try-Catch will help handle cases where the text isn’t found.
i appreciate your ideas but I really think I have gone through all of your points and as far as I can tell these are all working properly. I have printed all variables up until the point of trying to find the text and they are all as I want them to be, I am sure the screen I want it to read from is open as I watch it open and I have selected that menu as my selector I have various cv activities before this point but I just cannot get this find text position to perform.