UiPath Assistant is unstable with UI activities

Hi, I have large script that consists of really big amount of activities, the biggest one that I currently have. When running script from the studio everything is fine, the % of unexpected errors is very small, but when I run the script using Assistant it goes insane. None of the cycles can finish, it often missclicks so the robot fails. I have never faced something like this before. What can be the issue of this behavior? How can I make Assistant function as stable as Studio?

Hey @nika,

Run the process in Assistant with the same settings as Studio by publishing in Debug mode and ensure project dependencies match. Check UiPath Assistant execution settings:

Share the details of your error for further analysis.

Check if the resolution and Zoom ratio is the same as in your Studio machine if this is related to selectors.

Hi @nika

Try this- Orchestrator > Robots > Edit Robot > Advanced robot options > Resolution settings > set Width, Height, Depth same as Studio > Save > keep Windows Display Resolution and Scale same.

If you found this helpful, feel free to mark it as the solution

@nika,

Is bot failing on the same ui element or different everytime?

Hi, I published the process and running it from the same PC. I just published it from Studio and running in Assistant. Not sure where to check Assistant execution settings..

Hey, I am using same machine when I run from Studio and from Assistant

Hi, is it relevant if I am running the robot from the same PC?

Hi, the bot is failing on different elements randomly. During Clicks and Type into activities. When running from Studio everything is good

@nika,

Did you changed any project level settings which are different due debug and run?

To verify, try running the bot from studio in run mode not in debug mode to see if any difference.

If this isn’t helping anything, you will have to make the selectors more dynamic.

In Studio if I run in Debug or in simple Run it always produces good result. This question only appeared yesterday when I published to Assistant.
Do you have any thoughts why this happens?

I don’t think any of the possible reason for this behaviour @nika but I will keep looking for it and update here.

Is it giving any specific error if yes can you provide those details of error message.

Just an UI error. I completely dont get why this error is happening due to the fact that Studio and Assistant are on the same machine

"Could not find the user-interface (UI) element for this action.

Possible solutions:
• Ensure application is opened and the UI element is visible on the screen at execution time
• Edit the Target of the UI activity and use Validation to debug the issue.
• If needed, re-indicate the element as its properties might have changed
• Use ““Check state”” activity to check the application state before executing the action
• Increase the ““Delay before”” value to allow time to the application to render entirely and become responsive FULLEXCEPTION UiPath.UIAutomationNext.Exceptions.NodeNotFoundException: Could not find the user-interface (UI) element for this action.

Possible solutions:
• Ensure application is opened and the UI element is visible on the screen at execution time
• Edit the Target of the UI activity and use Validation to debug the issue.
• If needed, re-indicate the element as its properties might have changed
• Use ““Check state”” activity to check the application state before executing the action
• Increase the ““Delay before”” value to allow time to the application to render entirely and become responsive
at UiPath.UIAutomationNext.Activities.TargetCommonLogic.GetSearchResultAsync(IRuntimeContext runtimeContext, ITargetAnchorable target, CancellationToken token)
at UiPath.UIAutomationNext.Activities.NClick.SearchAndSetTargetAsync(IRuntimeContext context, ClickData clickData, CancellationToken cancellationToken)
at UiPath.UIAutomationNext.Activities.NClick.ExecuteAsync(IActivityContextWrapper context, CancellationToken token)
at UiPath.UIAutomationNext.Activities.RecoverableNativeActivity.ExecuteActivityAsync(IActivityContextWrapper contextWrapper, CancellationToken cancellationToken)
at UiPath.UIAutomationNext.Activities.RecoverableNativeActivity.ExecuteActivityAsync(IActivityContextWrapper contextWrapper, CancellationToken cancellationToken)
at UiPath.UIAutomationNext.Activities.RecoverableNativeActivity.ExecuteAsync(NativeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.AsyncTaskNativeImplementation.BookmarkResumptionCallback(NativeActivityContext context, Object value)
at UiPath.Shared.Activities.AsyncTaskNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at UiPath.Shared.Activities.ContinuableAsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context, Bookmark bookmark, Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of stack trace from previous location —
at UiPath.UIAutomationNext.Activities.NApplicationCard.OnFault(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)"

Looks like UI element is not present can you check the application is opening successfully and also loading properly if it is not loading properly then:

Use “Check App State” or add a delay before action to ensure element is loaded.

Make sure the application is open, visible, and responsive at execution time.

And lastly when you are facing this issue in beginning or middle of execution?

@nika

is it an attended automation? and is it running on same machine/? if not use same resolution.

are you using any image clicks or cv activities?

can you brief about what kind of activities and what kind of failures you are seeing

as per above error mostly zoom or resolution might be the issues

cheers