Unable to export a report to PDF if Display grid is selected and report type is changed


Description

Unable to export a report to PDF if user has "Display Grid" option enabled and changes the chart type. The following error message appears:

Error: JSONObject["sub_series"] not found

Steps to Reproduce

  1. Navigate to Report > Create New.
  2. Select Display Grid.
  3. Populate required fields.
  4. Click Save.
  5. Change the report Type.
  6. Run the report (do not save it).
  7. From the Report options menu, select Export to PDF.
  8. Click Export.
  9. Open the report.
    The exported report is not exported. Instead, the report contains the error message:
    Error: JSONObject["sub_series"] not found

Workaround

Save the report before exporting it to PDF. If this does not fix the issue, recreate the report and then export to PDF.


Related Problem: PRB649115