Apex CPU Time Limit Exceeded after Salesforce Summer ’22 Release

Apex CPU Time Limit Exceeded after Salesforce Summer ’22 Release

Accurately Measure the CPU Time Consumption of Flows and Processes (Update) was introduced in Salesforce Spring ’21 Release. 

As per Spring ’21 Release, it is enforced in the Summer ’22 release.

Reference Article:

https://help.salesforce.com/s/articleView?id=release-notes.rn_forcecom_flow_release_updates_cpu_time.htm&type=5&release=230

How to fix this?

1. Generate Debug Logs.

2. Use VS Code to analyse the Debug Logs:

3. Find where the APEX CPU Time is spent.

4. Optimise the implementation. If the time is spent on recursion, understand the order of executions and avoid the recursion.

Leave a Reply