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
52 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 ...
Avinash Sharma's user avatar
1 vote
1 answer
113 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.
rkrathna's user avatar
1 vote
3 answers
44 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, ...
James G.'s user avatar
  • 135
0 votes
1 answer
52 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?
Carlos Rodriguez's user avatar
0 votes
1 answer
76 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 ...
Christopher Raja's user avatar
2 votes
2 answers
466 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 ...
iusmar's user avatar
  • 239
1 vote
1 answer
148 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 ...
Matt Eno's user avatar
  • 373
0 votes
2 answers
66 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 ...
Jan Nowak's user avatar
  • 311
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-...
Mohsen Hassan's user avatar
1 vote
0 answers
148 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 ...
Azz's user avatar
  • 11
1 vote
1 answer
228 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 ...
Danny's user avatar
  • 147
1 vote
0 answers
121 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 ...
Ethan Schofer's user avatar
0 votes
1 answer
121 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.
NutsAndBolts's user avatar
  • 1,310
1 vote
1 answer
516 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 ...
konw's user avatar
  • 11
1 vote
0 answers
140 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, ...
hsim's user avatar
  • 111
3 votes
1 answer
526 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). ...
Rajasekar's user avatar
  • 692
4 votes
2 answers
899 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).
Sushil Pal's user avatar
1 vote
1 answer
237 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. ...
gonzdn's user avatar
  • 111
1 vote
1 answer
310 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 ...
Evan's user avatar
  • 367
2 votes
2 answers
395 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) ...
Arun Kumar's user avatar
1 vote
1 answer
146 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 ...
Travis's user avatar
  • 11
2 votes
1 answer
410 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 ...
Adithya K.'s user avatar
6 votes
1 answer
133 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 ...
Fredric Foo's user avatar
  • 1,000
3 votes
1 answer
45 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 ...
asontu's user avatar
  • 181
2 votes
2 answers
179 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 ...
Christopher W's user avatar
1 vote
1 answer
448 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 ...
bavad's user avatar
  • 11
1 vote
2 answers
63 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 ...
pradeep biswal's user avatar
2 votes
2 answers
448 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'.
Manideep Yechuri's user avatar
0 votes
1 answer
404 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 ...
sindu's user avatar
  • 629
3 votes
1 answer
102 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 ...
asontu's user avatar
  • 181
12 votes
1 answer
904 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/...
TheHvidsten's user avatar
6 votes
1 answer
809 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 ...
Mohit's user avatar
  • 361
6 votes
3 answers
406 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. ...
Jim P.'s user avatar
  • 61
2 votes
1 answer
742 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 ...
Joost's user avatar
  • 505
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/...
Matthew Dresser's user avatar
3 votes
1 answer
258 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 ...
jtresidder's user avatar
3 votes
2 answers
913 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 ...
jtresidder's user avatar
5 votes
1 answer
700 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 - ...
Chris Brady's user avatar
1 vote
0 answers
106 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 ...
Daryl's user avatar
  • 67
6 votes
2 answers
878 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 ...
Mark-Danney's user avatar
1 vote
0 answers
341 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 ...
Manohara Prasad's user avatar
1 vote
1 answer
650 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 ...
Coen van Campenhout's user avatar
4 votes
1 answer
721 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 ...
Shu Jackson's user avatar
6 votes
1 answer
422 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 ...
Steve Ward's user avatar
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 ...
Arun Agrawal's user avatar
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 ...
Michael Edwards's user avatar
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 ...
Anderson Cardozo's user avatar
2 votes
1 answer
705 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 ...
Ian's user avatar
  • 1,072
5 votes
1 answer
2k views

Sitecore validation rule at field level in multi-list value selection range

I came across this multi-list field restrictions to limit range(selection) using regex. I got few references to add basic validations. Both work fine. Ref1: ^({[^}]+}\|?){0,5}$ http://www.benramey....
Siva Sankar's user avatar
3 votes
1 answer
166 views

Personalization Rules Chaining

I need to use sitecore rules to personalize the contents that I want to display to users. For example, I configured two basic rules on a component. When used separately, both rules evaluate to true. ...
adarsh's user avatar
  • 818