Why am I getting an error in the Production during deployment when the code coverage in Sandbox is above 75%?
|Knowledge Article Number||000199415|
|Description||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%.|
|Resolution||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: