0

I am using Sitecore 9.0.1 with SXA 1.7 . I am getting below error when I change my SXA page from Default to JSON content. I have used SXA rendering variants on the page those variants are working fine on the web but when I change the EXPERIENCE Default to JSON this error shows up.

enter image description here

For all the rendering variants in the page it is showing the same error.

{"name":"div","path":"/main/container-11/container-13","contents":"


Error Rendering Sitecore.LayoutService.Presentation.JsonDataRenderer: Object reference not set to an instance of an object.

at Sitecore.XA.Foundation.RenderingVariants.Pipelines.RenderVariantField.JSON.RenderVariantFieldAsJson.RenderField(RenderVariantFieldArgs args)\r\n
at Sitecore.XA.Foundation.Variants.Abstractions.Pipelines.RenderVariantField.RenderVariantFieldProcessor.Process(RenderVariantFieldArgs args)\r\n
at .(Object , Object[] )\r\n
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)\r\n
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)\r\n
at Sitecore.XA.Foundation.Variants.Abstractions.Renderers.VariantRenderer.RenderVariantField(BaseVariantField variant, Item item)\r\n
at Sitecore.XA.Feature.LayoutServices.Integration.Serialization.HtmlVariantAsJsonSerializer.ResolveContents(Rendering rendering, IRenderingConfiguration renderingConfig)\r\n
at Sitecore.LayoutService.Presentation.Pipelines.RenderJsonRendering.ResolveRenderingContents.SetResult(RenderJsonRenderingArgs args)\r\n
at .(Object , Object[] )\r\n
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)\r\n
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)\r\n
at Sitecore.LayoutService.Presentation.Pipelines.RenderJsonRendering.RenderJsonRenderingPipeline.GetResult(RenderJsonRenderingArgs args)\r\n
at Sitecore.LayoutService.Presentation.JsonDataRenderer.Render(TextWriter writer)\r\n
at Sitecore.Mvc.Pipelines.ResponseRendering.ExecuteRenderer.Render.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args)
"},{"name":"div","path":"/main/container-11/container-13","contents":"
Error Rendering Sitecore.LayoutService.Presentation.JsonDataRenderer: Object reference not set to an instance of an object.

at Sitecore.XA.Foundation.RenderingVariants.Pipelines.RenderVariantField.JSON.RenderVariantFieldAsJson.RenderField(RenderVariantFieldArgs args)\r\n
at Sitecore.XA.Foundation.Variants.Abstractions.Pipelines.RenderVariantField.RenderVariantFieldProcessor.Process(RenderVariantFieldArgs args)\r\n
at .(Object , Object[] )\r\n
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)\r\n
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)\r\n
at Sitecore.XA.Foundation.Variants.Abstractions.Renderers.VariantRenderer.RenderVariantField(BaseVariantField variant, Item item)\r\n
at Sitecore.XA.Feature.LayoutServices.Integration.Serialization.HtmlVariantAsJsonSerializer.ResolveContents(Rendering rendering, IRenderingConfiguration renderingConfig)\r\n
at Sitecore.LayoutService.Presentation.Pipelines.RenderJsonRendering.ResolveRenderingContents.SetResult(RenderJsonRenderingArgs args)\r\n
at .(Object , Object[] )\r\n
at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)\r\n
at Sitecore.Pipelines.DefaultCorePipelineManager.Run(String pipelineName, PipelineArgs args, String pipelineDomain)\r\n
at Sitecore.LayoutService.Presentation.Pipelines.RenderJsonRendering.RenderJsonRenderingPipeline.GetResult(RenderJsonRenderingArgs args)\r\n
at Sitecore.LayoutService.Presentation.JsonDataRenderer.Render(TextWriter writer)\r\n
at Sitecore.Mvc.Pipelines.ResponseRendering.ExecuteRenderer.Render.Render(Renderer renderer, TextWriter writer, RenderRenderingArgs args)
"}

Can anyone please help how can i solve this?

Your Answer

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

Browse other questions tagged or ask your own question.