Ask Search:
Stephen CraneStephen Crane 

What Debug Level Do I Need?

We have ZenDesk tied to our account, as well as Marketo. We have a dedicated Marketo user that occasionally gets an error of APEX CPU time limit exceeding for various Process Builders. We have A LOT of PB's that I think can be cut down, but I'm curious what's the best Debug level to figure this out? 

Here is the error:

Error element myRule_3_A1 (FlowRecordUpdate).
The flow tried to update these records: null. This error occurred: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY: Zendesk.TrgrZendeskUserFromLead: System.LimitException: Apex CPU time limit exceeded. You can look up ExceptionCode values in the
Best Answer chosen by Stephen Crane
Raja Kumar PallepatiRaja Kumar Pallepati
Hi Stephen,
You can use the workflow category FINER level to get the flow related errors in the debug log for the user. Refer to the additional details about respective log categories and levels. 
Debug Log Levels (https://help.salesforce.com/articleView?id=code_setting_debug_log_levels.htm&type=5)

 

All Answers

Raja Kumar PallepatiRaja Kumar Pallepati
Hi Stephen,
You can use the workflow category FINER level to get the flow related errors in the debug log for the user. Refer to the additional details about respective log categories and levels. 
Debug Log Levels (https://help.salesforce.com/articleView?id=code_setting_debug_log_levels.htm&type=5)

 
This was selected as the best answer
Stephen Stanley (#NinjaFromNZ)Stephen Stanley (#NinjaFromNZ)
Hi Stephen

When you do figure out what is causing the CPU Limit exceeded, try to rebuild your processes by following the guide to Avoiging Automation Recursion linked to here (https://success.salesforce.com/0693A000007SdpE).  It's likely that the packages used to integrate Marketo and Zendesk use triggers so any changes you make to records using Process Builder may be causing automation recursion. CPU limits being exceeded are very often caused by automation recursion

You may need to convert your PB's into triggers and add a global static variable in the tirgger to detect and prevent recursion

Stephen