---
schema_version: "1"
id: 56ddaace3d35d12b3d20edecf5d248f321fd478e78299bb71f74457608e3df2d
title: ApexUnexpectedExcpEventLog
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_apexunexpectedexcpeventlog.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_apexunexpectedexcpeventlog.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a8a2cc499301011f3454d18b5f99db5199560007ea6f852a38b6669020772717
description: 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.
---
# ApexUnexpectedExcpEventLog

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.

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

This object stores event data that's queryable from platform APIs. For event data stored in event log files, see [EventLogFile](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_eventlogfile.htm).

## Supported Calls

describeSObjects(), query()

## Special Access Rules

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

## Fields

| Field | Details |
| --- | --- |
| ApexEntityName | 
Type

string

Properties

Filter, Group, Nillable, Sort



 |
| 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.



 |
| UserId | 

Type

reference

Properties

Nillable

Description

The origin user’s unique ID. For example, 005000000000123.

A polymorphic relationship field.

Relationship Name

User

Relationship Type

Lookup

Refers To

User



 |