コミュニティアチーブメントバーを展開する。

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

*WARN* PersistedQueryServlet Cannot recognize GraphQL query type:

Avatar

Level 1

We are getting below WARN logs, Although it looks like the query executes successfully and returns data
GarphiQL window works fine too with returning the proper response.

On checking the jar code for PersistedQueryServlet.java, it seems this WARN message is displayed may be because of the Query Syntax, since the code looks for pattern "List{items{"  to check if a Query is of a List. [ Please refer below image], whereas  my GraphiQL query has the pattern:
"generalMessageList(filter: {code: {_expressions: [{value: $code}]}},_locale:$locale) {
__typename
items {
__typename....
"

i.e "List(filter" 

Can you please share what , if any, corrections should be made for the Query syntax ?

boolean isQueryList(String query) {
return StringUtils.deleteWhitespace(query).contains("List{items{");
}

SCBM_0-1741338280119.png

 

 

*WARN* GET /graphql/execute.json/<endpoint_name>/Message;code=still_want_to_signup;locale=en; HTTP/1.1] com.adobe.aem.graphql.impl.servlet.PersistedQueryServlet Cannot recognize GraphQL query type: {
  "data": {
    "generalMessageList": {
      "__typename": "GeneralMessageModelResults",
      "items": [
        {
          "__typename": "GeneralMessageModel",
          "_path": "/content/dam/abc/web/en/messages/general/still_want_to_signup",
          "code": "still_want_to_signup",
          "message": {
            "__typename": "MultiFormatString",
            "html": "<p>Do you still want to sign up?</p>\n",
            "markdown": "Do you still want to sign up ?\n\n ",
            "plaintext": "Do you still want to sign up?",
            "json": [
              {
                "nodeType": "paragraph",
                "content": [
                  {
                    "nodeType": "text",
                    "value": "Do you still want to sign up?"
                  }
                ]
              }
            ]
          },
          "htmlDecorator": null
        }
      ]
    }
  }
}

 

 

 

トピック

トピックはコミュニティのコンテンツの分類に役立ち、関連コンテンツを発見する可能性を広げます。

7 返信

Avatar

Community Advisor

@SCBM 

By looking at code snippet you attached as image, it looks like it will log the warn message every-time because it's outside if statement.

Can you please re-check the Java servlet code once?

 

Avatar

Level 1

Hello @iamnjain 

 

The two "if" statements have a single "return" statements. So in case any one of the if condition is  true, it will return without executing the logger  "warn"  message.

Avatar

Community Advisor and Adobe Champion

I would recommend logging this as a bug as your query syntax looks perfectly valid.

I can't reproduce the error with similar queries.  Are you on cloud service on the latest release?

Avatar

Level 1

Hello @martin_ecx_io 

Yes, we are on cloud service. Can you please share which latest release version are you referring to? Will cross check it with what we have in our case

Avatar

Community Advisor and Adobe Champion

The cloud service instance i tested on is running version 2025.1.19352.20250131T194709Z
you can check the version in Cloud Manager for each environment

 

On my sandbox env it shows the following as the latest version available currently:

Screenshot 2025-03-07 at 11.22.16.png

Avatar

Level 2

Did you end up raising an Adobe ticket for this? Any resolutions?

Avatar

Administrator

@SCBM Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!



Kautuk Sahni