SaaS CMS has officially launched! Learn more now.

An exception of type ArgumentException was thrown while projecting field SortRating$$number.

Vote:
 

Hi All,

Getting ArgumentException error in Episerver Find 13.2.7 for the SortRating field.

Stack Trace:

at EPiServer.Find.ProjectionHelper.ReplaceExpressionWithConstantFromField(Dictionary`2 args, Expression expression)
at EPiServer.Find.ProjectionHelper.<>c__DisplayClass21_0.<ReplaceMemberAssignmentsWithFieldValues>b__1(Expression expression)
at EPiServer.Find.Helpers.Linq.ExpressionReplacer`1.Visit(Expression expression)
at EPiServer.Find.Helpers.Linq.ExpressionVisitor.VisitBinary(BinaryExpression b)
at EPiServer.Find.Helpers.Linq.ExpressionVisitor.Visit(Expression exp)
at EPiServer.Find.Helpers.Linq.ExpressionReplacer`1.Visit(Expression expression)
at EPiServer.Find.Helpers.Linq.ExpressionVisitor.VisitMemberAssignment(MemberAssignment assignment)
at EPiServer.Find.Helpers.Linq.ExpressionVisitor.VisitBinding(MemberBinding binding)
at EPiServer.Find.Helpers.Linq.ExpressionVisitor.VisitBindingList(ReadOnlyCollection`1 original)
at EPiServer.Find.Helpers.Linq.ExpressionVisitor.VisitMemberInit(MemberInitExpression init)
at EPiServer.Find.Helpers.Linq.ExpressionVisitor.Visit(Expression exp)
at EPiServer.Find.Helpers.Linq.ExpressionReplacer`1.Visit(Expression expression)
at EPiServer.Find.ProjectionHelper.ReplaceMemberAssignmentsWithFieldValues(Expression selector, Dictionary`2 args)
at EPiServer.Find.ProjectionHelper.GetMappedSearchResultItem[TResult](SearchRequestBody requestBody, SearchHit`1 searchHit)
at EPiServer.Find.ProjectionHelper.GetMappedResult[TResult](SearchRequestBody requestBody, SearchResults`1 jsonResult)
at EPiServer.Find.SearchExtensions.GetProjectedResult[TResult](ISearch`1 search, SearchContext context)
at EPiServer.Find.SearchExtensions.GetResult[TResult](ISearch`1 search)

Anyone who have experienced similar problem?

#227028
Aug 26, 2020 7:03
Vote:
 

Hi,

Could you show your projection query please? It seems you are using an invalid lamda expression for the Episerver Find projection.

#227046
Aug 26, 2020 13:25
Sanjay Kumar - Aug 26, 2020 13:48
Projection quey is correct it's working for other categories and product searches.
* 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.