You need to sign in to do that
Don't have an account?
Spoorthy
Apex CPU time limit exceeded is happening only in few records
I am encountering this error only in few cases/records and rest all are working fine and sometimes after few hours the request is going through with out any issue . Do you think that this can happen because of salesforce server is too busy? or we have too many transactions going on in our org simultaneously? what could be the best resolution?
Apex CPU time limit exceeds error comes into picture when any transaction is executing for more than one minute (60 minutes) synchronously. In order to resolve the error, you can do one of the following things.
1 - Avoid using For loop inside Foor loop with the help of Collection(Map, List, Set)
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_invoking_future_methods.htm
Also, visit the given link.
https://developer.salesforce.com/forums/?id=906F00000009FAOIA2
let me know if this resolves your issue :)
Thanks,
Amit Singh.