Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when ordering using aggreate column #219

Closed
dhejov opened this issue Sep 1, 2018 · 7 comments
Closed

Crash when ordering using aggreate column #219

dhejov opened this issue Sep 1, 2018 · 7 comments

Comments

@dhejov
Copy link

dhejov commented Sep 1, 2018

Plugin crashes when running a query using ordering on an aggregated column. Sample query:

<fetch top="50" aggregate="true" >
  <entity name="opportunity" >
    <attribute name="estimatedvalue" alias="Total" aggregate="sum" />
    <order alias="Total" />
    <link-entity name="account" from="accountid" to="customerid" >
      <attribute name="name" alias="acname" groupby="true" />
    </link-entity>
  </entity>
</fetch>
@rappen
Copy link
Owner

rappen commented Sep 2, 2018

Just tried this, and it executed without problems.

image

What versions do you have:

  • CRM
  • XrmToolBox
  • FetchXML Builder

@dhejov
Copy link
Author

dhejov commented Sep 3, 2018 via email

@rappen
Copy link
Owner

rappen commented Sep 3, 2018

I just had a friend try it on a CRM 8.2.2, and it worked there too.
What kind of "crash" are you experiencing? Any error message or something?

@dhejov
Copy link
Author

dhejov commented Sep 4, 2018 via email

@rappen
Copy link
Owner

rappen commented Sep 4, 2018

Thanks - I have now identified the error, if occurs:
IF the aggregated value (est rev) is NULL
AND checkbox Friendly Names is not checked

Now you know how to get around it, and I know what needs to be fixed :)

@dhejov
Copy link
Author

dhejov commented Sep 4, 2018 via email

@rappen
Copy link
Owner

rappen commented Sep 4, 2018

Thank you @dhejov - keeping this issue open until related issue in CRMWinForm repo is closed.

@rappen rappen closed this as completed in 51d71c1 Sep 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants