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
sandeep@Salesforcesandeep@Salesforce 

Invalid (isoCode of currency data should never be null. '000' for single currency org)

I have a validation where I am comparing a rollup summary field ( sum of currency type field) with 0.00 but I am getting following error while evaluating validation rule on inserting record.
Carolina Ruiz MedinaCarolina Ruiz Medina
Hi Sandeep,

As you said it is strange to get that kind of error in a single currency org. 
What I'm thinking that maybe the exception that you are getting : << isoCode of currency data should never be null. >> 
Could it be possible that is any other validation around that object?
The errors that we usually get are :  INVALID_CURRENCY_ISO The specified currency ISO code is not valid..

Not quite sure .. but an idea.

Kind Regards,
Carolina.


APN09217013342392059APN09217013342392059
CurrencyISOCode field is not available if the org doesn't have multicurrency enabled.
When you enable multicurrency, all the existing records are stamped with default currency that you decide.

Does your org have multicurrency enabled ?
Carolina Ruiz MedinaCarolina Ruiz Medina
Hi , 
Totally true what APN said, then might be the development is comming from a multicurrency org to a single? 

Maybe you know already, sorry if so,  ... In order to check - multi or single , only going to company information .

Priyanka PundirPriyanka Pundir
Hi, Was this issue resolved? I am getting the same error. Please suggest
Steve UsmanovSteve Usmanov
looks like it is a known issue
https://success.salesforce.com/issues_view?id=a1p3A0000001CibQAE
Pushpam SharanPushpam Sharan
This is still an issue.

As a workaround we can try two things here:

1. Add the Currency field to the page layout/custom screen.

 2. Write a Before Trigger(Insert/Update) validation that throws an error message whenever the Currency is null.
  
The 2nd point will ensure if a user selects the "--None--" value from the picklist values they will be presented with 
a user friendly validation error to enter currency, instead of the ISO error with validation rule name.