bestbets Not working.

AP
AP
Vote:
 

Hi,

I am working with EPiserver 11.

While applying bestbets to website, I am getting error. please find error details below.

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

"{"Message":"An error has occurred.","ExceptionMessage":"PageReference: Input string was not in a correct format.","ExceptionType":"EPiServer.Core.EPiServerException","StackTrace":" at EPiServer.Core.PageReference.Parse(String s)\r\n at EPiServer.Find.Cms.PageBestBetSelector.Parse(String input, String language)\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)"}"

Thank you,

Amol

#196931
Sep 17, 2018 15:35
Vote:
 

Is this on the front end or in the CMS? Can you paste your code?

#196933
Sep 17, 2018 17:03
AP
Vote:
 

It is in edit mode.

Its functionality of find to apply best bets from Find console which is throwing an error.

Thanks

#196937
Sep 18, 2018 8:30
Vote:
 

Do you have any custom JSON formatters initialized in you code? Can you remove that and try again?

Aniket

#196964
Sep 18, 2018 14:19
Vote:
 
#196990
Edited, Sep 19, 2018 9:47
Vote:
 

I have a really similar error trying to add a best bet through the UI of Episerver Find (13.0.1) in Episerver CMS 11.9: 

Message":"An error has occurred.","ExceptionMessage":"Property BestBetSelector has unknown type EPiServer.Find.Cms.PageBestBetSelector, EPiServer.Find.Cms, Version=1.0.0.314, Culture=neutral, PublicKeyToken=null","ExceptionType":"System.TypeLoadException","StackTrace":" bij EPiServer.Data.Dynamic.Providers.Internal.DbDataStoreProvider.LoadReferencesAndCollections(ProviderCallContext ctx)\r\n bij EPiServer.Data.Dynamic.Providers.Internal.DbDataStoreProvider.LoadObject(ProviderCallContext context)\r\n bij EPiServer.Data.Dynamic.Providers.Internal.DbDataStoreProvider.<>c__DisplayClass37_0.<Load>b__0()\r\n bij EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.<>c__DisplayClass31_0`1.<Execute>b__0()\r\n bij EPiServer.Data.Providers.SqlTransientErrorsRetryPolicy.Execute[TResult](Func`1 method)\r\n bij EPiServer.Data.Providers.Internal.SqlDatabaseExecutor.Execute[TResult](Func`1 action)\r\n bij EPiServer.Data.Dynamic.Providers.Internal.DbDataStoreProvider.Load(ProviderCallContext context)\r\n bij EPiServer.Data.Dynamic.DynamicDataStore.InternalLoad(Identity id, Type type, LoadAsObjectType loadAs, ProviderCallContext parentContext)\r\n bij EPiServer.Data.Dynamic.Internal.EPiServerDynamicDataStore.Load[TResult](Identity id)\r\n bij EPiServer.Data.Dynamic.Internal.DynamicDataCollection`1.DynamicDataCollectionEnumerator.get_Current()\r\n bij System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()\r\n bij System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate)\r\n bij EPiServer.Find.UI.Controllers.BestBetValidator.Validate(BestBet bestBet)\r\n bij EPiServer.Find.UI.BestBetManager.Create(String id, BestBetModel model)\r\n bij EPiServer.Find.UI.Controllers.BestBetsController.Put(String id, BestBetModel input)

 

#197836
Oct 15, 2018 15:17