Azure Data Factory: Copy a file from SharePoint to Blob

Taariq Toffar 1 Reputation point
2021-03-25T14:06:41.773+00:00

Hi,

I am trying this method (https://learn.microsoft.com/en-us/azure/data-factory/connector-sharepoint-online-list#copy-file-from-sharepoint-online) but I get the error below when trying to copy a excel file from SharePoint to Azure Blob:

Failure happened on 'Sink' side. ErrorCode=HttpFileFailedToRead,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Failed to read data from http server. Check the error from http server:The remote server returned an error: (400) Bad Request.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (400) Bad Request.,Source=System,'

81615-image.png

The registered app has full control on all sites on SharePoint:

81585-image.png

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Nandan Hegde 36,146 Reputation points MVP Volunteer Moderator
    2021-03-26T05:34:25.04+00:00

    Hey @Taariq Toffar ,
    Can you please check whether IRM property is enabled in the sharepoint.
    Because :
    Even if an Azure AD application has FullControl permissions on SharePoint Online, you can't copy files from document libraries with IRM enabled.

    0 comments No comments

  2. Taariq Toffar 1 Reputation point
    2021-03-26T06:55:05.99+00:00

    IRM is disabled in SharePoint, so it's not that.


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.