cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Session.Query with Runtime error. Message: org.alfresco.repo.search.impl.querymodel.QueryModelException: 08123764 No query time mapping for property ..., it should not be allowed in predicates

cttuanit
Champ on-the-rise
Champ on-the-rise

Hi All,

I got an issue whenever my system calling query bellow in order to search document on Alfresco. I was wondering if there is anyone has the same experience and solution for this issue? 

Snippet

var result = this.Session.Query(query, filter.IsSearchAllVersions,                 
                        new OperationContext()                 
                        {                     
                           OrderBy = filter.OrderBy,                     
                           MaxItemsPerPage = filter.MaxItemsPerPage,                     
                           FilterString = filter.Filter                 
                        });

Error message:

Runtime error. Message: org.alfresco.repo.search.impl.querymodel.QueryModelException: 08123764 No query time mapping for property  ..., it should not be allowed in predicates

"StackTrace":"
at DotCMIS.Binding.WebServices.DiscoveryService.Query(String repositoryId, String statement, Nullable`1 searchAllVersions, Nullable`1 includeAllowableActions, Nullable`1 includeRelationships, String renditionFilter, Nullable`1 maxItems, Nullable`1 skipCount, IExtensionsData extension)
at DotCMIS.Client.Impl.Session.\u003c\u003ec__DisplayClass13.\u003cQuery\u003eb__12(Int64 maxNumItems, Int64 skipCount)
at DotCMIS.Client.Impl.PageFetcher`1.FetchNextPage(Int64 skipCount)
at DotCMIS.Client.Impl.AbstractEnumerator`1.GetCurrentPage()

Thanks

1 ACCEPTED ANSWER

kaynezhang
World-Class Innovator
World-Class Innovator

The query engine can not parse your query correctly ,It seems you give the wrong property name string (...), you 'd better paste out your query string.

View answer in original post

2 REPLIES 2

kaynezhang
World-Class Innovator
World-Class Innovator

The query engine can not parse your query correctly ,It seems you give the wrong property name string (...), you 'd better paste out your query string.

Thank you for your information. It was really helpful.