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"

Understanding DebuggingHeader in Salesforce API Call When you invoke Apex through API calls, Salesforce offers a debugging facility that provides detailed insight into code execution. This is enabled via the  DebuggingHeader  element in your API request. Using the categories and level fields within DebuggingHeader , you can control the granularity of debug logs you receive. 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. Common Issue: Daily Debug Log Header Limit The error " ...