Try our conversational search powered by Generative AI!

FindPagesWithCriteria - CompareCondition.NotEqual not allowed for strings



Using CompareCondition.NotEqual on a string property in a PropertyCriteria will result in a runtime error:
"EPiServer.Core.EPiServerException: CompareCondition.NotEqual not supported in PropertySearch for strings."

.Equal runs fine of course, but .NotEqual is apparently reserved for comparing Ints only? Why is that?
There are cases where I want to find pages where a property does not match a certain string (sort of like using the exclude operator '-' in a search engine)



Jan 05, 2012 14:10
* 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.