You need to sign in to do that
Don't have an account?
Terminusbot
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.
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);
Terminusbot
I removed the , and it worked. So I guess you can't have a ',' when inserting from Apex?