Why am I getting a "Duplicate 'rule'..." error when trying to publish and how do I fix it?
If you are trying to publish a change to your settings, but you're encountering an error:
"Duplicate 'rule' property provided for store type(s): scripts" or
"Duplicate 'rule' property provided for store type(s): cookies"
This indicates that you have a duplicate rule within either your scripts or cookies section. In order to remove the error and publish, the duplicitous rule must be removed.
Steps to Solve:
Check the Managed Scripts or Cookies Tab
-
- Depending on which section is called out in the error above, go to the Scripts or Cookies tab in your Osano platform.
- Use the purple drop-down menu on the left to switch to the Managed section.
- If there are duplicate rules in this section, a banner will appear across the top, notifying you of the duplicates.
-
- There will be a Delete button at the end of the banner.
- Click the button to delete the duplicate rules, allowing you to publish.
If you do NOT see the red banner above, the duplicate rule is likely in the "ignored" section.
-
- In the purple drop-down menu on the left, switch to the Ignored section and use the Filter icon to filter out unpublished rules.
- Make a note of any duplicate unpublished rules.
- Return to the Managed section and search for the same scripts there.
- Delete the duplicate rule from either the Managed section or the Ignored section, whichever applies.
Additional Tips:
If you cannot identify the duplicate and there is no banner notification, it's possible that a script or cookie was previously Ignored but also remains in the Managed section. The platform currently does not provide a way to identify such duplicates, so you may need to compare unpublished scripts across managed and ignored manually.
If this still doesn't resolve your issue, feel free to reach out to our support team for further assistance.
Related to