You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Expression of type 'Edm.Int32' cannot be converted to type 'Edm.Int16'."
The call stack is:
atMicrosoft.OData.Core.UriParser.Parsers.MetadataBindingUtils.ConvertToTypeIfNeeded(SingleValueNodesource,IEdmTypeReferencetargetTypeReference)
at Microsoft.OData.Core.UriParser.Parsers.FunctionCallBinder.BindSegmentParameters(ODataUriParserConfigurationconfiguration,IEdmOperationfunctionOrOpertion, ICollection`1segmentParameterTokens)
at Microsoft.OData.Core.UriParser.Parsers.ODataPathParser.TryBindingParametersAndMatchingOperation(Stringidentifier,StringparenthesisExpression,IEdmTypebindingType,ODataUriParserConfigurationconfiguration, ICollection`1&boundParameters,IEdmOperation&matchingOperation)
at Microsoft.OData.Core.UriParser.Parsers.ODataPathParser.TryCreateSegmentForOperation(ODataPathSegmentpreviousSegment,Stringidentifier,StringparenthesisExpression)
at Microsoft.OData.Core.UriParser.Parsers.ODataPathParser.CreateNextSegment(Stringtext)
at Microsoft.OData.Core.UriParser.Parsers.ODataPathParser.ParsePath(ICollection`1segments)
at Microsoft.OData.Core.UriParser.Parsers.ODataPathFactory.BindPath(ICollection`1segments,ODataUriParserConfigurationconfiguration)
at Microsoft.OData.Core.UriParser.ODataUriParser.ParsePathImplementation()
at Microsoft.OData.Core.UriParser.ODataUriParser.Initialize()
at Microsoft.OData.Core.UriParser.ODataUriParser.ParsePath()
at System.Web.OData.Routing.DefaultODataPathHandler.Parse(IEdmModelmodel,StringserviceRoot,StringodataPath,ODataUriResolverSetttingsresolverSettings,BooleanenableUriTemplateParsing)ind:\github\WebApi\OData\src\System.Web.OData\OData\Routing\DefaultODataPathHandler.cs:line 137
at System.Web.OData.Routing.DefaultODataPathHandler.Parse(IEdmModelmodel,StringserviceRoot,StringodataPath)ind:\github\WebApi\OData\src\System.Web.OData\OData\Routing\DefaultODataPathHandler.cs:line 55
at System.Web.OData.Routing.ODataPathRouteConstraint.Match(HttpRequestMessagerequest,IHttpRouteroute,StringparameterName, IDictionary`2values,HttpRouteDirectionrouteDirection)ind:\github\WebApi\OData\src\System.Web.OData\OData\Routing\ODataPathRouteConstraint.cs:line 171
I am using Web API 2.2 for OData V4. Thanks.
The text was updated successfully, but these errors were encountered:
Supposed I have a function as:
Then, I call this function as:
It fails as
"Expression of type 'Edm.Int32' cannot be converted to type 'Edm.Int16'."
The call stack is:
I am using Web API 2.2 for OData V4. Thanks.
The text was updated successfully, but these errors were encountered: