web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Customer Service forum

Reporting from Dynamics 365

(0) ShareShare
ReportReport
Posted on by

Hi, i'm working in a report from incidents. It's Dynamics 365 Online. I'm using Visual studio 2012 with reporting services and CRM 2016 BIDS extension. My problem is when i add "aggregate" to fetch xml and i'ts sends me te current error:

Unable to cast object of type 'Microsoft.Crm.Reporting.DataExtension.Client.Fetch.FetchProxy' to type 'Microsoft.Crm.Sandbox.SandboxFetchProxy'.

This is my fetch:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" aggregate="true">
  <entity name="incident">
    <attribute name="ownerid" />
    <attribute name="statuscode" />
    <attribute name="add_fechadeentrega" />
    <attribute name="add_fechainstaladaenqa" />
    <attribute name="incidentid" aggregate="count" alias="hola"/>
    <attribute name="modifiedon" />
    <filter type="and">
      <condition attribute="statecode" operator="eq" value="1" />
      <condition attribute="ownerid" operator="eq" uiname="Nicolás Olivares" uitype="systemuser" value="{F7F57BEF-F4C8-E511-8117-2C59E5413A44}" />
      <condition attribute="modifiedon" operator="on-or-after" value="2017-03-01" />
      <condition attribute="modifiedon" operator="on-or-before" value="2017-03-09" />
    </filter>
  </entity>
</fetch>

Thanks, regards.

Categories:
I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    Please try by applying groupby condition over other attributes.

    You can add the extra condition groupby = "true" over the other attributes.

    Hope this helps

    Thanks

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Customer Service

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans