Account Trigger->Decimal to Integer Illegal Assignment
jsh4478 opened this issue · 5 comments
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!
Hi @jsh4478, thanks for raising this, and thanks for taking a look, let me know if you have any questions! 👍
@jsh4478 any news on this? Otherwise i'll take a look at it myself at some point.
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" notifications@github.com 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
.
No worries, i understand. Maybe you could share here your quick fix code fragment?
Fixed v2.8.