Error searching Find


I'm having errors searching my Find database in my EPiServer 7.5 solution.

I have indexed the website and I've seen that there's data in it.

I have a pagetype that I call StandardPage, but when I do my search I get this error in return:

Property 'PageCategory' does not exist, can only assign values to existing properties


What am I missing?

Dec 11, 2013 16:30


Is this some property that you have added or removed from your page and not reindexed between changes in code?


Dec 12, 2013 12:35


Can you post the query that you isseue to search for the StandardPage?


Dec 12, 2013 13:14

I tried a new search query method that I found on a blog.

This is my code:

IClient client = Client.CreateFromConfig();

var search = client.Search<Models.Pages.Standard.StandardPage>().For(query).GetResult();

If I search for "Services" in Find (Admin UI) I get 1 document in return.

But when I try to implement this in my webppage I get this in return:

Cannot deserialize the current JSON object (e.g. {"name":"value"}) into type 'EPiServer.Core.XhtmlString' because the type requires a JSON string value to deserialize correctly.
To fix this error either change the JSON to a JSON string value or change the deserialized type so that it is a normal .NET type (e.g. not a primitive type like integer, not a collection type like an array or List<T>) that can be deserialized from a JSON object. JsonObjectAttribute can also be added to the type to force it to deserialize from a JSON object.
Path 'hits.hits[0]._source.PageBody.IsEmpty$$bool', line 1, position 557.

Do I have to set any attribute in my StandardPage class for each properties to link the proporty names? If so, any example for this?

Edited, Dec 12, 2013 17:06

Use SearchClient.Instance instead of Client.CreateFromConfig(), and use .GetContentResult() instead of .GetResult(). This is when searching for EPiServer content. See

Dec 13, 2013 7:46

I am getting the same error Property 'PageCategory' does not exist, can only assign values to existing properties after i upgraded EpiFind from 7 to 8? Has anybody found a solution?

Jul 23, 2015 11:49
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.