I am facing below error , while loading data from azure blob to snowflake:
ErrorCode=EncryptedExcelIsNotSupported,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Encrypted excel file 'Reports.csv' is not supported, please remove its password.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=ICSharpCode.SharpZipLib.Zip.ZipException,Message=Wrong Local header signature: 0x6167724F,Source=ICSharpCode.SharpZipLib,'
Though files are not encrypted and not password protected. Could you please help to resolve this issue. Thanks in advance.
The error indicates that your file is still encrypted and protected. At this moment, ADF does not support encrypted or protected Excel files. So, you can follow the workaround below:
Read the password-protected Excel file using Python in Azure Databricks with the following code:
It will read the Excel sheets and files as shown below:
You can use the following code to convert those sheets into CSV format and upload them to Blob storage:
All sheets will be copied in CSV format to Blob storage as shown below:
Use those CSV files as a source and copy the data into the Snowflake. For more information, you can refer to this MS Question.