Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Issue: A binary operator with incompatible types was detected... [420]

$
0
0
Hi,

I have a MVC 4 with WebApi Project and the nighlies of the WebApi.oData package.
And I have a Queryable WebApi action where I want to query a GUID "column" (property) with something like this:

$filter=ReportModule_Id eq '[my GUID]'

but I got this error message:

"Message":"The query specified in the URI is not valid.","ExceptionMessage":"A binary operator with incompatible types was detected. Found operand types 'Edm.Guid' and 'Edm.String' for operator kind 'Equal'.","ExceptionType":"Microsoft.Data.OData.ODataException","StackTrace":" bei Microsoft.Data.OData.Query.MetadataBinder.BindBinaryOperator(BinaryOperatorQueryToken binaryOperatorToken)\r\n bei Microsoft.Data.OData.Query.MetadataBinder.Bind(QueryToken token)\r\n bei Microsoft.Data.OData.Query.MetadataBinder.ProcessFilter(QueryNode query, QueryToken filter)\r\n bei Microsoft.Data.OData.Query.MetadataBinder.BindTree(SyntacticTree syntax)\r\n bei Microsoft.Data.OData.Query.MetadataBinder.BindQuery(SyntacticTree syntax)\r\n bei Microsoft.Data.OData.Query.SemanticTree.ParseUri(Uri queryUri, Uri serviceBaseUri, IEdmModel model, Int32 maxDepth)\r\n bei Microsoft.Data.OData.Query.SemanticTree.ParseUri(Uri queryUri, Uri serviceBaseUri, IEdmModel model)\r\n bei System.Web.Http.OData.Query.FilterQueryOption.get_QueryNode()\r\n bei System.Web.Http.OData.Query.FilterQueryOption.ApplyTo(IQueryable query, ODataQuerySettings querySettings, IAssembliesResolver assembliesResolver)\r\n bei System.Web.Http.OData.Query.ODataQueryOptions.ApplyTo(IQueryable query, ODataQuerySettings querySettings)\r\n bei System.Web.Http.QueryableAttribute.OnActionExecuted(HttpActionExecutedContext actionExecutedContext)"


How can I solve this?
Best regards

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>