ConcurLongRunApexErrEvent

Notifies subscribers of errors that occur when a Salesforce org exceeds the concurrent long-running Apex limit. If a high volume of these events occur concurrently in an org, we may rate limit the events based on resource availability. Event log files, which are the predecessor of Real-time Event Monitoring, provide a list of Apex-related events. For more information, see Apex-related EventLogFile events. This object is available in API version 49.0 and later.

Supported Calls

describeSObjects()

Supported Subscribers

Subscriber Supported?
Apex Triggers
Flows
Processes
Pub/Sub API Yes
Streaming API (CometD) Yes

Subscription Channel

/event/ConcurLongRunApexErrEvent

Event Delivery Allocation Enforced

No

Fields

Field Details
CurrentValue
Type
int
Properties
Nillable
Description
The current count of concurrent long-running Apex requests in the org.
EventDate
Type
dateTime
Properties
Nillable
Description
The time when the Apex request failed to start and generated the error. For example, 2020-01-20T19:12:26.965Z. Milliseconds are the most granular setting.
EventIdentifier
Type
string
Properties
Nillable
Description
The unique ID of the event, which is shared with the corresponding storage object, if any. For example, 0a4779b0-0da1-4619-a373-0a36991dff90.
EventUuid
Type
string
Properties
Nillable
Description
A universally unique identifier (UUID) that identifies a platform event message. This field is available in API version 52.0 and later.
LimitValue
Type
int
Properties
Nillable
Description
The limit value that was exceeded.
LoginKey
Type
string
Properties
Nillable
Description
The string that ties together all events in a given user’s login session. The session starts with a login event and ends with either a logout event or the user session expiring.
Quiddity
Type
string
Properties
Nillable
Description
The type of outer execution associated with this event.
Example
  • A–QueryLocator Batch Apex (Batch Apex jobs run faster when the start method returns a QueryLocator object that doesn't include related records via a subquery. See Best Practices in Using Batch Apex.)
  • B– Bulk API and Bulk API 2.0
  • BA–Batch Apex (for debugger)
  • C–Scheduled Apex
  • E–Inbound Email Service
  • F–Future
  • H–Apex REST
  • I–Invocable Action
  • K–Quick Action
  • L–Lightning
  • M–Remote Action
  • Q–Queuable
  • R–Synchronous uncategorized (default value for transactions not specified elsewhere)
  • S–Serial Batch Apex
  • TA–Tests Async
  • TD–Tests Deployment
  • TS–Tests Synchronous
  • V–Visualforce
  • W–SOAP Webservices
  • X–Execute Anonymous
ReplayId
Type
string
Properties
Nillable
Description
Represents an ID value that is populated by the system and refers to the position of the event in the event stream. Replay ID values aren’t guaranteed to be contiguous for consecutive events. A subscriber can store a replay ID value and use it on resubscription to retrieve missed events that are within the retention window.
RequestId
Type
string
Properties
Nillable
Description
The unique ID of the Apex request that fired the event.
RequestUri
Type
string
Properties
Nillable
Description
The URI of the Apex request that failed to start and generated the error.
Example
/apex/ApexClassName
SessionKey
Type
string
Properties
Nillable
Description
The user’s unique session ID. You can use this value to identify all user events within a session. When a user logs out and logs in again, a new session is started.
SessionLevel
Type
picklist
Properties
Nillable, Restricted picklist
Description
Session-level security controls user access to features that support it, such as connected apps and reporting. Possible values are:
  • HIGH_ASSURANCE - A high assurance session was used for resource access. For example, when the user tries to access a resource such as a connected app, report, or dashboard that requires a high-assurance session level.
  • LOW - The user’s security level for the current session meets the lowest requirements.

    This low level is not available, nor used, in the Salesforce UI. User sessions through the UI are either standard or high assurance. You can set this level using the API, but users assigned this level experience unpredictable and reduced functionality in their Salesforce org.

    Note

  • STANDARD - The user’s security level for the current session meets the Standard requirements set in the current organization Session Security Levels.
SourceIp
Type
string
Properties
Nillable
Description
The IP address from which the Apex request originated.
UserId
Type
reference
Properties
Nillable
Description
The unique ID of the user associated with the Apex request.
Username
Type
string
Properties
Nillable
Description
The username of the user associated with the Apex request.