We get this error whenever we try to use $count or $inlinecount.
Is this a shortcoming of NAV's implemenation of OData? If so we might be forced to use Web Services instead. See below. Is there a workaround in OData?
<code/>
<message xml:lang="en-US">An error occurred while processing this request.</message>
<innererror>
<message>
Exception has been thrown by the target of an invocation.
</message>
<type>System.Reflection.TargetInvocationException</type>
<stacktrace/>
<internalexception>
<message>
Client requests containing $count or $inlinecount are not supported by NAV OData web services.
</message>
<type>
Microsoft.Dynamics.Nav.Service.ODataServiceProvider.ODataException
</type>
<stacktrace/>
</internalexception>
</innererror>
</error>