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:
- Check the detailed error message thrown by Azure Data Lake Storage Gen2. If the error is a transient failure, retry the operation.
- Ensure that the service principal or managed identity you are using has the necessary permissions to access both SharePoint and Azure Data Lake Storage Gen2. You can refer to the Azure documentation on [service principal authentication https://learn.microsoft.com/en-us/azure/data-factory/connector-azure-data-lake-storage?tabs=data-factory#service-principal-authentication)) for more information.
- Check the firewall rule settings of Azure Data Lake Storage Gen2 to ensure that Azure Data Factory IP addresses are in the allowed list. You can refer to the Azure documentation on configuring Azure Storage firewalls and virtual networks https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portalfor more information.
- Ensure that the base URL you have configured for the activity ends with a forward slash (/). If the base URL includes a path, it must end with a forward slash to avoid this error.
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.