Skip to main content

#CPU Limit0 utenti parlano di questo argomento

Hi everyone, 

I am trying to edit our Kanban Board and add a Work status to a column.  I click on Configure Board. Then click the column I want to manage. Scroll down and select the Work status I want to add to the column. Then click Save. 

After 30 seconds or more I receive a generic error: CPU Time Limit Exceeded. I have tried different times of day, and different days. Two co-workers have tried as well and have the same issue. 

I then went to our full sandbox, and after 3 attempts was finally successful on the 4th attempt. 

Salesforce support analyzed a debug log and confirmed the problem is not on the server side, it is the AA managed package causing the issue. 

 

Any thoughts on how I can save the change without receiving the error?

Agile Accelerator - Apex CPU  time limit exceeded when modifying Kanban Board

 

#AwesomeAdmins #CPU Timeouts #CPU Limit

1 risposta
  1. Khyati Mehta (InfinySkills) Forum Ambassador
    13 lug 2025, 16:08

    Hello Laura, 

     

    That CPU time limit error you're getting while updating the Kanban Board in Agile Accelerator is likely due to the managed package running too much Apex behind the scenes when saving the changes. Since it's a managed package, there's not much you can tweak directly in the code, but you can try a few workarounds. Try doing the update in an incognito window or a different browser to avoid any caching issues. Also, see if you can temporarily reduce the number of records or columns on the board — that can ease the processing load. Some users have had better luck by cloning the board and then making edits to the cloned version. If you’ve got any custom automation on Work or Status objects, try disabling it just while you make the update. And since you were successful after a few tries in the sandbox, trying again during off-peak hours might help. If all else fails, ask Salesforce to escalate it to the Agile Accelerator team — they might be able to suggest a fix or workaround.

0/9000

Hello,

 

I've a problem with CPU limit on Processbuilder when I do bulk action on 200 records (Insert, Update).

And I think Processbuilder isn't running in bulk mode (Correct me if i'm wrong).

 

So i'm planning to move to Flow. My question is Does Flow running in bulk mode?

 

I'm very happy to get answer and ideas from you guys

 

Best,

Acmatac SEING

12 commenti
0/9000

Hi,

 

I attended a recent webinar on TrailheaDX on flow best practices. In the webinar it was recommended that we create one flow per object (I'll continue referring to this as the 'master' flow) then create multiple sub-flows that are then called via that 'master' flow. 

 

That being said, this doesn't appear to be possible with record triggered flows since they cannot call sub-flows. I really like this tip and would like to implement it for my org in order to keep us from hitting governor/apex cpu limits, however, if the 'master' flow is not a record triggered flow, I do not know how to call it whenever a record is created or updated. Does anyone have any recommendations on how to achieve this?

 

Thanks in advance!

 

#Flow  #Flow Builder  #Best Practices  #Salesforce's Governor Limit  #CPU Limit  #Data Management  #AwesomeAdmins  #TDX21  #Automation

1 risposta
  1. 13 lug 2021, 21:24

    Hi Kristan, That's Great that you got to learn best practices. For sure FLOWs is a very powerful automation tool on the force.com platform. But we have to be sure that there are still many use cases that we cannot achieve through Flows. There are some drawbacks and a lot of scope of improvments and I am sure Salesforce will come up with new features. I personally have seen a lot of changes on FLOWs.  

     

    To answer your question: Before having a Trigger's feature in FLOWs we use it to invoke FLOWs through Process Builder.  This way you can still invoke multiple Flows on one object. But it will always be On-Creation or On-Edit of a record.

0/9000