Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Best bets in EPiServer Find with Commerce

Vote:
 

Hi,

When using the EPiServer Find interface (/Find/#manage/optimization/bestbets) to setup a "Best Bet" that links to a commerce variant page, EPiServer Find fails with the following error:

Unable to load /epiui/edit/Find/api/bestbets/ status: 500

The POST is to Find has the following:

{"Message":"An error has occurred.","ExceptionMessage":"Sequence contains no matching element","ExceptionType":"System.InvalidOperationException","StackTrace":"   at System.Linq.Enumerable.Single[TSource](IEnumerable`1 source, Func`2 predicate)\r\n   at EPiServer.Find.UI.BestBetManager.GetBestBetSelector(String targetKey, String targetTypeName, String language)\r\n   at EPiServer.Find.UI.BestBetManager.Create(String id, BestBetModel model)\r\n   at EPiServer.Find.UI.Controllers.BestBetsController.Put(String id, BestBetModel input)"}

The "Best Bets" interace screen works when linking to an external or a EPiServer CMS page.

Thanks

#119916
Apr 07, 2015 14:52
Vote:
 

Hey Danie

What version of Commerce/Find are you using? This was added as a capability in Find 9.0 so want to make sure you are fully up to date.

It may also be worth dropping your old index and creating a new one.

David

#120001
Apr 08, 2015 19:07
Vote:
 

Hi David,

thanks for your reply.  I've created a new index, but get the same error. Our Commerce version is 8.9.0 and Find is 9.0.0.2183

Thanks,

Danie

#120040
Edited, Apr 09, 2015 10:12
Vote:
 

Old thread, but for completeness, you need to install the EPiServer.Find.Commerce package in order to save best bets targeting Commerce content.

#140995
Nov 05, 2015 23:52
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.