Loading

Deployment Error in production when sandbox has above 75% code coverage

Julkaisupäivä: Oct 13, 2022
Kuvaus

In the Sandbox the apex code and test classes show up with a 100% code coverage, still with the 100% coverage in Sandbox it does not mean that the Production will generate the same 100% percent during deployment. The overall code coverage of other existing components (trigger and classes) in production can be below 75%.
Ratkaisu
Please note that if the apex code and the test class have 100% code coverage and you are still unable to deploy it in production due to low code coverage. It means that the overall code coverage of other existing components (trigger and classes) in production is below 75% and the deployment will not be successful.

To avoid this:
  • Ensure that all classes/triggers have above 75% code coverage and
  • All classes should be valid. (Re compiled)

Additional resources

Knowledge-artikkelin numero

000386925

 
Ladataan
Salesforce Help | Article