You're defining the DefinitionFieldLabelResolver as an NotConfiguredDefinitionFieldLabelResolver, which will throw an InvalidOperationException for each method that it implements It should be enough to change the type from NotConfiguredDefinitionFieldLabelResolver to EmptyDefinitionFieldLabelResolver. This class can be found in the Sitecore.Xdb....


You can use Sitecore.Analytics.Data.ProfileUtil to retrieve the tracking field and profile data. Example to retrieve the first profile set on the item: var profiles = ProfileUtil.GetProfiles(item, out var trackingField); return profiles?.FirstOrDefault()?.Name;

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