Newer Version Available

This content describes an older version of this product. View Latest

ApexUnexpectedExcpEventLog (Beta)

Apex Unexpected Excp Event Log captures information about unexpected exceptions in Apex code execution. This object is available in API version 61.0 and later.

This object stores event data that's queryable from platform APIs. For event data stored in event log files, see EventLogFile.

Note

Supported Calls

describeSObjects(), query()

Special Access Rules

To access this object, you must have the View Event Log Object Data user permission.

This feature is a Beta Service. Customer may opt to try such Beta Service in its sole discretion. Any use of the Beta Service is subject to the applicable Beta Services Terms provided at Agreements and Terms.

Note

Fields

Field Details
ExceptionCategory
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The category of the unexpected Apex exception. For example, the LimitException exception type is split into subcategories that indicate if you exceeded a limit, such as the total heap size or CPU time. Possible values:
  • Subcategories of LimitException that indicate the Apex limit you’ve exceeded. Examples:
  • LimitException: CpuTime: Maximum CPU time on the Salesforce servers.
  • LimitException: HeapSize: Total heap size
  • LimitException: Queries: Total number of SOQL queries issued.
  • LimitException: QueryRows: Total number of records retrieved by SOQL queries.
  • LimitException: DmlStatements: Total number of DML statements issued.
  • LimitException: Callouts: Total number of callouts (HTTP requests or web services calls) in a transaction.
ExceptionMessage
Type
string
Properties
Filter, Nillable, Sort
Description
The exception message for a SOAP API request. An exception message gives details about errors in handling an API request, such as why an API request failed. For example: common.exception.ApiException: startDate cannot be more than 30 days ago.
ExceptionType
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The class type of the unexpected exception. For example: System.MathException
RequestIdentifier
Type
string
Properties
Filter, Group, Nillable, Sort
Description
The unique ID of a single transaction. A transaction can contain one or more events. Each event in a given transaction has the same RequestIdentifier. For example: 3nWgxWbDKWWDIk0FKfF5DV.
StackTrace
Type
string
Properties
Filter, Nillable, Sort
Description
The stack trace for the exception. For example: Class.OpportunityUtility.insert: line 22, column 1 AnonymousBlock: line 1, column 1
Timestamp
Type
dateTime
Properties
Filter, Nillable, Sort
Description
The access time of Salesforce services in GMT. For example, 2020-01-20T19:12:26.965Z. Milliseconds are the most granular setting.