Data Visualizer Problem: XLS Download skips empty rows and columns (even when those options unchecked) in dhis2 >= v2.39

Dear Experts,

We are observing an issue while downloading xls/csv for pivot tables in data visualizer, for dhis2 versions>=2.39

Even when we have unchecked option of skip empty rows/columns, downloaded xls automatically removes empty rows/columns. This was not the case for <2.39 versions.

Do you know is there any JIRA associated with it? if not shall I raise one, also do we have any workarounds.

1 Like

Hi @jthomas

I am trying to reproduce this issue in https://play.im.dhis2.org/stable-2-40-7/dhis-web-data-visualizer/index.html#/qfMh2IjOxvw and it’s actually showing me the columns:


Please make sure your apps are the latest versions…

Are you able to reproduce the issue you are facing in any of the play.dhis2.org instances? If so please share the steps to reproduce :pray:

Thanks!

1 Like

Hi Gassim

Actually I was able to recreate the issue from the link you shared (for example highlighted ones didn’t come in xls attached

data (41).xls (140 KB)

Oh, yes! :smiley: I know what happened, thanks! When I was testing, I also added a calculation which add a ā€˜zero’ value thus resulting in no empty rows. Here’s what we can do:

Yes, please go ahead and create the Jira ticket. Thanks in advance!

Create a calculation with Number = 0. Delete the additional Calculation column after exporting to spreadsheet.

1 Like

Hello
{
ā€œapp_nameā€: ā€œData Visualizerā€,
ā€œapp_versionā€: ā€œ101.1.3ā€,
ā€œdhis2_versionā€: ā€œ2.41.3ā€,
ā€œdhis2_revisionā€: ā€œ9c942a6ā€
}
When we download an Excel file from the Data Visualizer application, it does not include the blank columns. This does not produce a unified file, as this file is used as a template. When blank columns are hidden, the template changes depending on the data. This is not what we want, as we did not select the option to hide blank columns from the options.

Also, for clarification, in previous versions, blank columns were not hidden when downloading an Excel file.

I don’t know why the recent dhis2 update has been causing so many problems.

Hi @Eng.Ali_Hameed

Thank you for your post. This is a known issue that has been reported. You can watch the jira ticket to receive notifications: Issue navigator - Jira

For now, you might want to try the work around:

I hope this helps. Thanks!

2 Likes

Hi @Gassim ,
@edoardo mentioned that "we seem to pass correctly (we don’t pass it when not true) the option to the api, but the returned table always omits the empty.
From the API documentation the default value is false so all rows should be returned unless we pass hideEmptyRows=true in the request:
with hideEmptyRows=true ". But it seems not to be working on my side.
@Eng.Ali_Hameed & @jthomas , were you able to resolve this issue?