SYMPTOM:
When unused metrics are deleted , the search for the correspondent unused facts with Strategy Object Manager 9.4.x-10.x might not provide any result. This problem usually happens because in Strategy architecture, logical tables are treated as dependent of facts, being this the situation, the user is forced to check manually each fact of the project and verify if there are metrics dependent on it.
Due to this situation, the following picture show the procedure that Administrators follow in order to retrieve unused facts: Search all the object of type "fact" in the project check one by one individually in order to verify if there are dependant objects.

STEPS TO REPRODUCE:
Follow the steps below to reproduce this issue:




ACTION:
It is possible to solve this problem using the SQL below. This must be run directly against the Metadata with Strategy DB Query Tool to search for object ID and name of facts that are not used by deleted metrics.
Replace `PROJECT_ID` with the object id of the project to be queried, which can be found in Project Configuration.

WARNING:
Do not modify this SQL in any way, do not run any SQL other than the provided one against the metadata unless explicitly requested by Strategy Technical Support. In general, the manual execution of SQL against metadata is not supported. Ensure that a backup of the metadata has been made before attempting any metadata query.
SELECT OBJECT_ID, OBJECT_NAME FROM DSSMDOBJINFO WHERE OBJECT_TYPE=13 AND PROJECT_ID=’’ AND OBJECT_ID NOT IN (SELECT DISTINCT DEPN_OBJID AS OBJECT_ID FROM DSSMDOBJDEPN WHERE PROJECT_ID=’’ AND DEPNOBJ_TYPE=13 AND OBJECT_TYPE=4 ) ORDER BY OBJECT_ID ASC