Data empty

Try upgrading and then let us know

Hi everybody,

I have the same problem.

I have a report with some filters that have 36 records of result.

When i am in editing mode (editing the question), i can download the report without problems.

But when i save the question, the download file is empty.

I've tried to download the report in JSON format file, and i saw that there are an array with 36 records (but are empties).

  • My report (question) is connected to a MongoDB database.
  • I have the last available version of Metabase at the time: 0.45.3.
  • I'm including the diagnostic information.
  • I've attached some screenshoots.

Please your help :pray:



Diagnostic Information:

{
"browser-info": {
"language": "en-US",
"platform": "Linux x86_64",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0",
"vendor": ""
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.18+10-post-Ubuntu-0ubuntu120.04.1",
"java.vendor": "Ubuntu",
"java.vendor.url": "https://ubuntu.com/",
"java.version": "11.0.18",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.18+10-post-Ubuntu-0ubuntu120.04.1",
"os.name": "Linux",
"os.version": "5.13.0-1023-azure",
"user.language": "en",
"user.timezone": "America/Lima"
},
"metabase-info": {
"databases": [
"postgres",
"mysql",
"mongo",
"h2"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "12.14 (Ubuntu 12.14-0ubuntu0.20.04.1)"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.5.0"
}
},
"run-mode": "prod",
"version": {
"date": "2023-02-19",
"tag": "v0.45.3",
"branch": "release-x.45.x",
"hash": "070f57b"
},
"settings": {
"report-timezone": "America/Lima"
}
}
}

Grettings!

What database is this?

Hi Luiggi,

The database is MongoDB, version 4.4.19.

Regards

Hi @Luiggi
As per your suggestion, we have upgraded Metabase to the latest version 0.45.3, but still we are getting blank excel/csv/json files with/without EDIT mode

Type of Question: Native Query written and saved as a Question with the date and text/number filters(No Field filters)
Database : Amazon Athena

FYI:

  • The data includes a lot of JSON content which is parsed and flattened into columns

  • Another native query saved as a question from the same database but a different table is working fine and the downloaded excel has the data

  • Not sure why this particular question is giving an empty excel, even though the data loads properly. Only the downloaded files are blank(all Excel/CSV/JSON files are blank)

Download log:
[097c8306-9fc4-49a3-bdbf-08793018506f] 2023-03-23T13:23:38+05:30 DEBUG metabase.server.middleware.log POST /api/card/3387/query 202 [ASYNC: completed] 500.1 ms (10 DB calls) App DB connections: 0/15 Jetty threads: 6/200 (0 idle, 0 queued) (577 total active threads) Queries in flight: 0 (0 queued)

Diagnostic info:

{
"browser-info": {
"language": "en-GB",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.18+10",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "11.0.18",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.18+10",
"os.name": "Linux",
"os.version": "5.4.204-113.362.amzn2.x86_64",
"user.language": "en",
"user.timezone": "GMT"
},
"metabase-info": {
"databases": [
"postgres",
"mysql",
"athena",
"sparksql",
"mongo",
"snowflake"
],
"hosting-env": "unknown",
"application-database": "mysql",
"application-database-details": {
"database": {
"name": "MySQL",
"version": "5.7.37"
},
"jdbc-driver": {
"name": "MariaDB Connector/J",
"version": "2.7.6"
}
},
"run-mode": "prod",
"version": {
"date": "2023-02-19",
"tag": "v0.45.3",
"branch": "release-x.45.x",
"hash": "070f57b"
},
"settings": {
"report-timezone": "Asia/Calcutta"
}
}
}

Could someone help here identify the bug?

Please send the ddl of the table so we can try to reproduce here

Hi @Luiggi , my database is MongoBD, so i will try to obfuscate the data and share some JSON records with you.

Any news? We would really like to reproduce this at some point

Hi everybody,

I found the solution :smiley:.

I create a New Report again, and copy paste the same query; but this new report has no problems with the export download.

So, i compared both reports in Metabase's database schema with this query (with the id's of my reports), and a i found one difference in the field "visualization_settings" of each records:

select * from report_card rc
where rc.id in (509,542);
  • The old report has one array empty called "table.columns".
  • But, the new report dont have this.

So, i removed this empty array from the old report record; and the export download already works fine in the old report now :smiley: :+1:.

Suggestions:

You can find any reports with this problems in your own's Metabase's database schema, with this query:

select * from report_card rc
where rc.visualization_settings like '%"table.columns":[]%'
;