Error during .xlsx file download

Hello!

If we try to open exported .xlsx file then we receive following error:
Excel cannot open the file because the file format or file extention is not valid. Verify that the file has not been corrupted and that file extension matches the format of the file.

The error inside the file is following:

{"status":"failed","error":"An error occurred while running the query.","error_type":"qp"}

Metabase version v0.36.6. Is it because due to old version or some other reason. Could you please help?

Thanks!

First of all you need to upgrade to the latest version, once you do that let us know if it fixed the issue or not