Expand my Community achievements bar.

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

XF Field throws an error while giving auto suggestions

Avatar

Level 1

I have a XF field in my component with resource type as : cq/experience-fragments/editor/components/xffield
and i have given one property rootPath as /content/experience-fragments.
Now when i type anything in this field it throws an error as failed to load next page

JavedKh_0-1757572654890.png

 

If i give rootPath as /content/experience-fragments/myproject then this error doesnt show up. But i want to have rootPath as /content/experience-fragments only. Any solution to this?

3 Replies

Avatar

Level 10

hi @JavedKh

maybe the error happens because the field tries to load all content fragments under that root path, which can be very large and cause pagination or loading issues. When you restrict rootPath to something narrower like "/content/experience-fragments/myproject," the loading works fine because the scope is limited. 

Avatar

Level 1

Yes correct. I want to resolve this pagination issues

Avatar

Community Advisor

Hi @JavedKh,

Try this: In the Template Editor - Component Policy for your field, set rootPath to each site’s XF folder (e.g., /content/experience-fragments/brand-a). Same dialog, just scoped per site. This is the clean, supported way.

If you really need rootPath=/content/experience-fragments

  • Don’t browse; search. Swap the xffield for a pathfield that opens the XF picker in search mode so authors type a few chars instead of expanding the whole tree.

  • Also help it scale by organizing XFs into brand/locale subfolders so search hits fewer results.

 


Santosh Sai

AEM BlogsLinkedIn