I am building an after save flow on Account. We have 2 checkbox fields on Account and 1 Number field :-

  • Field 1 (checkbox)
  • Field 2 (Checkbox)
  • Acc Number (Text)

Logic - If we set Field 1 to TRUE for Account1 then find Accounts with same Acc Number of Account1 and set Field 2 to TRUE for all those Accounts.

Now Flow is working fine when we have around 130 accounts with same Acc Number. But for a specific Acc Number we have 170 Accounts and getting CPU Time limit error while processing those Accounts.

enter image description here

  • 1
    Can you successfully update the 170 accounts via data loader? If yes, can you share a screenshot of your flow? Is the flow doing any DML within a loop? Flow is not as efficient as apex but it's pretty good so you may have other processes or code that is causing the issue.
    – gorav
    Jun 4, 2021 at 11:42
  • 2
    Note that updating the related Accounts will initiate triggers and after save flows on those Accounts too.
    – cropredy
    Jun 4, 2021 at 23:23
  • @gorav Yes I am able tp update those 170 records directly from Execute Anonymous window in dev console. I attached the screen shot of my flow where I am adding all records in a collection variable only and then doing the update at then very end outside the loop. Jun 7, 2021 at 7:44


You must log in to answer this question.

Browse other questions tagged .