Jaspersoft Domains do not have the custom DWH fields (How to reset the Jaspersoft domains)

Document ID : KB000107615
Last Modified Date : 23/07/2018
Show Technical Document Details
Question:
The custom fields checked for DWH are not appearing in the Jaspersoft Advanced Reporting domains for users to create their ad hoc queries.
We executed the DB schema report and the attributes are there in the DWH tables but not in domains. What can we do to fix the issue?
 
Answer:
1.            Run the command:
admin content-jaspersoft csk restoreDomains -userName <superuser> -password <superuser>
  This will reset the OOTB Jaspersoft domains to default.
2.            Once done, run Load DWH job – Full Load until completion.
This job will create all custom attributes and update all OOTB attributes (when needed) to Jaspersoft domain.