Skip to main content
Share Your Experience: Take the 2024 Developer Survey
4 votes
Accepted

Custom facet from a contact is coming null but when creating a new one Sitecore is complaining that the facet already exists

When you retrieve a contact from xConnect, you should specify which facets should be returned with this contact by passing an array of facet keys into the ContactExpandOptions. The only facets that ...
Anna Gevel's user avatar
  • 1,953
2 votes
Accepted

One or more local models conflict with the xDB service layer. 'AssemblyFacetKeyModel, 1.0' does not have a remote version'

I think one step you have missed to deploy "Deploy custom Facet model to XDB". To Deploy the custom facet model to XDB you need to serialize the collection model in which you defined your ...
Swati Gupta's user avatar
  • 3,135
2 votes
Accepted

The specified type is not a valid facet type

Can you please confirm what model name you have passed as a parameter while creating the XdbModelBuilder? XdbModelBuilder xdbModelBuilder = new XdbModelBuilder("{modelname}", new ...
Himmat Singh Dulawat's user avatar
1 vote

How to save a custom facet and retrieve the detail for personalization

You need to call the IdentifyAs method as below once the users logs into the website, for identification of contacts. using Sitecore.Mvc.Pipelines.Request.RequestBegin; using System; using ...
ckhanna's user avatar
  • 716
1 vote

Contact Facet Data getting lost when request is moving from one CD server to another CD server

You can try by generating a machine key and applied the same to both the CD instance's web.config. Read more here: https://doc.sitecore.com/xp/en/developers/103/platform-administration-and-...
Jignesh Savaliya's user avatar
1 vote
Accepted

xDb: segmentation by one entry from the list

From what I remember, Any works fine. So if you store your specialties in List<string> or List<Guid>, you should be able to use something like: public class SpecialtyCondition : ICondition,...
Marek Musielak's user avatar
  • 23.8k
1 vote

Custom facet from a contact is coming null but when creating a new one Sitecore is complaining that the facet already exists

If your existing contact is null and you are sure that you have created this contact before then you can check with an identifier. there can be a chance that you have created the contact with a ...
Himmat Singh Dulawat's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible