Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards.
SOLVED

GraphQL persisted queries in Publish enviroment

Avatar

Level 1

Hi Team,

 

Created new GraphQL Persistence query and while accessing in publish it is giving the below error. Is there any permissions missing in publish? 

 

{"errors":[{"errorType":"PersistenceError","message":"Could not find Persisted Query","details":"Configuration: 'project123' and Query Name: 'productdata' does not resolve to an existing Persistent Query"}]}

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @VGKrish,

Could you verify if the persisted query is published?

Go to CRXDE and check if replicated: /conf/project123/settings/graphql/persistentQueries/productdata 

Also, Verify that the GraphQL endpoint is accessible on Publish - Make sure you're using the correct endpoint on the Publish instance:

https://<publish-domain>/graphql/execute.json/project123/productdata

If you're using GraphQL via a frontend app, confirm that the endpoint points to the Publish instance and not to Author by mistake.


At last, 
Check permissions on the Publish instance

If you are using a service user or ACLs to access GraphQL endpoints:

  • Ensure the correct service user has read access to:

    • /conf/project123/settings/graphql/persistentQueries

    • And any associated content paths used by the query


Santosh Sai

AEM BlogsLinkedIn


View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi @VGKrish,

Could you verify if the persisted query is published?

Go to CRXDE and check if replicated: /conf/project123/settings/graphql/persistentQueries/productdata 

Also, Verify that the GraphQL endpoint is accessible on Publish - Make sure you're using the correct endpoint on the Publish instance:

https://<publish-domain>/graphql/execute.json/project123/productdata

If you're using GraphQL via a frontend app, confirm that the endpoint points to the Publish instance and not to Author by mistake.


At last, 
Check permissions on the Publish instance

If you are using a service user or ACLs to access GraphQL endpoints:

  • Ensure the correct service user has read access to:

    • /conf/project123/settings/graphql/persistentQueries

    • And any associated content paths used by the query


Santosh Sai

AEM BlogsLinkedIn


Avatar

Level 2

Can you check persistent query is published?

 

For more details check my blog .

 

https://www.linkedin.com/posts/phaniraj-tanneru-268ab829_aem-graphql-overview-activity-7352996764385...