Im unable to upload file into sharepoint

Hello Team,

Im trying to upload local excel file into sharepoint using Sharepoint application Scope inside that I have added Upload file activities. Kindly someone help me.

while testing, Im facing below error .
The image displays a warning message that reads "Upload file: Access denied" accompanied by a triangular warning icon. (Captioned by AI)

Microsoft.SharePoint.Client.ServerUnauthorizedAccessException: Access denied. at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb)
at Microsoft.SharePoint.Client.ClientRequest.ExecuteQuery()
at Microsoft.SharePoint.Client.ClientRuntimeContext.ExecuteQuery()
at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
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)

While trying to upload file manually, its working, But bot unable to upload

@Thangavel_Sujitha

As per error you donot have access…may be the site level access or the read write access to files to not granted in application scope…please check the same

Permissions are listed here

cheers

thanks for your help. Its working now.

1 Like

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