0

I am getting a strange error when deploying a JSS application to Sitecore and running in Integrated mode.

Rendering data contained rendering reference ID 6cc52330-7130-49a8-9585-5b9b8d946847 but that rendering ID was not present in the rendered renderings context. This ought not to occur. 

[InvalidOperationException: Rendering data contained rendering reference ID 6cc52330-7130-49a8-9585-5b9b8d946847 but that rendering ID was not present in the rendered renderings context. This ought not to occur.] Sitecore.LayoutService.ItemRendering.PlaceholderRenderingService.ConvertRenderedPlaceholderMarkup(RenderedPlaceholder placeholder, String contents, RenderedJsonRenderingContext renderedRenderingContext) +969Sitecore.LayoutService.ItemRendering.PlaceholderRenderingService.RenderPlaceholder(PlaceholderDefinition placeholderDefinition, IRenderingConfiguration renderingConfiguration) +499   System.Linq.WhereSelectListIterator`2.MoveNext() +117   System.Linq.WhereEnumerableIterator`1.MoveNext() +124   System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +436

This seems to be related to cache. If I clear the cache via /sitecore/admin/cache.aspx the next page refesh will work. Any subsequent page refresh will fail again after the first load and the Rendering ID in the error message changes.

Any hints on the source of the issue are appreciated.

  • Is there any component with a placeholder in it which is cache'able? – Marek Musielak May 9 at 6:25
  • Yes, a single component on the page has Rendering cache turned on with Vary By Data. The component does not contain any placeholders though. The component simply renders a banner image. – TomT May 9 at 7:06
  • And if you disable cache, does the error still exist? – Marek Musielak May 9 at 7:28
  • The issue goes away once cache for the rendering is turned off. This is a pretty simple component with just an image and it lives inside the default JSS placeholder "jss-main". – TomT May 9 at 23:28
  • Source HTML: <sc-placeholder name="jss-main" ng-reflect-name="jss-main" ng-reflect-rendering="[object Object]"> <app-banner><hr><a href="https://www.sitecore.com" text="Link to Sitecore" url="https://www.sitecore.com" linktype="external"> <img class="img-fluid" sizes="(min-width: 639px) 640px, (max-width: 1024px) 1025px, (max-width: 1440px) 1441px, 1920px" alt="Sitecore JSS Logo" width="1600" height="275" style="margin: 0px 0px" srcset="http://jssangularweb/-/jssmedia/JssAngularWeb/data/media/img/tweaked.jpg?mw=640 640w"> </a><hr></app-banner></sc-placeholder> – TomT May 9 at 23:31

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.