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
360LDEV360LDEV 

Tips/tools to mitigate Apex CPU time limit exceeded error

Hello awesome SF community (achieved to solve many of the issues in our org thanks to your inputs !)

Our Salesforce organization increasingly receives this error (Apex CPU time limit exceeded) at sensitive moment of processes. Notably when a new opportunity is created (many processes run at the same time). The underlying processes are mainly built using Flow Builder.

 

I wondered if someone knew tools / tips to mitigate these errors:

  • Tools that allow you to know how much CPU power each process demands
  • Is a new screen in a lightning flow can mitigate this error ? (by sequencing the running time of a too consuming process)
  • Our process fails sometimes (not always) in production but not in sandboxes while org are exactly the same. Is one of you have any idea why ?
  • Our process failed on friday but on monday it worked well while no Admin changes have been made during the week-end. Is there a limitation I am not aware of that could justify this ?

Thanks a lot for your answers !
360LDEV360LDEV
up
fsagfd gfdshgfsagfd gfdshg
I have check the script for my visual data page. I'm working on the page of etf for mitigating downside risk (https://gblo.globalbetaetf.com/) that show the stats data of different mitigating lines.