Hello
I have a process that uses microsoft integration activities that worked fine in test tenant
However when publishing it in a new tenant and new machine it gave me an error :
Microsoft.Graph.ServiceException: Code: generalException
Message: An error occurred sending the request.
I don’t understand as it worked fine in another machine. What can i do to correct this?
Here is the full error :
Microsoft.Graph.ServiceException: Code: generalException
Message: An error occurred sending the request.
—> UiPath.ConnectionClient.Contracts.ConnectionHttpException: Connection [4c31b024-c0e5-486d-ad80-bd4a7dd56d36] is invalid or you do not have access to it at UiPath.ConnectionClient.Helpers.HttpResponseMessageExtensions.EnsureConnectionStatusCodeAsync(HttpResponseMessage response, CancellationToken ct)
at UiPath.ConnectionClient.Helpers.HttpConnectionServiceClient.RequestAsync(Uri uri, HttpMethod method, String content, TimeSpan timeout, Dictionary2 headers, CancellationToken ct) at UiPath.ConnectionClient.Helpers.HttpConnectionServiceClient.RequestAsync[T](Uri uri, HttpMethod method, String content, TimeSpan timeout, Dictionary2 headers, CancellationToken ct)
at UiPath.ConnectionClient.Helpers.HttpConnectionServiceClient.RequestWithRetryAsync[T](Uri uri, HttpMethod method, String content, TimeSpan timeout, Dictionary2 headers, CancellationToken ct) at UiPath.ConnectionClient.ConnectionClient.<>c__DisplayClass7_0.<b__0>d.MoveNext() --- End of stack trace from previous location --- at UiPath.ConnectionClient.Helpers.CacheHelpers1.GetValueFromCache(MemoryCache cache, String key, Func1 refreshValueFunc, DateTimeOffset expiry, Boolean forceRefresh) at UiPath.ConnectionClient.Helpers.CacheHelpers1.GetValueFromCache(MemoryCache cache, String key, Func1 refreshValueFunc, Boolean forceRefresh) at UiPath.ConnectionClient.ConnectionClient.GetAccessToken(String connectionId, Boolean forceRefresh, CancellationToken ct) at UiPath.MicrosoftOffice365.Services.MicrosoftConnectionClient.GetTokenInternalAsync(String connectionId, CancellationToken ct) at UiPath.Shared.Authentication.Microsoft.Services.ConnectionCredentialService.GetTokenAsync(CancellationToken cancellationToken) at UiPath.MicrosoftOffice365.Services.MicrosoftConnectionClient.GetTokenAsync(String connectionId, CancellationToken cancellationToken) at UiPath.Shared.Services.Graph.GraphClientServiceFactory.AuthenticateUsingConnectionServiceAsync(OAuthDataOptions model, CancellationToken cancellationToken) at UiPath.Shared.Services.Graph.GraphClientServiceFactory.AuthenticateAsync(OAuthDataOptions model, CancellationToken cancellationToken) at UiPath.Shared.Authentication.Microsoft.Extensions.HttpRequestMessageExtensions.AuthorizeAsync(HttpRequestMessage request, Func2 getToken, CancellationToken ct)
at Microsoft.Graph.AuthenticationHandler.SendAsync(HttpRequestMessage httpRequestMessage, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Microsoft.Graph.SimpleHttpProvider.SendRequestAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)