Loading

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

게시 일자: Oct 13, 2022
상세 설명

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%.
솔루션
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 기사 번호

000386925

 
로드 중
Salesforce Help | Article