function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
TerminusbotTerminusbot 

FATAL_ERROR System.TypeException: Invalid decimal: 3,259.00

I am getting an invalid decimal error when trying to update a field with a type of Current (16,2). 

The value of aText is 3,259.00.
When I copy that exact value in the front end it saves no problem. Not sure why this is happening. 
 
policyDetails.EstPremAmt__c = Decimal.valueOf(aText);

 
TerminusbotTerminusbot
I removed the , and it worked. So I guess you can't have a ',' when inserting from Apex?