[英]Get ZIP file from SFTP to Azure Datalake using Azure data factory and store it into CSV format
[英]Copy Sharepoint online csv to datalake using Azure Data Factory
我正在嘗試使用數據工廠將 CSV 文件從 Sharepoint 在線復制到數據湖。 我遵循了以下文檔。
我的管道如下所示
我在復制數據活動中遇到錯誤。 我與 Sharepoint 的連接是成功的,甚至我可以使用基礎和相關 URL 下載 CSV 文件。
以下是我的錯誤
Error code 2200
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://xxxx.sharepoint.com/sites/39421875/_api/web/GetFileByServerRelativeUrl('/sites/39421875/Shared%20Documents/Test.csv')/$value.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (403) Forbidden.,Source=System,'
My base URL: https://xxx.sharepoint.com/ Relative URL: sites/39421875/_api/web/GetFileByServerRelativeUrl('/sites/39421875/Shared Documents/Test.csv')/$value
不確定為什么會出現上述錯誤? 我在基礎 URL 中添加了“/”。
我嘗試了多次,並且發生了同樣的錯誤。 即使我試圖在基礎 URL 中給出一個完整的 URL 但沒有成功。 我遵循了附加 Header 的文檔。
任何人都可以建議嗎?
上述錯誤主要是因為授權失敗。 請務必檢查是否授予以下權限。
Go 到 Azure 活動目錄 -> 應用注冊並打開應用 -> API 權限 -> 添加此權限。
也請遵循以下參考:它有關於SharePoint的特定網站集合和授權的應用程序權限的詳細信息。
參考:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.