Sharepoint List extract error from ADF

ABEL ANTON RODRIGUEZ 0 Reputation points
2025-06-17T11:29:13.34+00:00

Dear Support,

I am reaching out regarding an issue we are encountering while extracting data from several SharePoint lists using Azure Data Factory (ADF).

We have been able to successfully extract 10 out of 14 lists without any problems. However, when attempting to extract the remaining four, we consistently receive the following error:

An error occurred while sending the request.

The underlying connection was closed: An unexpected error occurred on a receive.

Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host.
An existing connection was forcibly closed by the remote host.

To help us identify and resolve the issue, we would appreciate your support with the following questions:

What typically causes this type of connection error when using the SharePoint Online connector in Azure Data Factory?

Are there any known limitations in terms of list size, structure, number of columns, or data types that might cause some lists to fail while others succeed?

Could throttling or timeout policies in SharePoint Online be affecting the connection for certain lists?

Is there a way to increase the reliability or resilience of the connection (e.g., retry policies, adjusting timeout settings, batch size)?

Are there diagnostic steps or logs we can collect to help isolate whether the failure originates in ADF, SharePoint Online, or the network layer?

Finally, what would be the recommended steps to resolve this issue and ensure extraction works consistently for all lists?

We are happy to provide additional technical details or configuration snapshots if needed.

Looking forward to your guidance to help resolve this issue.

Best regards,

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

1 answer

Sort by: Most helpful
  1. Venkat Reddy Navari 2,885 Reputation points Microsoft External Staff Moderator
    2025-06-17T12:48:29.96+00:00

    Hi @ABEL ANTON RODRIGUEZ Thanks for outlining the issue so clearly that helps a lot. Let’s go through the possible causes and what you can do to troubleshoot and improve reliability when pulling from SharePoint lists using Azure Data Factory (ADF).

    What could be causing this error?

    This error typically happens when SharePoint Online closes the connection unexpectedly and that can be due to:

    • Throttling by SharePoint when too many or too large requests are made.
    • Large or complex list structure, which can slow down responses.
    • Timeouts or dropped connections, especially when payloads are heavy (e.g., attachments, lookup fields, or very large item sets).

    Throttling is a common one SharePoint is pretty strict about protecting service health, especially with high-volume automated requests.

    Docs reference: How to avoid getting throttled in SharePoint Online

    Are there known limits with the ADF SharePoint Online connector?

    Yes, there are a few things worth keeping in mind:

    • Lists with more than 5000 items may require paging (ADF usually handles this, but not always cleanly).
    • Some column types, like multi-select choice fields or complex lookups, don’t always behave well with the connector.
    • Lists with a large number of columns (or system/hidden fields) can hit schema inference issues.
    • Here’s the official connector doc that outlines some of these: SharePoint Online list connector in ADF

    What can help improve reliability?

    • Enable retry logic in your ADF copy activity something like 3 retries with a 30-second interval.
    • Reduce parallelism if you're querying multiple lists at once. Hitting them all at once can trigger throttling.
    • Use simpler views limit the number of columns and avoid complex filters. This lightens the payload.
    • Paginate or filter large lists break up extraction by created/modified date range or ID.
    • If you're hitting this consistently with specific lists, try querying them via Graph API or Postman to see if the issue reproduces outside ADF.

    Any logs or diagnostics to check?

    Yes, a few useful places:

    • ADF Activity Run output – especially the error details and ErrorCode.
    • Azure Monitor or Log Analytics, if you’ve connected your ADF to it — can give better visibility into pipeline failures.
    • Also, check the headers returned by SharePoint (if accessible) — they might show Retry-After or related hints when throttling is involved.
    • More on monitoring ADF: Monitor Azure Data Factory pipelines

    Steps suggest moving forward:

    • Narrow down the issue to those 4 lists – are they larger or structurallydifferent?
    • Create custom views on those lists that simplify the structure — fewer columns, no lookups or rich text if possible.
    • Update the copy activity with retries and reduce concurrency for those extractions.
    • If the issue still happens, try querying one of the failing lists via Graph API or Postman this helps confirm if it’s a SharePoint-side issue.
    • As a fallback, consider using an Azure Function or Logic App to pull data from the list using Graph, and then push it to ADF.

    Hope this helps. If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


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.