Loading

Reduced Limit for Number of Actions in a Boxcar Request

Data pubblicazione: Jun 26, 2026
Descrizione

This article explains a reduced platform limit for the number of Aura server-side actions that can be sent in a single HTTP request (called a "boxcar" or XHR request) in Salesforce Lightning.


What is a Boxcar (XHR) Request? In Salesforce's Aura (Lightning component) framework, the browser bundles multiple server-side action calls into a single HTTP request to improve performance. This bundled request is called a boxcar or XHR (XMLHttpRequest) batch. The platform enforces a maximum number of actions that can be included in one boxcar request.


What Changed The limit for the number of actions allowed in a single boxcar request has been reduced to 250 actions per request. If a Lightning component or page attempts to enqueue more than 250 actions in one batch cycle, some actions may be dropped or result in errors.

Risoluzione

Immediate Mitigation

To avoid hitting the new 250-action limit, reduce the number of Aura server-side actions enqueued in a single component lifecycle. Review your Lightning components and identify locations where large numbers of $A.enqueueAction() calls are made in rapid succession within the same rendering cycle.
Steps to mitigate immediately:

  1. Audit your Lightning components for loops that call $A.enqueueAction() more than 250 times in a single pass.
  2. Break large batches of server calls into smaller sequential calls using callback chaining or a queue-based pattern.
  3. Consider caching server responses using storable actions (action.setStorable()) to reduce repeated server calls.

Long-Term Remediation

For a permanent fix, refactor your server-side Apex controllers to consolidate multiple small data retrieval calls into fewer, larger calls that return more data per request. For example, if a component makes 300 individual getRecord() calls, consolidate them into a single Apex method that accepts a list of IDs and returns all records at once.

 

Numero articolo Knowledge

005387174

 
Caricamento
Salesforce Help | Article