SharePoint online: Content Query Web Part

sravya shivapuram 211 Reputation points
2022-03-29T20:12:06.353+00:00

Hi,

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 -

188019-image.png

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.

Regards
SLS

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,699 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,982 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Emily Du-MSFT 46,171 Reputation points Microsoft Vendor
    2022-03-30T07:25:03.61+00:00

    @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.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.