After fixing the configuration issues, you have to rebuild the xDB index to populate the data in your analytics dashboard.
Deploy Marketing definition
Rebuild link databases
Rebuild xDB index - Open Command line as administrator and go to the location where the xConnect Search Indexer is running and go to the IndexWorker folder. Run the ...
You have two ways to achieve this:
Option 1. Create a custom facet to store newsletter consent for the contact and save its value (true/false) on the click of Subscribe button, the same way you're doing to set email facet value. After values are stored in XDB, you can call this custom facet in experience profile code and store its value in DataTable.
If you go with the second option (real Contact instance), you can use reflection (e.g. ReflectionUtil) to set FacetMap property on the contact instance.
FacetMap is then used by Facets and GetFacet calls.
public void Test1()
var contact = new Contact();
var facetMap = new Dictionary<string, Facet>();
I also got same issue, my site is in sitecore 10.0. Previously my application was working fine but problem started as certificate got renewed.
Make sure all your three sites should have proper license.
Below given default license path details:
For Identity Server, its in \sitecoreruntime folder
For xconnect site ,its in \App_Data and subfolders of App_Data\...