Share via

Error code =Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Only '.xls' and '.xlsx' format is supported in reading excel file while error is

John Harrison 5 Reputation points
Mar 21, 2023, 3:51 PM

Using a Copy Activity in ADF to copy a xlxs file to azure sql:

Request URL: https://xxxxxxxxx.sharepoint.com/sites/Dataetc/_api/Web/GetFileByServerRelativePath(decodedurl='/sites/Dataetc/Billing/2023-02/Book1.xlsx')/$value

Error:

ErrorCode=ExcelUnsupportedFormat,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Only '.xls' and '.xlsx' format is supported in reading excel file while error is ' at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)

User's image

User's image

User's image

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,175 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,397 questions
{count} vote

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,521 Reputation points Microsoft Employee
    Mar 23, 2023, 6:45 AM

    Hi John Harrison,

    Thank you for posting query in Microsoft Q&A Platform.

    Is your API downloads some file here? If yes, then you need to consider using HTTP connector type dataset as source and in sink use ADLS gen2 or blob storage account dataset to download file to some location. Once, file downloads, use another copy activity to copy that data to Azure SQL.

    From the above error message, it seems you are trying to accessing unsupported extension file for excel format. Supported extensions are '.xls' and '.xlsx .

    Hope this helps. Please let me know how it goes and if any further queries.


    Please consider hitting Accept Answer button. Accepted answers help community as well.


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.