Hello! I was able to resolve the issue. The problem was with the filetype. By changing the ContentType in my LogicApp which got triggered on an email resolved the filetype issue and gave a valid xls. Thank you for the follow up.
Error trying to copy data from .xlsx from azure blob storage to Azure SQL table
I get below error when I try to use copy activity to copy data from .xlsx in azure blob storage to SQL table. Any quick help will be much appreciated.
ErrorCode=ExcelUnsupportedFormat,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Only '.xls' and '.xlsx' format is supported in reading excel file while error is ' at NPOI.POIFS.Storage.HeaderBlock..ctor(Stream stream)
at NPOI.POIFS.FileSystem.POIFSFileSystem..ctor(Stream stream)
at Microsoft.DataTransfer.ClientLibrary.ExcelUtility.GetExcelWorkbook(String fileExtension, TransferStream stream)'.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=NPOI.POIFS.FileSystem.NotOLE2FileException,Message=Invalid header signature; read 0x78474B3452384D30, expected 0xE11AB1A1E011CFD0 - Your file appears not to be a valid OLE2 document,Source=NPOI,'
2 answers
Sort by: Most helpful
-
-
PRADEEPCHEEKATLA 90,561 Reputation points
Apr 8, 2024, 4:29 AM @Manasa M - I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer .
Ask: Error trying to copy data from .xlsx from azure blob storage to Azure SQL table
Solution: I was able to resolve the issue. The problem was with the filetype. By changing the ContentType in my LogicApp which got triggered on an email resolved the filetype issue and gave a valid xls.
If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.
If you have any other questions, please let me know. Thank you again for your time and patience throughout this issue.
Please don’t forget to
Accept Answer
andYes
for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members.