Hi Team i am not able to download the files from the sharepoint using the get file activity it is giving authentication error alough i am having all the relevant access but still
What authentication are you using and can ypu please show error screenshot here
Cheers
I am using the get children names activity and getting the file name from the sharepoint and then trying to use get file to download the file and it is giving error at get file
As per error the operation you are trying to perform is not authorized…that means the access level you have on sharepoint is not enough
Please check with your sharepoint admin…may be you have access to only a part of shareoint or only few folders and you are trying to access all
Cheers
Please see the screenshot of the activities…but i am able to download the file manually by right clicking on it and then download it
Can you please open the locals panel and expand the exception details and show that please
Through api you might not be having access
And I see you are using dharepoint teams activities …why not use office 365?
Cheers
Dont have the permission to use office 365 activities
RemoteException wrapping Microsoft.SharePoint.Client.ServerUnauthorizedAccessException: Attempted to perform an unauthorized operation.
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.GetFileFromSharePoint(ClientContext clientContext,
String localPath,
String relativeUrl)
at UiPathTeam.SharePoint.Activities.Libraries.GetFile.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)
how to check through api i have the permission or not ? how can i validate those things?
Looks like api access is missing…please check with sp admin
Can you print and check which file it is trying to download
And in get file are you using check out option aswell?
Cheers
No i am just using the get file activity there is no property to checkout the file …yes i tried the file name in get children is getting correct file name
How to validate the api access with SP admin ? means any steps or how i can validate it?
You need to reach out to the sharepoint team and then they can check if you have access to download the files or not through api
Are you the admin?
Cheers
No i am not a admin of the site
I had the relevant access but when i am trying to run the code in debug mode i am getting authentication error and when i try to run the code it is successfully downloading do you why it is happening?
That looks weird
can you try to include some delay between children and get file
cheers
Yes it is weird …can do know anyone from UiPath to you can tag and they might help…And also i need to update the column values while uploading the file how can i achieve that?
This is a 3rdparty library…so official support would not be there
@radu_bucur can you please look into this
are you uploading to a document library or sharepoint list?
cheers
I am uploading a pdf file and while uploading the pdf file i need to update the columns in the sharepoint