November Happy Hour will be moved to Thursday December 5th.

EpiServer Find & EpiServer Content Delivery API conflict

Vote:
 

I am working on a problem that I am having with EpiServer Find and EpiServer Content Delivery API. The 2 products seem to be in some way conflicted with each other. For reference, I am using Find version 13.2.2 and Content Delivery API version 2.6.1. I was able to install Content Delivery API successfully but for some reason one of my find instances is returing this error when trying to do Find.SearchExtensions.GetResult().

Newtonsoft.Json.JsonSerializationException: Error setting value in extension data for type 'EPiServer.ContentApi.Core.Serialization.Models.ContentApiModel'. Path 'hits.hits[0]._source.ContentApiModel.category', line 1, position 26568. ---> System.ArgumentException: An item with the same key has already been added.

Does anyone have any suggestions about how to resolve this error?

#284464
Jul 26, 2022 18:35
Vote:
 

Hi Stewart,

Do you have any extension methods in play on any of your CatalogContent objects?

#284735
Aug 01, 2022 8:11
Vote:
 

We did not. This issue was solved by removing Content Search API v 2.6.0 from the installation.

#284975
Aug 05, 2022 13:32
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.