Getting SearchpathLimit Error in Logs on trying to hit few pages | Community
Skip to main content
Level 2
May 19, 2025

Getting SearchpathLimit Error in Logs on trying to hit few pages

  • May 19, 2025
  • 3 replies
  • 822 views

Hi All,

I wanted to understand why am i getting this below error in logs on hitting few pages.

 

10:17:23.120 *ERROR* [148.252.141.237 [1737109042752] GET /content/path/EN/Sample/products/product-category.html HTTP/1.1] com.day.cq.wcm.core.impl.designer.SearchPathLimiter No style has been found until search path threshold: 10000 was reached.

I am thinking because of the huge content and nested structure authored on page something like below

Each of these paragraph systems have lot of static components and nested structure. Increasing the threshold to 10000 under Design Factory Config will resolve the issue but i dont think its a proper fix and wanted to understand the reasons leading to exceeding default threshold.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

Peter_Puzanovs
Community Advisor
Community Advisor
May 19, 2025

Hey Veena,

 

Does enabling day cq core debug filter and acs aem commons filter give you any hints as to how you can optimize your page better?


Regards,

Peter

Veena1Author
Level 2
May 20, 2025

Hi @peter_puzanovs i see day cq wcm debug filter its not enabled. im not certain with the steps on enabling acs commons for hints to optimize page. could you be more specific on ACS commons ways.

AmitVishwakarma
Community Advisor
Community Advisor
May 20, 2025

Hi @veena1 ,

AEM tries to resolve styles (like CSS classes, design configs) for components by traversing the component hierarchy upwards from the request path, looking for a matching designPath. When:

  - The page has deeply nested parsys and containers.

  - Each component adds layers to the structure.

  - There are no styles defined (or accessible) at higher levels.

  - AEM reaches the threshold (default: 1000 or 10000) while traversing.

It throws the error.


Try below solution:

Step 1: Fix the Page Structure

You should not increase the threshold unless you're forced to. Instead:

  - Flatten your component hierarchy – reduce deeply nested containers/parsys.

  - Audit your page using CRXDE Lite or curl to count depth levels.

  - Consolidate similar components under one wrapper where possible.

 

Step 2: Ensure cq:designPath is Properly Set

Make sure your page (or a parent page template) has:

cq:designPath = /etc/designs/<your-site>

If this is missing or wrongly set, AEM cannot resolve design styles, and will traverse needlessly.

Step 3: Audit the Design Configuration

Verify:

  - The referenced designPath exists.

  - The structure under /etc/designs/<your-site> or /conf/<your-site> has valid style definitions for the components being used.

 

 Regards,
Amit

Veena1Author
Level 2
May 20, 2025

@amitvishwakarma Thanks for the details.

Is it possible to reach 10000 threshold even with static components in picture?

i think having threshold of 10000 is still more.

 

is it also because every node that is traversed its details will also be saved with AEM scripts running in the background?

kautuk_sahni
Community Manager
Community Manager
July 2, 2025

@veena1 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
Veena1Author
Level 2
July 2, 2025

Hey @kautuk_sahni not exactly but yes good path to answer was suggested by advisors.

Thank You