Recently I have faced some issues with the Jmix Report Add-On.
The scenario was:
Did some changes on a report using the Reports screen. (eg. adding/dropping parameters, changing templates etc.)
Save the Report, and Export the report as zip file using the Reports screen.
Import the zip file into another environment using the Reports screen.
And I found out that after the Import, certain details were missing, including the default template of the report.
Later found out that this was because after Saving the report, the json data in REPORT_REPORT.XML was disrupted and have some details that are missing, specifically : “code”, “roles”, “defaultTemplate”, and “description”.
This happens randomly, maybe 1 out of every 6 reports will face this, please help to look into this, thank you.
I tried to reproduce the problem, but I could not get the same result. The only similar case I found is this one:
If you copy a report and then export the copy without opening and saving it, the exported zip contains the original report, without template files. When you import this zip, it does not create a new report. Instead it updates the original report (the one with the same id) and its templates become empty. After that the report cannot run, and the default template looks missing.