UnicodeDecodeError while uploading xlsx in S3 manage folder

Maxime_GM Registered Posts: 3 ✭✭✭✭
edited July 16 in Using Dataiku

Hi Dataiku-Team,

I am getting issues for uploading files as output from flow in manage folder.

results_folder.upload_file("Table_Result.xlsx", file_path="Table_Result.xlsx")

I got this error:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 11: invalid start byte

So my guess was that i had to encode my file to match the decoding format

Table_Result.to_excel("Table_Result.xlsx", encoding="UTF-8")
results_folder.upload_file("Table_Result.xlsx", file_path="Table_Result.xlsx")

But I got this error again:

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 18: invalid start byte

I don't understand how an UTF-8 encoded file cannot be decode with UTF-8 codec.

So, is there any means to manage this error, or do I have to change my file format to make sure that my file is compliant with with manage folder?

Best Answer


Setup Info
      Help me…