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

Account Trigger->Decimal to Integer Illegal Assignment #326

Closed
jsh4478 opened this issue Apr 1, 2016 · 5 comments
Closed

Account Trigger->Decimal to Integer Illegal Assignment #326

jsh4478 opened this issue Apr 1, 2016 · 5 comments

Comments

@jsh4478
Copy link

jsh4478 commented Apr 1, 2016

Apex trigger dlrs_AccountTrigger caused an unexpected exception, contact your administrator: dlrs_AccountTrigger: execution of AfterUpdate caused by: System.SObjectException: Illegal assignment from Decimal to Integer: (dlrs)

Trying to rollup the NumberOfEmployees standard field between accounts using the ParentId relationship. Using the Managed Package version 2.3

Steps to reproduce:
Parent+Child Object: Account
Relationship Field: ParentId
Field to Aggregate: NumberOfEmployees
Aggregate Operation: Sum
Aggregate Result Field: NumberOfEmployees
Calculation Mode: Realtime
Calculation Sharing Mode: System

I'll be installing the unmanaged package to see if I can code around this, thanks!

@afawcett afawcett added the bug label Apr 1, 2016
@afawcett
Copy link
Collaborator

afawcett commented Apr 1, 2016

Hi @jsh4478, thanks for raising this, and thanks for taking a look, let me know if you have any questions! 👍

@afawcett
Copy link
Collaborator

@jsh4478 any news on this? Otherwise i'll take a look at it myself at some point.

@jsh4478
Copy link
Author

jsh4478 commented Jun 19, 2016

I had a quick fix in place which hard coded the type casting, but
unfortunately didn't have a chance to come up with something more dynamic
On Jun 19, 2016 5:27 AM, "Andrew Fawcett" [email protected] wrote:

@jsh4478 https://github.com/jsh4478 any news on this? Otherwise i'll
take a look at it myself at some point.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#326 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AGXS3Q12W_z7q0OqXHbPdk2G7gpKKYPNks5qNQt6gaJpZM4H9964
.

@afawcett
Copy link
Collaborator

No worries, i understand. Maybe you could share here your quick fix code fragment?

@afawcett
Copy link
Collaborator

Fixed v2.8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants