Disable trigger in production. What are the consequences?
The consequences can be anything depending upon the business logic written in the trigger. For example -
- if a business logic is supposed to update fields, the updates will fail
- If the business logic is supposed to call a different system and get the data in Salesforce, it would fail.
- If business logic is supposed to send email, it might fail.
Bottomline : Any business logic written inside the trigger will not execute. The best practice would be to analyze the underlying logic and find out the impact. Infact disable the trigger in sandbox first to understand the impact.
I talked to salesforce Support the support wrote:
During work hours, large no of users try to access the data, if you will disable the trigger and trigger were related of any of the events then the functionality stop working in production. Functionality like update the field, send an email, create a new record etc. which are executed by this trigger, all those functionalities is not working in production.
If any batch will be scheduled for a specific time for insert/update/delete functionality and if the trigger was related any of the functionality, stop working in production and might be its cause the error.
After disabling the trigger your functionality like, update the field, send an email, create a new record etc will not work. So might be It's affected your scheduled reports.
If the trigger is calling from another trigger handler class so after disabling the trigger its cause the error in a production environment.
Consideration:
- Please check the functionality of trigger.
- Please check the batch jobs which is related this trigger also please check all the dependencies of the trigger.
- Please try to perform this functionality during off-hours because no of users is less and the probability of hitting any issues would be less.
- Please create a debug logs after disabling the trigger, so you can easily find the error if its occurs.