Thursday, May 21, 2015

Sitecore content search Invalid Method Call Argument Type

I came across the following error when trying to use regex to match search results in the Sitecore search context.
Invalid Method Call Argument Type: Field - FieldNode - Field: content - System.String. Only constant arguments is supported.
This is due to the fact that when using LINQ with Sitecore content search will only accept constant expressions rather than lamda expressions.

No comments:

Post a Comment