function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Aidel BruckAidel Bruck 

Why am I hitting the govern limit when deploying to production

Hi, 
I am trying to delploy a trigger. This trigger has been successfully tested in the sandbox, But when I deploy to production I hit the govern limit. 
The sandbox I am working with and the production instance both have the same triggers set up. 
How can this be happening, 
All the best, 
Aidel

SHAHNA MULLASHAHNA MULLA
Hi Aidel,
Have a look at the Apex Best Practice #7: Use of the Limits Apex Methods to Avoid Hitting Governor Limits
Here is link https://developer.salesforce.com/page/Apex_Code_Best_Practices

Check this link to get idea on Execution Governors and Limits : https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_gov_limits.htm

Hope it will help you.