This page is a troubleshooting guide for the problem snapshot list is empty in report generator after selecting an application as shown below :
Release | Yes/No |
---|---|
All Versions |
RDBMS | Yes/No |
---|---|
CSS |
- Configure the RestAPI - set the name of the desired Central Base or Measurement Base
- Launch the Report Generator & select any application
- Try to select the snapshot & see that the list is empty
- Check for inconsistencies in the Central Base and fix them.
- Check if it is a case of Missing technological objects
Run the below query on Central Base in order to check if there are some missing technological objects.
select distinct doi.OBJECT_ID, doi.OBJECT_TYPE_ID, dot.OBJECT_TYPE_NAME as OBJECT_NAME, 'Technologic ' || dot.OBJECT_TYPE_NAME || ' object' as OBJECT_DESCRIPTION, dot.OBJECT_TYPE_NAME as OBJECT_FULL_NAME from DSS_LINK_INFO dli join DSS_OBJECT_INFO doi on doi.SNAPSHOT_ID = dli.SNAPSHOT_ID and doi.OBJECT_ID = dli.NEXT_OBJECT_ID join DSS_OBJECT_TYPES dot on dot.OBJECT_TYPE_ID = doi.OBJECT_TYPE_ID left join DSS_OBJECTS dos on dos.OBJECT_ID = dli.NEXT_OBJECT_ID where dli.LINK_TYPE_ID = 2 and dos.OBJECT_ID is null
If the above query returns some rows then this confirms that there there are some missing technological objects. For this case, to repair the CB please run the below query which inserts the technological objects.
insert into DSS_OBJECTS (OBJECT_ID, OBJECT_TYPE_ID, OBJECT_NAME, OBJECT_DESCRIPTION, OBJECT_FULL_NAME) select distinct doi.OBJECT_ID, doi.OBJECT_TYPE_ID, dot.OBJECT_TYPE_NAME as OBJECT_NAME, 'Technologic ' || dot.OBJECT_TYPE_NAME || ' object' as OBJECT_DESCRIPTION, dot.OBJECT_TYPE_NAME as OBJECT_FULL_NAME from DSS_LINK_INFO dli join DSS_OBJECT_INFO doi on doi.SNAPSHOT_ID = dli.SNAPSHOT_ID and doi.OBJECT_ID = dli.NEXT_OBJECT_ID join DSS_OBJECT_TYPES dot on dot.OBJECT_TYPE_ID = doi.OBJECT_TYPE_ID left join DSS_OBJECTS dos on dos.OBJECT_ID = dli.NEXT_OBJECT_ID where dli.LINK_TYPE_ID = 2 and dos.OBJECT_ID is null
- Check if it is a case of Missing links in DSS_LINKS table
To identify if some links are present in a snapshot, but not in DSS_LINKS table you can run the below query .
select dli.LINK_TYPE_ID, count(1) from (select distinct dli.LINK_TYPE_ID, dli.PREVIOUS_OBJECT_ID, dli.NEXT_OBJECT_ID from DSS_LINK_INFO dli left join DSS_LINKS dl on dl.PREVIOUS_OBJECT_ID = dli.PREVIOUS_OBJECT_ID and dl.NEXT_OBJECT_ID = dli.NEXT_OBJECT_ID and dl.LINK_TYPE_ID = dli.LINK_TYPE_ID where dl.LINK_TYPE_ID is null ) dli group by dli.LINK_TYPE_ID order by dli.LINK_TYPE_ID
If the above query returns some rows then this confirms that there there are some links present in a snapshot, but not in DSS_LINKS table. For this case, to repair the CB run the below query which inserts the links to DSS_LINKS from DSS_LINK_INFO
insert into DSS_LINKS ( LINK_TYPE_ID, PREVIOUS_OBJECT_ID, NEXT_OBJECT_ID ) select dli.LINK_TYPE_ID, dli.PREVIOUS_OBJECT_ID, dli.NEXT_OBJECT_ID from (select distinct dli.LINK_TYPE_ID, dli.PREVIOUS_OBJECT_ID, dli.NEXT_OBJECT_ID from DSS_LINK_INFO dli left join DSS_LINKS dl on dl.PREVIOUS_OBJECT_ID = dli.PREVIOUS_OBJECT_ID and dl.NEXT_OBJECT_ID = dli.NEXT_OBJECT_ID and dl.LINK_TYPE_ID = dli.LINK_TYPE_ID where dl.LINK_TYPE_ID is null ) dli
- After running the query reset the measurement base.
- Perform a re-consolidation of CB.
- Re-start the web service (tomcat).
- Launch the Report Generator.
- If the issue still exists then contact CAST Technical Support. with Relevant Input
Ticket 29842