Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

Reporting from Dynamics 365

Posted on by Microsoft Employee

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:
  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Reporting from Dynamics 365

    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

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans