1

Whenever I change to Preview mode in experience editor, some SXA components are throwing exceptions:

Error Rendering Controller: Sitecore.XA.Feature.Navigation.Controllers.LinkController,Sitecore.XA.Feature.Navigation. Action: Index: An unhandled exception occurred.

Error Rendering Controller: Sitecore.XA.Feature.GenericMetaRendering.Controllers.HtmlSnippetController,Sitecore.XA.Feature.GenericMetaRendering. Action: Index: An unhandled exception occurred.

I am using Sitecore 9.1.1 with SXA 1.8.1

3

This can happen if you have made your SXA Tenant unpublishable. There seems to be some logic in some components that doesn't resolve the Context (master/web) correctly and needs to have the site published.

Simply make your SXA Tenant publishable (remove publishing restrictions) and publish to resolve this issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.