Symptom
When creating or running a Story report, we can see below error:
"Queries are missing one or more models of SAP Application connections. Please edit and resave the model."
Network logs shows below message:
"Messages": [
{
"Type": 2,
"Number": 6018,
"Text": "Query does not exist in the query repository.""
Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.
Environment
- SAP Analytics Cloud (Enterprise)
- SAP SuccessFactors People Analytics
Reproducing the Issue
- Login to the SAC Enterprise Instance;
- Go to 'Catalog';
- Open or Create any affected Story report that is using SAPSFSFLMS or SAPSFSFREP live connections:
- When opening the query you can see below error:
"Queries are missing one or more models of SAP Application connections. Please edit and resave the model." - In browser network logs we can see below error
"Messages": [
{
"Type": 2,
"Number": 6018,
"Text": "Query does not exist in the query repository.""
Cause
- Post investigation it is observed that underlying DBSchema has been changed from one pool to other, considering the performance improvements. (dbPool migration)
- Due to this certain cache information remained unchanged and was causing issues in connecting to DB.
Resolution
To resolve the issue for SAC Enterprise Stories, please manually edit and save the story data. This action will successfully re-create the necessary calculation views, allowing the Stories on SAC Enterprise to run as expected.
For People Analytics Stories on SuccessFactors, re-running them automatically re-creates the query calculation views. Unfortunately, this automatic behavior is not currently supported for SAC Enterprise Stories.
See Also
If facing the same issue on People Analytics Stories embedded on SuccessFactors, please refer to the KBA below:
3503378 - "Query does not exist in the repository" Error when creating Story report
Keywords
Query does not exist in the query repository, Configuration, Error, Connecting, HANA, Rest, API, Repository, Object, Status, Manage, Data, Query, Designer, DB, "Query does not exist in the query repository.", dbpool migration, "Queries are missing one or more models of SAP Application connections", SAPSFSFLMS, SAPSFSFREP, [FPA97-6742] - Automatically Refresh ORCA User Credentials Cache in SAC OEM Server (SAPJIRA), [AYT-58713] - Enterprice SAC Teanant Existing Reports Not Working After DB Pool Migration , KBA , LOD-SF-ANA-SAC , Stories in People Analytics , LOD-ANA-OEM , Embedded usage of SAP Analytics Cloud , Problem
SAP Knowledge Base Article - Public