I have a unicorn configuration set up like this:
<include name="Rules" database="master" path="/sitecore/system/Settings/Rules" >
<exclude children="true">
<except name="Definitions" includeChildren="false" />
<except name="Definitions/Elements" includeChildren="false" />
<except name="Definitions/Tags" includeChildren="false" />
<except name="Definitions/Elements/Error Page" includeChildren="true" />
<except name="Definitions/Tags/Error Page" includeChildren="true" />
</exclude>
</include>
<include name="Custom Rules" database="master" path="/sitecore/system/Settings/Rules/Definitions/Elements/Custom" includeChildren="true">
<exclude path="Customer account type" />
</include>
When I run the synchronization process I get the following message:
The trees Rules and Custom Rules both contained the global path /sitecore/system/Settings/Rules/Definitions/Custom - overlapping trees are not allowed.
I am not expecting this as the first configuration should exclude all children, including the "Custom Rules" path so that it can be included in the second configuration. What is the correct way of achieving what I want to achieve?