Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

FetchXml not working for some entities

(0) ShareShare
ReportReport
Posted on by

Using fetchXml the query is not working for few entities. 

We are using the following URL to get the data.

xxxxxxxx.crm.dynamics.com/.../optionsets?fetchXml=<fetch><entity name="optionset"><all-attributes/></entity></fetch>

It gives the error:

{"error":{"code":"0x80040800","message":"The 'RetrieveMultiple' method does not support entities of type 'optionset'. MessageProcessorCache returned MessageProcessor.Empty. "}}

We are using the above URL as a get query from Java program.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: FetchXml not working for some entities

    Hi DBSync,

    Yes, some of entities don't support RetrieveMultiple/Fetch XML. Here is a supported list of V9:

    docs.microsoft.com/.../microsoft.xrm.sdk.iorganizationservice.retrievemultiple

  • Suggested answer
    Bipin D365 Profile Picture
    28,961 Moderator on at
    RE: FetchXml not working for some entities

    Hi,

    Are you trying to fetch optionset integer value and Text value ?

    If Yes, then check out below docs link to know the correct query which will be used to retrieve attribute defintion.

    docs.microsoft.com/.../query-metadata-web-api

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Guido Preite Profile Picture
    54,077 Moderator on at
    RE: FetchXml not working for some entities

    the error message is clear, if you explain what you are trying to accomplish maybe there is an alternative way instead using fetchxml against that entity

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans