Query.apex icon indicating copy to clipboard operation
Query.apex copied to clipboard

Test code fails when using scratch org with Enterprise edition

Open HenryRLee opened this issue 4 years ago • 0 comments

The root cause is that the default System Administrator profile under an Enterprise edition scratch org have missed some field level security on the account and opportunity object. These fields include:

Account.Sic
Account.Site
Account.AccountNumber
Account.Rating
Opportunity.TotalOpportunityQuantity

To fix it, we should avoid using these fields in the test code.

Temporary workaround: avoid using the Enterprise edition scratch org.

HenryRLee avatar Mar 11 '20 04:03 HenryRLee