0

We use Process Builder to update records. I'm getting this error for the mass update:

UPDATE --- UPDATE FAILED --- ERRORI: (CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY) ITA_IFM_Case_Trigger: System.LimitException: Apex CPU time limit exceeded

Could someone tell me the limitation of update record via Process Builder?

Adrian Larson
  • 149,971
  • 38
  • 239
  • 420
LoveLace
  • 645
  • 1
  • 15
  • 27
  • Process builder is SLOW when compared to Apex AND it does not have a CPU limit per se. It will exceed the 10 second limit and not fail and the very next thing that happens will fail due to the timeout. The only thing you can do is optimize as best you can and consider using apex instead of PB when you have a lot of packages and code that happen as part of a dml – Eric Oct 28 '16 at 00:42

1 Answers1

3

Flows built via Process Builder do indeed consume more CPU Time than Workflow Rules, which in turn consume more than Apex Triggers. If you are running into timeouts, you should move the logic to one of the more efficient options.

You can take a listen through The Dark Art Of CPU Benchmarking for some more information. See also: Should we use process builder at all? and Are Process Builder workflow rules more likely to violate CPU Time limts than a standard/old workflow rules?

Adrian Larson
  • 149,971
  • 38
  • 239
  • 420