Copy Sharepoint online csv to datalake using Azure Data Factory

Dhilip Subramanian 41 Reputation points
2022-08-24T02:29:35.013+00:00

Hi

I am trying to copy CSV file from Sharepoint online to Data lake using Data Factory. I followed the below documentation.

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

my pipeline looks below

234273-image.png

I am getting errors in the copy data activity. My connection to Sharepoint is successful, and even I can download the CSV file using the base & relative URL.

Below is my error

234238-image.png
234249-image.png

My base URL: https://xxx.sharepoint.com/
Relative URL: sites/39421875/_api/web/GetFileByServerRelativeUrl('/sites/39421875/Shared Documents/Test.csv')/$value

Not sure why the above error is coming? I added "/" in the base URL.

I tried multiple times, and same error is happening. Even I tried to give complete URL in the base URL but no success

Any suggestions?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,556 Reputation points Microsoft Employee Moderator
    2022-08-24T08:47:25.603+00:00

    Hi @Dhilip Subramanian ,

    Thank you for posting query in Microsoft Q&A Platform.

    Are you using REST connector dataset inside Copy activity, Source Tab? Is your API call inside Copy activity, source tab downloads file? If yes, Kindly use HTTP connector type dataset as source dataset inside copy activity and see how it goes.

    Please let me know how it goes. Please feel free to share screenshots of complete implementation that helps to repro and understand root cause better. Thank you.


Your answer

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