Microsoft 65 Error: Unable to download file

Attached is the view of my wokflow where I am downloading a file from SharePoint:


Attached is also the workflow file.
MS_Sharepoint_Download_via_Connections_url.xaml (37.6 KB)

The error occurs right after the file is downloaded:

Below is the error message:

24.10.1+Branch.master.Sha.9c270cffe65425641403b7809635c506d263462d.9c270cffe65425641403b7809635c506d263462d

Source: Save file to My Documents folder

Message: Error retrieving file. Please revise '' activity from where the file DeleteEmptyRows.vb originated. Code: generalException
Message: An error occurred sending the request.


Exception Type: System.InvalidOperationException

System.InvalidOperationException: Error retrieving file. Please revise '' activity from where the file DeleteEmptyRows.vb originated. Code: generalException
Message: An error occurred sending the request.
 ---> Microsoft.Graph.ServiceException: Code: generalException
Message: An error occurred sending the request.
 ---> System.Net.Http.HttpRequestException: No such host is known. (tm365.sharepoint.com:443) ---> System.Net.Sockets.SocketException: No such host is known.   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
	--- End of inner exception stack trace ---
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at UiPath.Productivity.Diagnostics.TraceHttpHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at UiPath.Shared.Authentication.Microsoft.Utilities.AuthenticationDelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.Graph.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at Microsoft.Graph.RetryHandler.SendAsync(HttpRequestMessage httpRequest, CancellationToken cancellationToken)
   at Microsoft.Graph.CompressionHandler.SendAsync(HttpRequestMessage httpRequest, CancellationToken cancellationToken)
   at Microsoft.Graph.AuthenticationHandler.SendAsync(HttpRequestMessage httpRequestMessage, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>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)
	--- End of inner exception stack trace ---
   at Microsoft.Graph.SimpleHttpProvider.SendRequestAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
   at Microsoft.Graph.SimpleHttpProvider.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
   at Microsoft.Graph.BaseRequest.SendRequestAsync(Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption)
   at Microsoft.Graph.BaseRequest.SendStreamRequestAsync(Object serializableObject, CancellationToken cancellationToken, HttpCompletionOption completionOption)
   at UiPath.MicrosoftOffice365.Files.Extensions.FilesExtensions.DownloadFullFileAsync(GraphServiceClient graphClient, DriveItem file, String localPath, CancellationToken cancellationToken)
   at UiPath.MicrosoftOffice365.Services.GraphServiceClientProxy.DownloadFileAsync(DownloadFileRequest request, CancellationToken cancellationToken)
   at UiPath.MicrosoftOffice365.Files.Models.O365DriveLocalItem.ResolveAsync(Boolean force, CancellationToken ct)
	--- End of inner exception stack trace ---
   at UiPath.MicrosoftOffice365.Files.Models.O365DriveLocalItem.ResolveAsync(Boolean force, CancellationToken ct)
   at UiPath.Shared.Activities.IResource.Extensions.IResourceExtensions.<>c__DisplayClass1_0.<<ResolveAndGetUnderlyingFile>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at UiPath.Shared.Activities.IResource.Extensions.IResourceExtensions.ResolveAndGetUnderlyingFile(ILocalResource localResource, FileInfo& backingLocalFile, CancellationToken ct)
   at UiPath.Shared.Activities.IResource.Extensions.IResourceExtensions.ResolveAndGetLocalPath(ILocalResource localResource, FileInfo& backingLocalFile, CancellationToken ct)
   at UiPath.MicrosoftOffice365.Files.Models.O365DriveLocalItem.get_LocalPath()
   at Namespace_7965.MS_Sharepoint_Download_via_Connections_url_Expressions.MS_Sharepoint_Download_via_Connections_url_Expressions_TypedDataContext4_ForReadOnly.__Expr7Get()
   at Namespace_7965.MS_Sharepoint_Download_via_Connections_url_Expressions.MS_Sharepoint_Download_via_Connections_url_Expressions_TypedDataContext4_ForReadOnly.ValueType___Expr7Get()
   at Namespace_7965.MS_Sharepoint_Download_via_Connections_url_Expressions.InvokeExpression(Int32 expressionId, IList`1 locations, ActivityContext activityContext)
   at Microsoft.VisualBasic.Activities.VisualBasicValue`1.Execute(CodeActivityContext context)
   at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[T](ActivityInstance parentInstance, Activity`1 expressionActivity)
   at System.Activities.InArgument`1.TryPopulateValue(LocationEnvironment targetEnvironment, ActivityInstance activityInstance, ActivityExecutor executor)
   at System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression(RuntimeArgument argument, Int32 nextArgumentIndex, ActivityExecutor executor, IDictionary`2 argumentValueOverrides, Location resultLocation, Boolean isDynamicUpdate)
   at System.Activities.ActivityInstance.ResolveArguments(ActivityExecutor executor, IDictionary`2 argumentValueOverrides, Location resultLocation, Int32 startIndex)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Kindly assist with this request.

@RobinsonFrancis,

Try upgrading the Office 365 package to latest version 3.1.21.

@RobinsonFrancis

  1. The error occurs on move..so first try to print the from and to locations to see of they are correct
  2. Generally move is not related to 0365 but the error shows no such host which is wierd so try to check if the downloaded file is present or not in given path

Cheers