+ Start a Discussion
Andy Kallio 7Andy Kallio 7 

Profile based: System.SObjectException: Illegal assignment from String to Decimal

Hi all. I'm using a lightning based app that has just started throwing 'System.SObjectException: Illegal assignment from String to Decimal' in one of its apex controllers, but only for certain profiles. That seems very strange to me and I can't find a difference between the profiles that would account for it. The reason I think the problem is related to the profile is because I have logged in as different users with different profiles and for some it works as expected and for others I get this error. 

I have already logged an issue on the app's github page, but thought I would try to see if there are any suggestions/ideas here. Thanks!
Raaye VenkateshRaaye Venkatesh
Hi Andy,

I think it might be due to some custom settings.
Andy Kallio 7Andy Kallio 7
Thanks for this idea but, there doesn't seem to be any custom settings or custom metadata for this app.