An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
UiPath.DocumentUnderstanding.ML.Activities.Exceptions.MLRequestException: Request is unauthorized. Please make sure that a correct API Key was provided. ----> System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 (UNAUTHORIZED).
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
at UiPath.DocumentUnderstanding.ML.Activities.Services.MLClient.d__6`1.MoveNext()
— End of inner ExceptionDetail stack trace —
at UiPath.DocumentUnderstanding.ML.Activities.MachineLearningExtractor.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)
I was on community version but URL: https://invoices.uipath.com/?edition=community
or https://invoices.uipath.com
It didnt work on me even though i tried to regenerate a new key.
it showed as “An error occurred while retrieving capabilities from the server. Please check the logs for more details”
Please check your API key if its mentioned as a string and in correct form. Make sure your ML skill is connected, you will need to make your skill public. If both of these work, you will be able to call the API properly.