Copy files from Sharepoint

Krishnamohan Nadimpalli 406 Reputation points
2023-12-21T20:12:23.96+00:00

Hi

I am trying to copy file from Sharepoint to ADLS account using the below document.

https://video2.skills-academy.com/en-us/azure/data-factory/connector-sharepoint-online-list?tabs=data-factory#copy-file-from-sharepoint-online

I am able to get the access token but it says file not found. I have implemented this in the past for other project (other domain) successfully. But here it is displaying following error.

"ErrorCode=HttpRequestFailedWithClientError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Http request failed with client error, status code 403 Forbidden, please check your activity settings. If you configured a baseUrl that includes path, please make sure it ends with '/'.

Request URL: https://<domain-name>.sharepoint.com/teams/MDHDataManagementSync/_api/web/GetFileByServerRelativeUrl('/teams/MDHDataManagementSync/Shared Documents/DQC/Test_File.xlsx')/$value.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (403) Forbidden.,Source=System,'"

URL Link to Sharepoint is following

https://<domain-name>.sharepoint.com/teams/MDHDataManagementSync/Shared%20Documents/Forms/AllItems.aspx

Sharepoint Admin has set Permissions according to above document

User's image

User's image

User's image

User's image

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,468 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.