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
balraj singh 33balraj singh 33 

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';
SUCHARITA MONDALSUCHARITA MONDAL

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