I am getting this error while fetching records through FetchXml. I have checked my syntax. It is correct.
*This post is locked for comments
Thanks all. It was because closing tag was missing from linked entity's filter tag.
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?
I am getting error due to <link-entity>. If it is not present in the fetch xml , records are getting fetched properly.
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.
Please test the FetchXMl using XrmToolBox's FetchXml Tester.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,104 Most Valuable Professional
nmaenpaa 101,156