AZURE data copy - ExcelUnsupportedFormat

Admin KK - Marcin Struglinski 11 Reputation points
2021-08-05T08:26:02.213+00:00

tries to copy data from dataset type excel from http service to dataset csv on AzureDataLakeStorage. I can check the data and schema excel dataset without any problems, but when copying I get the following message:

Failure type
User configuration issue
Details
Failure happened on 'Sink' side. ErrorCode=ExcelUnsupportedFormat,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Only '.xls' and '.xlsx' format is supported in reading excel file while error is ' at ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputBuffer.ReadLeByte() at ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputBuffer.ReadLeInt() at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNextEntry() at NPOI.OpenXml4Net.Util.ZipInputStreamZipEntrySource..ctor(ZipInputStream inp) at NPOI.OpenXml4Net.OPC.ZipPackage..ctor(Stream filestream, PackageAccess access) at NPOI.OpenXml4Net.OPC.OPCPackage.Open(Stream in1) at NPOI.Util.PackageHelper.Open(Stream is1) at NPOI.XSSF.UserModel.XSSFWorkbook..ctor(Stream is1) at Microsoft.DataTransfer.ClientLibrary.ExcelUtility.GetExcelWorkbook(String fileExtension, TransferStream stream)'.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=ICSharpCode.SharpZipLib.Zip.ZipException,Message=EOF in header,Source=ICSharpCode.SharpZipLib,'

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

2 answers

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,546 Reputation points Microsoft Employee Moderator
    2021-08-06T06:00:34.507+00:00

    Hi @Admin KK - Marcin Struglinski ,

    Welcome to Microsoft Q&A Platform. Thank you for posting your query here.

    By error message it seems your excel sour data file format is not .xls or .xlsx. And currently, ADF will support these two types only. Kindly recheck your source file format once?

    Could you please share your pipeline/ datasets json to go through configurations and following along so that we can repro scenario and help on resolution?


  2. Pavel Zemnukhov 20 Reputation points
    2024-11-12T06:45:58.9166667+00:00

    The issue still exists, it's definitely a bug.

    I used to download files without any problems until it started to throw errors from time to time. Files are .xlsx and preview works perfectly.

    { "errorCode": "2200", "message": "ErrorCode=ExcelUnsupportedFormat,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Only '.xls' and '.xlsx' format is supported in reading excel file while error is ' at ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputBuffer.ReadLeByte()\r\n at ICSharpCode.SharpZipLib.Zip.Compression.Streams.InflaterInputBuffer.ReadLeInt()\r\n at ICSharpCode.SharpZipLib.Zip.ZipInputStream.GetNextEntry()\r\n at NPOI.OpenXml4Net.Util.ZipInputStreamZipEntrySource..ctor(ZipInputStream inp)\r\n at NPOI.OpenXml4Net.OPC.ZipPackage..ctor(Stream filestream, PackageAccess access)\r\n at NPOI.OpenXml4Net.OPC.OPCPackage.Open(Stream in1)\r\n at NPOI.Util.PackageHelper.Open(Stream is1)\r\n at NPOI.XSSF.UserModel.XSSFWorkbook..ctor(Stream is1)\r\n at Microsoft.DataTransfer.ClientLibrary.ExcelUtility.GetExcelWorkbook(String fileExtension, TransferStream stream)'.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=ICSharpCode.SharpZipLib.Zip.ZipException,Message=EOF in header,Source=ICSharpCode.SharpZipLib,'", "failureType": "UserError", "target": "Copy data", "details": [] }

    0 comments No comments

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.