Could not find the user-interface (UI) element for this action for repeated iterations

Hi All, I am having a problem whereby after the 1st iteration, i got this error “Could not find the user-interface (UI) element for this action”. Everything works fine in the first iteration.

Sometimes the issue occurs at the
Click 'Start Service Start Test or
Take Screenshot ‘System.Windows.Controls…’ or
Click ‘Close’

My work flow

Thanks

Hi!

welcome to community!

where we are getting the error can we use anchor base with find element activity inside the anchor and inside the action keep your click activity(Which is getting error)

Regards,
NaNi

Hi NaNi

Thanks for the reply

I just started UiPath so I don’t have much knowledge here

Do you mean by this? I have added an anchor to the click activity

image

Thanks

Hi!

We have an activity called anchor base! just search it in Activities panel.

for your reference: https://docs.uipath.com/activities/docs/anchor-base

Regards,
NaNi

Hi NaNi

Thanks for the reference.

I managed to add in the anchor base but it is still reporting unable to find the UI element.

Thanks

Hi!

if anchor base not working will do one thing.

Take one element exists activity. and indicate the element which it is appearing and output as element_Exists.

now take one if condition (element_Exists=True)

Then-> Click activity
Else->throw activity! or copy the same click activity and paste it in else block

Regards,
NaNi

I have the same problem.

My robot should take every single word document (from a folder), changing the “Protection” setings of the document (protected by password - ever the same).
It do well the first document. When opens the second it doesn’t find the “user-interface (UI) element”, giving me the error message “Could not find the user-interface (UI) element for this action”.

It is very strange because restarting the run, the first document is ever OK…

Please advise

Hi NaNi,

I have tried to redo my whole workflow and it works now.

Thanks for your assistance