+ Start a Discussion
NickDevNickDev 

Trigger 100% coverage but 0% when deployed to production?

I am trying to deploy a Trigger and also an Apex class which the trigger is using.

In Sandbox, I wrote a test case which gives the Apex Class 85% coverage and the Trigger says it has 100% code coverage.

I put these both in an outbound change set and push to production.

On production I validate it and then it fails on code coverage and says my trigger has 0% coverage?

Thanks
sailee handesailee hande
Hi Nick Rawlins,

Many times this happens. Try to deploy it again and then check.

Thanks,
Sailee.
lalitaroralalitarora
Test class shows 100% coverage in sandbox but failed on production (https://developer.salesforce.com/forums/?id=906F00000008zEDIAY) Discussion might help you getting this resolved..