Can't upload the file to the OneDrive using Upload File activity

My Upload File activity is hitting an error every time. The full error message is as such:

Source: Upload File

Message: Code: generalException
Message: An error occurred sending the request.

Exception Type: Microsoft.Graph.ServiceException

Microsoft.Graph.ServiceException: Code: generalException
Message: An error occurred sending the request.
—> System.Net.Http.HttpRequestException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (tm365-my.sharepoint.com:443) —> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. 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.g__WaitForConnectWithCancellation|277_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 —

This is my code:
U2-Sharepoint.xaml (32.2 KB)
This is the snippet of the workflow that shows the Get File/Folder activity and the Upload File activities:

image

This is the properties of my Get File/Folder activity:

image

From Debugging I can see that the output of this activity the drive item variable is being returned:

image

These are the properties of my Upload File activity:

image

Please help me solve my problem. Thanks a lot in advance.

Hi @RobinsonFrancis - Error uploading file - #4 by Rahul_Unnikrishnan

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.