Here is the complete error message:
"ERROR [SiteRefreshTask Site refresh task for po-tdvdev01] 2019-02-20 12:16:54.339 +0000 SiteApi - User Exception Occurred
com.compositesw.common.UserException: An exception occurred when executing the following query: "SELECT {OPTION CASE_SENSITIVE="TRUE"}
RTRIM(DATASOURCE_NAME) DATASOURCE_NAME, 'CATALOG' METADATA_TYPE, COUNT(*) METADATA_COUNT FROM ALL_CATALOGS WHERE DATASOURCE_ID IN ( select DATASOURCE_ID from ALL_DATASOURCES where owner <> 'system' and datasource_type <> 'VirtualWsdl' ) GROUP BY RTRIM(DATASOURCE_NAME) UNION SELECT {OPTION CASE_SENSITIVE="TRUE"} RTRIM(DATASOURCE_NAME) DATASOURCE_NAME, 'SCHEMA' METADATA_TYPE, COUNT(*) METADATA_COUNT FROM ALL_SCHEMAS WHERE DATASOURCE_ID IN ( select DATASOURCE_ID from ALL_DATASOURCES where owner <> 'system' and datasource_type <> 'VirtualWsdl' ) GROUP BY RTRIM(DATASOURCE_NAME) UNION SELECT {OPTION CASE_SENSITIVE="TRUE"} RTRIM(DATASOURCE_NAME) DATASOURCE_NAME, 'TABLE' METADATA_TYPE, COUNT(*) METADATA_COUNT FROM ALL_TABLES WHERE DATASOURCE_ID IN ( select DATASOURCE_ID from ALL_DATASOURCES where owner <> 'system' and datasource_type <> 'VirtualWsdl' ) GROUP BY RTRIM(DATASOURCE_NAME) UNION SELECT {OPTION CASE_SENSITIVE="TRUE"} RTRIM(DATASOURCE_NAME) DATASOURCE_NAME, 'COLUMN' METADATA_TYPE, COUNT(*) METADATA_COUNT FROM ALL_COLUMNS WHERE DATASOURCE_ID IN ( select DATASOURCE_ID from ALL_DATASOURCES where owner <> 'system' and datasource_type <> 'VirtualWsdl' ) GROUP BY RTRIM(DATASOURCE_NAME) UNION SELECT {OPTION CASE_SENSITIVE="TRUE"} RTRIM(DATASOURCE_NAME) DATASOURCE_NAME, 'PROCEDURE' METADATA_TYPE, COUNT(*) METADATA_COUNT FROM ALL_PROCEDURES WHERE DATASOURCE_ID IN ( select DATASOURCE_ID from ALL_DATASOURCES where owner <> 'system' and datasource_type <> 'VirtualWsdl' ) GROUP BY RTRIM(DATASOURCE_NAME) UNION SELECT {OPTION CASE_SENSITIVE="TRUE"} RTRIM(DATASOURCE_NAME) DATASOURCE_NAME, 'WSDL_OPERATION' METADATA_TYPE, COUNT(*) METADATA_COUNT FROM ALL_WSDL_OPERATIONS WHERE DATASOURCE_ID IN ( select DATASOURCE_ID from ALL_DATASOURCES where owner <> 'system' and datasource_type <> 'VirtualWsdl' ) GROUP BY RTRIM(DATASOURCE_NAME) UNION SELECT NULL DATASOURCE_NAME, 'DOMAIN' METADATA_TYPE, COUNT(*) METADATA_COUNT FROM ALL_DOMAINS WHERE DOMAIN_TYPE != 'COMPOSITE' AND DOMAIN_TYPE != 'DYNAMIC' UNION SELECT NULL DATASOURCE_NAME, 'GROUP' METADATA_TYPE, COUNT(*) METADATA_COUNT FROM ALL_GROUPS WHERE DOMAIN_ID IN ( SELECT DOMAIN_ID FROM ALL_DOMAINS WHERE DOMAIN_TYPE != 'COMPOSITE' AND DOMAIN_TYPE != 'DYNAMIC') UNION SELECT NULL DATASOURCE_NAME, 'USER' METADATA_TYPE, COUNT(*) METADATA_COUNT FROM ALL_USERS WHERE DOMAIN_ID IN ( SELECT DOMAIN_ID FROM ALL_DOMAINS WHERE DOMAIN_TYPE != 'COMPOSITE' AND DOMAIN_TYPE != 'DYNAMIC')". Cause: Unable to retrieve result from data source "/system/datasources/repository" during query execution. "