SharePoint Upload File Activity returns error (500) if file size >100KB

Hello!
I am trying to upload files to SharePoint using UIPathTeam.Sharepoint.Activities (https://connect.uipath.com/marketplace/components/sharepoint-custom-activities-package).
I know that I have set the paths correctly because tiny files are uploaded succesfully but whenever the file is bigger than 100KB, I get an error: The remote server returned an error: (500) Internal Server Error.

Looking forward to your help.

Here is my code:
image

image

Full error message:

19.10.3+Branch.support-v2019.10.Sha.95df6905e4f3e6898cb391d1e7a7af2314bc8023

Source: Upload output file to Sharepoint

Message: The remote server returned an error: (500) Internal Server Error.

Exception Type: System.Net.WebException

RemoteException wrapping System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
at Microsoft.SharePoint.Client.File.SaveBinary(ClientContext context, String serverRelativeUrl, Stream stream, String etag, Boolean overwriteIfExists, SaveBinaryCheckMode checkMode)
at Microsoft.SharePoint.Client.File.SaveBinaryDirect(ClientContext context, String serverRelativeUrl, Stream stream, Boolean overwriteIfExists)
at UiPathTeam.SharePoint.Utils.UploadFile(ClientContext clientContext, String url, String localPath, Dictionary`2 itemProperties, Boolean allowOverwrite, Boolean queryInBatch)
at UiPathTeam.SharePoint.Activities.Libraries.UploadFile.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Hi @nespalvota, did you manage to find a solution? I’d like to upload a file to sharepoint without using Sharepoint’s frontend

Hi @Kamalen_Reddy,
Currently we are using the newest SharePoint Activities Package (UiPathTeam.SharePoint.Activities : version [1.5.3.2]) and it works well, this issue does not occur anymore. It is not available on Marketplace so we are hosting the package in Orchestrator.