I'm trying to get a FetchXML Query running as a CRM View.
Using XRMToolbox FetchXML Builder I build a FetchXML query, which returns the data that I want when executed:
<fetch version="1.0" aggregate="true" count="50" ><entity name="account" ><attribute name="name" alias="name" groupby="true" /><link-entity name="account" from="qt_managingpartnerid" to="accountid" link-type="inner" visible="false" ><link-entity name="opportunity" from="customerid" to="accountid" link-type="inner" visible="true" ><attribute name="statecode" alias="statecode" groupby="true" /><attribute name="opportunityratingcode" alias="opportunityratingcode" groupby="true" /><attribute name="estimatedvalue" alias="estimatedvalue" aggregate="sum" /><attribute name="actualvalue" alias="actualvalue" aggregate="sum" /></link-entity></link-entity></entity></fetch>
I'm now trying to display this in a view, by using XRMToolbox's View Designer.
The "Live Preview" does not show anything, and when publishing it and viewing it in CRM, I get an error:
<Message>Server was unable to process request.</Message>
The LayoutXML is:
<grid name="resultset" object="1" jump="name" select="1" preview="0" icon="1" ><row name="result" id="name" ><cell name="name" width="100" /><cell name="statecode" width="100" /><cell name="opportunityratingcode" width="100" /><cell name="estimatedvalue" width="100" /><cell name="actualvalue" width="100" /></row></grid>
How do I troubleshoot this?
Thanks
Michel