HttpRequestFailedWithUnauthorizedError output after Copy Data function when extract data from Sharepoint to adl using data factory

Xing Le Lee 0 Reputation points
2024-07-29T06:13:18.0233333+00:00

I followed the tutorial from "https://www.youtube.com/watch?v=FFfNu3cI-uw&pp=ygUjZXh0cmFjdCBkYXRhIGZyb20gc2hhcmVwb2ludCB0byBhZGw%3D"
but this error occurred.

"errors": [ { "Code": 22757, "Message": "ErrorCode=HttpRequestFailedWithUnauthorizedError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Http request failed with status code 401 Unauthorized, usually this is caused by invalid credentials, please check your activity settings.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (401) Unauthorized.,Source=System,'", "EventType": 0, "Category": 5, "Data": {}, "MsgId": null, "ExceptionType": null, "Source": null, "StackTrace": null, "InnerEventInfos": [] } ],

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,430 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,206 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,312 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Amrinder Singh 4,910 Reputation points Microsoft Employee
    2024-07-29T07:05:56.01+00:00

    Hi Xing Le Lee - Thanks for reaching out over Q&A Forum.

    Based on the exception 401 Unauthorized, usually this is caused by invalid credentials, please check your activity settings. To resolve this issue, make sure to pass the correct credentials in the activity settings.

    Request you to please review the below documentation once:

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

    Apart from this, you can also take a look at the below previous Q&A posts regarding similar error and action plans

    https://learn.microsoft.com/en-us/answers/questions/1382525/data-factory-http-copy-activity-returns-error-when

    https://learn.microsoft.com/en-us/answers/questions/999634/copy-files-from-sharepoint-to-azure-datalake-using

    Hope this helps!

    Please let us know if you have any further queries. I’m happy to assist you further.


    Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments