Skip to main content

Posts

Showing posts from 2023

When running Anonymous apex, Seeing the error "This org has reached its daily usage limit of apex log headers"

All API calls that invoke Apex,  support a debug facility that allows access to detailed information about the execution of the code. We use the Categories and Level fields of DebuggingHeader of the request to see the logging granularities. Sample DebuggingHeader   <urn:DebuggingHeader> <!--Zero or more repetitions:--> <urn:categories> <urn:category>Apex_code</urn:category> <urn:level>FINEST</urn:level>  </urn:categories> <urn:categories> <urn:category>Apex_profiling</urn:category> <urn:level>FINER</urn:level> </urn:categories> </urn:DebuggingHeader> The debugLog field of DebuggingInfo response header contains the debug logs based on the log level set in the request. The error " This org has reached its daily usage limit of apex log headers " occurs when you run too many API calls that request the Debugging information for the execution of code.  Salesforce limits the numb