You need to sign in to do that
Don't have an account?
Claire Sunderland
De-activate trigger in production
I am trying to de-activate an apex trigger in production but it keeps failling. I have tried 2 different methods:
1. De-activating in sandbox and pushing to production
2. Using force.com IDE to delete. I am able to delete in my sandbox environment but I keep receiving an error when I try to deploy it to production.
Here is the error:
1. De-activating in sandbox and pushing to production
2. Using force.com IDE to delete. I am able to delete in my sandbox environment but I keep receiving an error when I try to deploy it to production.
Here is the error:
or First Migrate the test class
and then migrate the trigger
All Answers
or First Migrate the test class
and then migrate the trigger
make inactive the trigger first and do the deployment. do not include any test class in this deployment via chnage set or eclipes IDE.
Then do the other deployment in order to identifiy the which test class having issue while moving from sandbox to production.
Thanks
karthik
1) https://help.salesforce.com/articleView?id=000005417&type=1
Follow below step:-
1) Deactivate Trigger in sandbox
2) Remove or comment trigger related code from Test class. As trigger related Assert will fail.
3) Then deploy trigger and test class together in production.
Let us know if this will help you