web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Is It True that NAV OData web service does not support $count? NAV 2013

(0) ShareShare
ReportReport
Posted on by

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>

 

*This post is locked for comments

I have the same question (0)
  • Francis Harvey Profile Picture
    30 on at

    Hi Michael,

    Did you find a way to resolve the issue?

    I'm having the same problem....

    Is there someone who knows if this is resolved in an update or in R2...??

    Thanks a lot,

    Francis Harvey

  • Suggested answer
    Roberto Stefanetti Profile Picture
    12,998 on at

    hi,

    actually is not resolved in NAV 2013 R2 (i think that is by design not supported and related to .NET Framework with ATOM integration)

    This problem exist also for CRM 2013, SharePoint 2013 and Online releases.

    Look at these posts about CRM 2013

    msdn.microsoft.com/.../gg309461.aspx

    Solutions for CRM here: use filters, fetch & sum functions to count data (workaround)

    community.dynamics.com/.../117356.aspx

    social.microsoft.com/.../odata-query-to-return-record-count

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans