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.
- You can check in Orchestrator > Roles > Click the "Robot" role > Folder Permissions
- 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.
- In Studio, in the lower right corner, see to which folder there is connection.
- 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.
- 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.
- Follow the KB article Changing The SSL Certificate For The UiPath Orchestrator Website, to know more on how to update the certificate data.