SharePoint online: Content Query Web Part

sravya shivapuram 211 Reputation points


I have a content query web part added in SharePoint online. This site collection consists of 2000+ sub sites and the content query webpart is defined as shown below -


When clicked on a sub-site, it doesn't display the list of documents from the documents library ( The expectation is that it shows the document names from the custom document library as a hyperlink) but I see the error shown below -

'There is a problem with the query that this Web Part is issuing. Check the configuration of this Web Part and try again.'

I am not sure what and where a change needs to be made to the web part. Please advise.

Any help is greatly appreciated. Thank you in advance.


A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
8,544 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,391 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 36,361 Reputation points Microsoft Vendor

    @sravya shivapuram

    According to this Microsoft article, so it may be caused by too many documents in the query results.

    In this example, if the query is simple, the performance of the CQWP is likely to be good as long as the total amount of items is less than 5000. However, if the query is complex, the CQWP could run into performance problems even when the total amount of items is a few thousand.

    I suggest you use content search web part in the classic page and highlighted content web part in the modern page.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.