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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Odata batch query not returning formatted values

(0) ShareShare
ReportReport
Posted on by
After reboot of CRM 2016 on-premise server (v8.2), OData $batch queries no longer return formatted values. The response header doesn't include the 'Preference-Applied =odata.include-annotations="OData.Community.Display.V1.FormattedValue"' line and none of the result values have the "@OData.Community.Display.V1.FormattedValue" entries. A regular GET query works just fine. Same batch query against a different CRM server works as expected. This all worked prior to the reboot. Any suggestions welcome.

*This post is locked for comments

I have the same question (0)
  • Cumulus Profile Picture
    on at

    As further detail... the OData "batch" option seems to be where the problem is.  I can take the inner FetchXml and use it as a normal GET and it correctly returns the formatted value entries and corresponding 'Preference-Applied' header.  I can change the javascript code to not use the batch option in the ajax call and it will then return the correct results.  Problem is this query could return several pages of data, so kinda need the batch option.  And this all worked just fine until a reboot.  Makes no sense to me, so hoping someone out there has a suggestion.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    If I am not wrong seems the issue is related to data.I dont think  the problem related to  system reboot considering API URL of current instance is similar after reboot.

    Could you please try to debug and check what you are getting in the result. Also share your code here.

  • Verified answer
    Cumulus Profile Picture
    on at

    Problem solved.  An older API library had gotten published that didn't correctly support the above issues reported.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

#2
GJones Profile Picture

GJones 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans