Skip to main content

Questions tagged [rules-engine]

For questions related to Sitecore's Rules Engine feature, which facilitates the processing of conditions and actions in Sitecore for personalization and other features, both native and custom

Filter by
Sorted by
Tagged with
2 votes
1 answer
343 views

Powershell script to update personalization rule

I want to update the personalization rule for all the pages which have one common rendering. Is it possible to identify the rendering using Powershell and update the personalization rule to the target ...
1 vote
1 answer
543 views

Component's personalization rule applies only once

In our solution we're using custom personalization rule to show/hide components based on some criteria. This rule works fine but only for the first time the user visits the page after it's published ...
1 vote
1 answer
557 views

Multiple versions of sitecore item under the page testing are retrieved from solr index

After the creation a page test for item, which is recorded to SOLR index, in Experience Optimization and creation some page versions to test against (during the test creation), when I get items from ...
4 votes
1 answer
1k views

How can I use Sitecore Rules in Scriban templates in SXA 9.3

In SXA 9.3 we have the possibility of using Scriban Templates. I wonder if there is a possibility to use Sitecore rules engine inside of those templates. Let say that I would like to render part of ...
3 votes
1 answer
447 views

Device Detection Rules not triggering

I am using Sitecore 9.0.1 where I have created a new device (in the name of "AMP") item under layout/device in my content editor. I would be configuring Layouts/Renderings (AMP files) in my page ...
2 votes
1 answer
73 views

Issue with Personalization Rules in Upgrade Project

We are currently working on the Upgrade Project from version 9.0.2 to 10.3. During our work on personalization rules, we encountered an issue. Some items' IDs are missing on components where the ...
5 votes
0 answers
260 views

Check if boost rule has been applied to an item

I am implementing functionality to push certain items in my content tree down in search results depending on a "discontinued" checkbox field. I have created a rule item under /sitecore/system/Settings/...
1 vote
1 answer
151 views

Sitecore Rule Editor Regex syntax validation

Is there any way to validate regex pattern input on the rule editor when the string operator condition is selected as match regular expressions? We would like to avoid typos on regex input.
1 vote
3 answers
57 views

The type or namespace name 'ICondition'/'IContactSearchQueryFactory' could not be found, despite references to appropriate dlls

In this Sitecore article, there is a code sample implements ICondition and IContactSearchQueryFactory. We believe that this code will help us to add custom rules to the Sitecore List Manager. However, ...
0 votes
1 answer
55 views

How do I format the time values when performing a time personalization in Sitecore?

Am I formatting this correctly or is there a different format to use this correctly?
0 votes
1 answer
86 views

sxa custom boosting condition for dynamic value from cookie

We have a requirement where we want to boost results based on a value from a cookie/session. The items that contains the value from cookie in a Certain field should be boosted. Hence the rule should ...
1 vote
1 answer
166 views

Overlapping rules

I am trying to create two versions of our homepage for two different types of clients, based on their site tendencies. I can get the page to function as desired with either of the two client ...
2 votes
2 answers
560 views

Custom Personalization rule: hide component if url contains a regex condition

I need to create a personalised rule that hides the component if the url contains a certain pattern and I'm a bit stuck in an early phase. I have two questions: What condition should my ...
1 vote
1 answer
190 views

Validation problem with checkbox when using Rules Validation Rule

I've created an item rule using the Rules Validation Rule template. The rule ensures that there is a value provided for EITHER a specific text field OR a specific checkbox field. The rule works fine ...
0 votes
2 answers
67 views

Contains equivalent in segmentation lists

Implements rules for segmentation lists. I have a requirement that forces me to use the contains method on a string. Unfortunately, this feature is not supported. Has anyone managed to make an ...
0 votes
0 answers
65 views

Implement Sitecore Rules with Data Exchange Framework

We followed this nice article to add rules that give friendly names at the item:created event and it's working fine. https://jammykam.wordpress.com/2015/07/13/seo-friendly-urls-in-sitecore-prevention-...
1 vote
0 answers
180 views

Experience Optimization active tests aren't counting visitors

Version 9.2.0 Summary After creating a content test, the number of visitors aren't reducing on page visits nor does it seem to be selecting content based on the Percentage of visitors exposed to the ...
1 vote
1 answer
242 views

Custom Bucketing structure is never being hit

I have created a new Rule action on which to create a bucketing structure which takes in a selected date field and build the structure off of that date field. However, this rule is never hit. I have ...
1 vote
0 answers
127 views

Save Item Rule - Inserting item causes recursion

I am using the rule engine to insert a branch template under an item on Item Save. The problem is that each item in the branch subsequently triggers Item Save. Is there a way to prevent the branch ...
0 votes
1 answer
126 views

Parameter constraints while applying custom rules

I am trying to implement a custom rule in Sitecore 9.1 Thankfully it is working fine. I want to put a condition that the user is able to provide an integer value. Please advise on that.
3 votes
1 answer
564 views

Custom Personalization Rule - Geo IP Country not working [duplicate]

I Have enabled Sitecore GEOIP services to my local instance and tried personalization based on country. This not worked as I worked local environment so it returns the local IP address (127.0.0.1). ...
1 vote
0 answers
144 views

XConnect custom predicate: XdbSearchUnavailableException after call is being made

I'm trying to create a custom predicate to search a particular profile in a contact's profile using Sitecore 9.0.1. Here's the code: public class ContactProfilMatches : ICondition, ...
1 vote
1 answer
263 views

WhenCondition not executing Sitecore 9.2

Sitecore 9.2 I'm trying to create a rule and execute a script but I can't execute my code from the Script reference. My objective is to show Form B instead of Form A when the script returns true. ...
4 votes
2 answers
1k views

Is there any way to check Page mode like edit/preview using Sitecore Rule?

Is there any way to check Page mode like edit/preview/normal using Sitecore Rule? I want to render specific field in rendering variant of SXA component based on page mode (editor/preview).
1 vote
1 answer
334 views

Missing personalization rules around GeoIP

I'm trying to set up and test GeoIP personalization rules in a Sitecore 9 instance. However, when I go to personalize a page or component, the GeoIP section of the rules is missing. I've compared ...
2 votes
2 answers
412 views

Sitecore personalization based on at least two pages visited from set of pages

I am looking to specify a personalization rules in Sitecore 8.2 where at least two pages are visited from a specific set of pages on the websites for example: Content - Home - car loans (1) ...
2 votes
1 answer
749 views

Some Sitecore 8 conditions for conditional renderings seem missing in Sitecore 9

I tried to use some of the OOTB conditional rendering rules for personalization I had running in a Sitecore 8 instance, after upgrade/migrate to Sitecore 9 and ran into the fact that some of them no ...
6 votes
1 answer
142 views

Difference between current visit and contact

What's the difference between current visit and contact in the Sitecore rule engine? From the description, it sounds like Current visit is based on the current user session's interaction Current ...
3 votes
1 answer
47 views

Insert Options Rules with AND taking precedence over OR

I have a condition that is essentially A and (B or C or D or...). So for the rule to fire condition A has to always be met. And on top of that, one condition of either B or C or D etc. I can't seem ...
2 votes
2 answers
185 views

How do I assign the same Conditional Rendering Rules to Multiple Components?

How could a Content Author copy a Conditional Rendering Rule from one component, to many others? I think the best solution would be to set the Conditional Rendering Rule on the Data Template of the ...
1 vote
2 answers
65 views

upload rules from csv file

I need to create segmentation rules for showing a banner in my site based on zip. It is difficult to create rules for each zip as there might be 1000s of zip code. Is it possible to create and ...
2 votes
2 answers
457 views

How to display a field value in rendering variant only if host name matches?

I need to display a field value only in a certain domain. Iam using rendering variant with below rule enabled but not able to see the value coming even in the domain 'sc9.local'.
0 votes
1 answer
428 views

How to use geo IP rule for setting the language in Sitecore?

My requirement is to set the language for the site based on the location. I planned to use a geo IP rule. Referred to the below link but I'm not able to figure out how the geo ip rule should solve ...
1 vote
0 answers
350 views

Failed to get type of condition exception when applying personalization rule, based on QueryString

We are trying to personalize a component based on a Device Detection rule where the query string matches value. This is not working properly and below error is getting logged in Sitecore logs. Any ...
12 votes
1 answer
930 views

Automation Engine can't find custom predicate

I have create a custom predicate according to the documentation: https://doc.sitecore.net/developers/xp/segmentation/create-a-custom-predicate.html The rule has been defined in /sitecore/system/...
3 votes
1 answer
111 views

Insert Options Rule where Item contains language (NOT Item language is)

My client has 12 sites, most of which have a specific language that the entire site is in. Editors are multilingual and jump between sites, forgetting to change the language in the upper right of the ...
6 votes
1 answer
842 views

How to group multiple rules to one rule condition?

We are looking on how to consolidate a list of rules under a category or group condition. So, instead of content editor selecting multiple rules on a component, he/she selects something like "where ...
6 votes
3 answers
447 views

How many personalization rules are too many? At what point does page/site performance start to take a hit?

A client wants to do basic personalization with a rule that changes a header image based on geolocation/zip code. They would like to try and cover as many individual zip codes as possible in a region. ...
3 votes
1 answer
271 views

Conditional Rendering Rule Order

Does anyone know how to change the order of the conditional rendering rules when you try to personalize a component? I've added a custom rule that I'd like to show up at the top of the list, but it's ...
3 votes
2 answers
978 views

Rule condition with multiselect?

I'm trying to find a way to allow a user to pick from a multi-select list as part of a rule condition, but I'm not having any luck. My exact scenario is that each user on the site needs to identify ...
5 votes
1 answer
704 views

A/B testing a product landing page

I am trying to figure out if the following use cases are supported natively in Sitecore 9 or if there would be custom development (and if so, the best approach to leverage): Simplified Test Scenario - ...
1 vote
0 answers
108 views

Is there a way to only allow a site visitor to trigger a goal once?

I am diving into Sitecore rules for Goals. We have a goal with points, "Download White Paper". However I only want that goal to trigger once for a user in a current or subsequent visits. I have ...
6 votes
2 answers
897 views

List segmentation on custom rule YourLinqIsTooStrongException error

I've made a custom rule that enables the user to get a date field from any facet and see if that date's passed. I've made two variants, one for personalization and one for list segmentation/Marketing ...
1 vote
1 answer
662 views

Unit testing Sitecore custom rules

For a project I am using a bunch of custom Personalization rules, the only problem I am facing at the moment is that it takes quite a while to load the rules and I can't find any good examples of a ...
4 votes
1 answer
748 views

Sitecore personalization rule "goal was triggered during a past or current interaction" not being triggered

Here is what I did: I set Component A to show after Goal A was triggered during a past or current interaction'. Then I triggered Goal A and I was successfully identified as a contact by adding an ...
6 votes
1 answer
425 views

Contact Custom facet not appearing in ListManager

I've setup and configured a custom facet on the contact but we now want to be able to segment on the fields it contains in the ListManager but they aren't available there. What do I need to do to see ...
2 votes
2 answers
100 views

Automatic asset replacement at a fixed time

We want to schedule an automatic asset (graphic, text etc) replacement. Here is my plan that makes the purpose also clear. I want a particular image to get automatically replaced at midnight on ...
5 votes
1 answer
1k views

Custom Sitecore rule, define query for parameter item

I am creating a custom Sitecore Rule, in the rule text I need to define a parameter that allows the user to pick an Item using the Tree interface. However the tricky part is that the root needs to be ...
5 votes
0 answers
48 views

Is it possible to personalize content via Xamarin SDK or SSC using rules?

I was looking into Xamarin SDK and Creating a SSC to provide data to a Xamarin App, but I was wondering ... Is there a way to personalize data shown in Xamarin(or any Mobile App for that matter) based ...
2 votes
1 answer
729 views

Rule to set datasource based on search result

Using sitecore 8 (8.2 update 3 to be specific) I'm looking to be able to create a rule based on some condition which will set the datasource (and maybe rendering) to the most appropriate result from ...