Is the fetchxml query correct ?
i want results to be grouped on createdon column of audit entity .
when i excecute fetch xml online i get error: An attribute can not be requested when an aggregate operation has been specified and its neither groupby nor aggregate. NodeXml : <attribute name="action" />
<fetch distinct="false" no-lock="false" mapping="logical" aggregate="true">
<entity name="audit" enableprefiltering="1">
<attribute name="createdon" alias="create" groupby="true" dategrouping="day" />
<attribute name="action" />
<order attribute="createdon" descending="false" />
<filter type="and">
<condition attribute="createdon" operator="on-or-after" value="2016-01-01" />
<condition attribute="createdon" operator="on-or-before" value="2016-10-26" />
</filter>
<filter type="and">
<condition attribute='action' operator='eq' value='64'/>
</filter>
<link-entity name='systemuser' from='systemuserid' to='objectid' link-type='outer' alias='SystemUser'>
<attribute name="fullname" />
<attribute name="windowsliveid" />
<attribute name="businessunitid" />
<filter type="and">
<condition attribute="systemuserid" operator="not-null" />
<condition attribute="isdisabled" operator="eq" value="0" />
<condition attribute="fullname" operator="ne" value="Andy Liu" />
<condition attribute="fullname" operator="ne" value="Dnyaneshwar Gajle" />
<condition attribute="fullname" operator="ne" value="Vishal Mokashi" />
</filter>
<link-entity name="businessunit" from="businessunitid" to="businessunitid" link-type="outer" alias="BusinessUnit">
<attribute name="name" />
<filter type="and">
<condition attribute="bis_regionalbuisnessunit" operator="eq" uiname="BIS MIDDLE EAST & TURKEY" uitype="team" value="{2CB74967-C9D2-E411-80E7-C4346BADB5C4}" />
</filter>
</link-entity>
</link-entity>
</entity>
</fetch>
ThankYou,
Waseem.