Missing columns in XLSX attachments and downloads

Hello there,
I recently updated our self hosted metabase to version 0.41.0 and I really like the update to the excel files being converted nicely.

However, we have a few queries that now give us an empty XLSX file when we download them or only show 2 out of 9 columns for example.

They use a raw SQL query as their data/table and add a few filters on top. When I download the raw sql query, all columns are shown correctly.

I am really sorry that I can't describe it better but maybe I am not the only one experiencing this. Please let me know if I can add any important information :slight_smile:

1 Like

Hi @haas_zoeller

Post "Diagnostic Info" from Admin > Troubleshooting.

Can you include the output of /api/card/123 , where 123 is your question ID, of one of your problematic questions? This should be on the questions, where you aggregate and filter, not the nested raw SQL question.

I have seen a couple of reports of this, but I have not been able to reproduce, so I don't know what the problem could be.

Hello @flamber

here's the diagnostic info:

{
"browser-info": {
"language": "de-DE",
"platform": "Win32",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "Cp1252",
"java.runtime.name": "Java(TM) SE Runtime Environment",
"java.runtime.version": "1.8.0_291-b10",
"java.vendor": "Oracle Corporation",
"java.vendor.url": "http://java.oracle.com/",
"java.version": "1.8.0_291",
"java.vm.name": "Java HotSpot(TM) 64-Bit Server VM",
"java.vm.version": "25.291-b10",
"os.name": "Windows Server 2012 R2",
"os.version": "6.3",
"user.language": "de",
"user.timezone": "Europe/Berlin"
},
"metabase-info": {
"databases": [
"sqlserver"
],
"hosting-env": "unknown",
"application-database": "h2",
"application-database-details": {
"database": {
"name": "H2",
"version": "1.4.197 (2018-03-18)"
},
"jdbc-driver": {
"name": "H2 JDBC Driver",
"version": "1.4.197 (2018-03-18)"
}
},
"run-mode": "prod",
"version": {
"tag": "v0.41.0",
"date": "2021-10-06",
"branch": "release-x.41.x",
"hash": "c529fe2"
},
"settings": {
"report-timezone": "Europe/Berlin"
}
}
}

I am not sure if I understood correctly what you need from me with the api.
My question has the following link for example:
http://metabase:3000/question/726-auslaufende-w-r-vertrage
when I go to http://metabase:3000/api/726-auslaufende-w-r-vertrage or http://metabase:3000/api/726

I get the following message:
"API-Endpunkt existiert nicht."

@haas_zoeller
The request should be http://metabase:3000/api/card/726 (notice card)
You should upgrade your Java:
https://www.metabase.com/docs/latest/operations-guide/java-versions.html
And migrate away from H2 if you're using Metabase in production:
https://www.metabase.com/docs/latest/operations-guide/migrating-from-h2.html

hi @flamber
I will make sure to update our java version soon.

can I send you the data from http://metabase:3000/api/card/726 through a private message or mail ? I fear that theres personal information embedded that I wouldn't want to be visible here :smile:

@haas_zoeller And there's an issue now for this:
https://github.com/metabase/metabase/issues/18382 - upvote by clicking :+1: on the first post

1 Like

thank you @flamber for creating an issue and acting so fast on this!