Unable to connect Studio • UiPath Studio: "Could not find unattended robot key"

Hi there,
I am facing this issue, Not able to login UiPath Studio, getting the error below

RemoteException wrapping UiPath.Service.Orchestrator.Core.NoUserSessionException: Could not find unattended robot for user key 0f467af5-0746-421a-a68f-d93ded3b40ee.
at UiPath.Service.SessionInfo.ThrowIfException()
at UiPath.Service.UserHost.AttendedServiceProxy.BeginOrUpdateSession(Guid sessionJobId, CancellationToken ct)
at UiPath.Service.UserHost.StudioOperations.Prepare(ClientProcessMessage message, CancellationToken ct)
at UiPath.Service.UserHost.StudioOperations.GetRobotInfoCore(StudioAgentMessage message, CancellationToken ct)
— End of stack trace from previous location —
at UiPath.Service.Api.IStudioOperationsExtensions.GetRobotInfo(IStudioAgentOperations operations, StudioAgentMessage message, CancellationToken ct)
at UiPath.Studio.OnlineServices.Services.ConnectionSettingsService.EnsureRobotConnectedToOrchestrator()
at UiPath.Studio.OnlineServices.Services.ConnectionSettingsService.EnforceSettings(Boolean refresh, CancellationToken cancellationToken)

Can you please help

Hi @dennis.gondwe
Welcome to the Community

Please try below approach

  1. Verify that the user is correctly assigned to the Machine in Orchestrator.
  2. Ensure the Robot account/service is enabled and licensed.
  3. Check whether the Machine Template and User are mapped to the correct Folder.
  4. Logout from UiPath Assistant/Studio and login again.
  5. Restart the UiPath Robot Service from Services.msc.
  6. If using Service Mode installation, make sure the unattended settings (username/password) are configured correctly in Orchestrator.
  7. Try removing the machine connection and reconnecting Studio with the Machine Key or Sign-in option.

If solution works for you please mark as solution
Thanks

@dennis.gondwe

Refer this thread

@dennis.gondwe welcome to community..!

You are facing this due to license may expired or you don’t have enough licenses. If already you have the license that might be allocated to other.

Go admin>> license and check do you have enough licenses if yes allocate to you.
And check the assistant is connected with same machine key. Do signout and sign in again with the same machine key.

And also logout from studio and relogin.

If these all are not worked, delete existing robot and re create and add new machine key to the assistant .

Check you connected with the same tenant.

Happy Automaiton

@dennis.gondwe

Go to assistant and check if shows connected

  1. Make sure your tenant and the user is assigned with licenses
  2. Same tenant and user is connected in assistant

Cheers

Hi there,

Thanks for the steps.

I tried these steps but still getting same error. Can you provide further help on this. Im new on this need assistance.

Regards,

Hi @dennis.gondwe
Please try this steps
1 User is assigned to the correct Folder.
2 Attended/Unattended Robot license is allocated.
3 Machine Template is connected to the same Folder.
4 User is mapped under Manage Access.
5 Restart UiPath Robot service from services.msc.
6 Sign out from UiPath Assistant and login again.
7 Clear UiPath local cache:
%localappdata%\UiPath
%appdata%\UiPath

If solution works for you please mark as solution
Thanks

When i add robot it doesnt give me an option to add Role as Robot

@dennis.gondwe

There is no specific role as robot, you can select all the options or any of them that required. Create robot account and add that account to machine.

Follow below video, accordingly create the unattended robot.

Let me know if it works.

@dennis.gondwe

Try assigning Automation User role.

@dennis.gondwe

First thing you need studio so its not robot that you need but developer license

go to admin-> licenses → Allocate group or users and allocatr from there

cheers