Scenario:
Trying to retrieve an Asset or Credential from Orchestrator. My Robot and Orchestrator are linked, and processes can be run on the robot from Orchestrator. These Assets can be accessed by others on Orchestrator. I have double chacked the Roles available to Robot and View Assets is checked. I have tried different versions of UiPath.Credentials.Activities as well as restarting UiPath and my machine.
Steps to reproduce:
- Set up an Asset or Credential on Orchestrator.
- Get Asset/ Get Credential Activity and enter the name of the Asset/Cred into AssetName field.
3.Run Workflow
Current Behavior:
I receive the following error message:
GetAssets has thrown an exception
Source: Get Asset
Message: Forbidden
Exception Type: OrchestratorHttpException
UiPath.Core.Activities.OrchestratorHttpException: Forbidden
at UiPath.Core.Activities.HttpStatusCodeExtension.OrchestratorEnsureStatusCode(HttpResponseMessage response)
at UiPath.Core.Activities.BaseAssetActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
Expected Behavior:
Asset should be returned as a string.
Studio/Robot/Orchestrator Version:
Studio 2018.2.0