Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

no 'entity' node in the provided fetchxml

Posted on by 165

I am getting this error while fetching records through FetchXml. I have checked my syntax. It is correct. 

*This post is locked for comments

  • bhupendra Profile Picture
    bhupendra 165 on at
    RE: no 'entity' node in the provided fetchxml

    Thanks all. It was because closing tag was missing from linked entity's filter tag.

  • Reece Campbell Profile Picture
    Reece Campbell 215 on at
    RE: no 'entity' node in the provided fetchxml

    If you post the FetchXML it will be easier to help.

    For constructing FetchXML I often use Advanced Find to actually build the query and columns then download the FetchXML from there using the ribbon button; it avoids the manual input error. That may help?

  • bhupendra Profile Picture
    bhupendra 165 on at
    RE: no 'entity' node in the provided fetchxml

    I am getting error due to <link-entity>. If it is not present in the fetch xml , records are getting fetched properly.

  • Verified answer
    Reece Campbell Profile Picture
    Reece Campbell 215 on at
    RE: no 'entity' node in the provided fetchxml

    The most likely culprit is that you have got the case wrong. That seems to get a similar error when I test it myself. FetchXML needs to be all lowercase so the below simple query gives a similar error:

    <fetch mapping="logical" >

    <Entity name="account" >

    <attribute name="accountid" />

    <attribute name="name" />

    </Entity>

    </fetch>

    While the corrected form below works correctly:

    <fetch mapping="logical" >

    <entity name="account" >

    <attribute name="accountid" />

    <attribute name="name" />

    </entity>

    </fetch>

    If this doesn't fix it then you will need to reply with your FetchXML query to test.

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: no 'entity' node in the provided fetchxml

    Please test the FetchXMl using XrmToolBox's FetchXml Tester.

    github.com/.../XrmToolBox

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,104 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans