Can't cancel inheritance for child nodes | Community
Skip to main content
Level 3
February 2, 2017

Can't cancel inheritance for child nodes

  • February 2, 2017
  • 2 replies
  • 7328 views

Hi, 

We are using AEM 6.1 with SP2. 

When cancelling inheritance on a component, the child nodes are not being cancelled, which ends up overriding data during rollout.  According to the documentation - https://docs.adobe.com/docs/en/aem/6-1/develop/platform/custom-nodetypes.html#cq:LiveSyncCancelled - there is an additional boolean property called cq:isCancelledForChildren. Looking at the form that is posted to Sling when cancelling inheritance this form data is being sent: 

  1. msm:status/msm:isCancelled:
    true
  2. msm:status/msm:isCancelledForChildren:
    false

Where is this property being set/read from? How can we change that property?

When adding cq:isCancelledForChildren = true manually to the component jcr:content node and then rolling out, the changes are NOT being overwritten. But when re-enabling inheritance or cancelling this property is being removed. 

Any help with why this is happening and how we can avoid this, is greatly appreciated. 

Thanks, Alex

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

2 replies

Prince_Shivhare
Community Advisor
Community Advisor
February 2, 2017
Level 2
October 31, 2017

@Prince Shivhare, the link is broken

Level 4
June 26, 2019

Can someone provide the correct link for the above?

smacdonald2008
Level 10
November 1, 2017

So it works when you manually set the cq:isCancelledForChildren property? 

Level 4
June 20, 2019

yes @smacdonald2008, it works after manually breaking the inheritance of the parent component and then child components and then deleting the child components which sets the cq:isCancelledForChildren property, but why do we need to do this manual work? Shouldn't the canceling the inheritance from a parent should also automatically cancel the inheritance for the child nodes as well? Is this is a bug in the system or is there a reason for it?