'Studio Activity Returns' Operation Returned An Invalid Status Code Unauthorized

Studio activities that interact with Orchestrator, such as "Get Queue items", "Add Queue items", "Bulk add queue items" "Delete queue items", etc, can fail with the error: "Operation returned an invalid status code 'Unauthorized".

Issue Description: Studio activities that interact with Orchestrator, such as "Get Queue items", "Add Queue items", "Bulk Add Queue Items", "Delete Queue Items", etc, can fail with the error: "Operation returned an invalid status code 'Unauthorized".


Resolution: The API call to the Orchestrator server is not successful and there can be various causes:

  • The Robot account executing the job does not have the appropriate roles in Orchestrator.
  1. You can check in Orchestrator > Roles > Click the "Robot" role > Folder Permissions
  2. Make sure it has the needed access level for the desired activity: View/Edit/Create/Delete.
  • Studio is not connected to the same folder where the queue resides.
  1. In Studio, in the lower right corner, see to which folder there is connection.
  2. If multiple folders are present in Orchestrator entitled to, make sure that Studio connects to the folder that stores the queue item.

  • Communication failure between Orchestrator and the Identity Server.
  1. If the certificate was changed prior to this issue, it is possible that the new certificate information was not configured properly on the Orchestrator server.
  2. Follow the KB article Changing The SSL Certificate For The UiPath Orchestrator Website, to know more on how to update the certificate data.