Unable to add or delete personalisation rules


Today I wanted to add a quick blog post about a situation we came across today. Our content editors were unable to add or delete personalisation rules. This was in the experience editor, running on sitecore XP 9.3.0.

The issue

A content editor, when trying to personalise a component in the experience editor, does the following:

  1. Adds a new personalisation rule and presses OK
  2. Component shows 2 rules
  3. Saves page
  4. Component shows 2 rules
  5. Adds a new personalisation rule and presses OK
  6. Component shows 3 rules
  7. Saves page
  8. Component shows 2 rules

So the third rule disappears after the content editor saves the page.

The only way to reset the components rules to the previous state, is to run a unicorn sync using previously saved data.

Investigating the issue

We found that the above problem only seemed to be an issue, when applying rules to the standard values of certain templates. Also, when we looked through the logs, we noticed a lot of entries referring to a test not being in a workflow state. Yet no tests were shown in the test area.

The solution

After drawing blanks at every turn, we decided to raise this with sitecore support. After a while, Yevhenii was able to confirm that this was indeed due to a known issue (reference number 457081).

 was able to reproduce the behavior you reported in my local environment on a clean instance of Sitecore XP 9.3 (Initial Release). As far as I can see, the issue is related to an automatic content testing feature. It is caused by the Content Testing component, that subscribes to “item:saved” event and clears the field.

Yevhenii Sosidko

He went on to suggest the fix, given that we were not using that feature was to switch it off! This can be done using the following patch:

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
			<setting name="ContentTesting.AutomaticContentTesting.Enabled" value="false" />

Leave a Reply

Your email address will not be published. Required fields are marked *