Issue when using experience fragment component on a page | Community
Skip to main content
New Member
November 4, 2024

Issue when using experience fragment component on a page

  • November 4, 2024
  • 2 replies
  • 1468 views

I am unable to select a variation in the experience fragment, even though I have selected a variation in the dialog. I am receiving the error message: "Choose an experience fragment variation."

 

 

 

Additionally, I see an API call to /content/xxx/xx/xx/en_us/xx/xx/master.3.json?_=1730751101474, but it is returning an empty response. This functionality is working fine in the environment where the API call typically returns a valid response. Can someone help me resolve this issue?

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

2 replies

h_kataria
Community Advisor
Community Advisor
November 5, 2024

If the API call is returning empty response, then probably variations are not created properly. You can try creating a new variation just to test and try to select that. 

Also compare the content structure with the instances on which you are getting a successful response. I have observed similar cases generally where there are some missing jcr:content nodes.
Hope this helps.

New Member
November 5, 2024

Tried different experience fragment variations but still seeing the same error. Also validated the jcr:content nodes.

h_kataria
Community Advisor
Community Advisor
November 5, 2024

Can you cross check once if your exp fragment variations have cq:xfVariantType property available or not. And share some screenshots if possible. I am on AEM 6.5.21 and the API responsible for checking the validity seems to be bin/wcm/experiencefragments/verifyreferences.json which is validating if the selected value is an actual exp fragment variation or not.

kautuk_sahni
Community Manager
Community Manager
November 5, 2024

@mahesh_kumar_yedlapalli Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni