You need to sign in to do that
Don't have an account?

My package version creation is failing as the test class is referring to currency 'EUR' which is not there in the org.
Package Version creation is failing is SDFX CLI.
How would I add this currency as part of the test data in test class?
My understanding is , as part of package creation salesforce creates an empty scratch org and deploy the metadata and finally run the test classes. By default only 'USD' is available in empty scratch org. The above test method is failing since "EUR" currency is not available.
Test class uses code which has
demoNewquote.CurrencyIsoCode = 'EUR';
How would I add this currency as part of the test data in test class?
My understanding is , as part of package creation salesforce creates an empty scratch org and deploy the metadata and finally run the test classes. By default only 'USD' is available in empty scratch org. The above test method is failing since "EUR" currency is not available.
Test class uses code which has
demoNewquote.CurrencyIsoCode = 'EUR';
Hi Balraj,
Can you check enabling multi currency in your org and add EUR there. Then try to test
Though I'm not sure on this but let's give a try to above approach.
Thanks,
Sucharita