Iam trying to capture sharepoint files into azure using data factory pipeline, Activities: web activity, copy data activity

p srinivas 0 Reputation points
2024-03-04T08:05:23.4266667+00:00

I have already generated access token for sharepoint, but while am copying the sharepoint file into azure datalakegen2 storage, am facing this type of error:data factory :
Code": 22755, "Message": "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 '/'.\nRequest URL: https://guturifeb.sharepoint.com/sites/SharePointsite365/_api/web/GetFileByServerRelativeUrl('/sites/SharePointsite365/Fabric/Data/sample%20file.csv')/$value.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (403) Forbidden.,Source=System

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,105 questions
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,859 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,567 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,567 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Harishga 5,990 Reputation points Microsoft Vendor
    2024-03-05T10:24:44.9966667+00:00

    Hi @p srinivas

    Welcome to Microsoft Q&A platform and thanks for posting your question here.

    The error code 22755 is a specific error code related to Azure Data Factory. It indicates that an HTTP request failed with a client error, specifically a 403 Forbidden error. This error occurs when the service principal or managed identity you are using to access Azure Data Lake Storage Gen2 does not have sufficient permissions to access the resource.  

    Even though you have generated an access token for SharePoint, it is possible that the service principal or managed identity you are using to access Azure Data Lake Storage Gen2 does not have sufficient permissions to access the resource. You need to ensure that the service principal or managed identity has the necessary permissions to access both SharePoint and Azure Data Lake Storage Gen2.

    To troubleshoot this error, you can follow the steps below:

    I hope this helps you understand the error code and how to troubleshoot the issue. Let me know if you have any further questions or concerns.

    0 comments No comments

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.