Content Query Web Part limitations

Highlighted
MVP

Today I configured a Content Query Web Part in a SharePoint 2013  site and I'm getting this error message:

 

The query cannot be completed because the number of lists in the query exceeded the allowable limit. For better results, limit the scope of the query to the current site or list or use a custom column index to help reduce the number of lists.

 

After a bit of searching I found this post:

 

http://wingleungchan.blogspot.co.uk/2014/11/i-have-recently-come-across-error-where.html

 

I understand that 

$query.Lists = "<Lists BaseType='0' MaxListLimit='0'>"
 

can solve the problem wihtin PowerShell. Is there any way in the CQWP to limit the number of lists?

 

 

0 Replies