Error when editing Standard Reports (HTML Based)

Hi

I’m trying to develop an HTML Based Standard Report
I’m able to create the report and upload the html file. The issue starts when I want to edit the report (upload a new html file or change the reporting parameters), the system returns an error (check the screenshot bellow)

At first I thought that it was an issue with my html file, and to this out I went to DHIS2 demo site, and downloaded and html based standard report from a version similar to mine (2.40.7.1), the report was ANC: Overview Report (HTML-Based), and after “installing” on my instance, when I tried to edit the configuration I had the same error.

Can you help me fix this issue?
I’m using DHIS2 version 2.40.7.1, Tomcat9, Java 11

Best regards

Hi @joao.machiana: sorry that you’re having these issues.

I tried opening a report on our play instance and opening in edit mode worked okay for me: DHIS 2 Demo - Sierra Leone

Could I ask if you could try to reproduce your problem on one of our test servers (https://play.im.dhis2.org/stable-2-40-7-1/dhis-web-reports/index.html#/standard-report/edit/AMERNML55Tg). If you have problems there, we can better diagnose and try to fix.

For 2.40, you can use: https://play.im.dhis2.org/stable-2-40-7-1

Hi @tzemp
I just tried on the provided link of the demo site, and there I was successfully able to edit the standard report.
So it might be something with my local instance. Any idea on how to debug this issue?

Best regards

Hi @joao.machiana. You might want to see if you can replicate your problem in a play instance by recreating your own report there and seeing if you can get the error (that way we can look at it more).

Otherwise, I can suggest that you open the browser tools and look at the console/network tabs to see if there are any errors that show there. You can also try to perhaps create your report step-by-step (e.g. create a basic report with placeholder html (like <div>hello</div>) then sequential add name/save/open, add period/save/open) to see if you can isolate where the error is occuring.

@tzemp

Thank you for the suggestions
I tried something on my local instance. I was using Java 11, and decided to upgrade to Java 17.
This seemed to partially fix the problem. At least now I’m able to edit the standard report at my will.

But one issue remains, which is, when editing the standard report, I’m selecting the Reporting Period and Organisation Unit Report Parameters.
When executing the report, I’m able to select the reporting organisation unit, but the field to select reporting period is blocked, and does not allows me to select a date.


I’ve replicated this behavior in the online instance (https://play.im.dhis2.org/stable-2-40-7-1). There I picked the report ANC: Overview Report (HTML-Based), downloaded the html, and created a new html standard report, and uploaded the html. and added the reporting parameters, and still no able to select the period for the report.

Can you check on this?
Best regards

Hi, @tzemp any updates on this topic?

Best regards

Hi @joao.machiana: would you be able to a report a bug on our Jira page: https://dhis2.atlassian.net/jira/software/c/projects/DHIS2/issues? That way we can remember to look at the issue (and you can follow the progress on the ticket)