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 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.

I have the same question (0)
  • Guido Preite Profile Picture
    54,086 Moderator on at

    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

  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    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/

  • Suggested answer
    Community Member Profile Picture
    on at

    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

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 365 | Integration, Dataverse, and general topics

#1
iampranjal Profile Picture

iampranjal 41

#2
Martin Dráb Profile Picture

Martin Dráb 36 Most Valuable Professional

#3
Satyam Prakash Profile Picture

Satyam Prakash 35

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans