Loading

Proactive Alert Monitoring: Concurrent API Errors

Data pubblicazione: Aug 31, 2023
Descrizione

Salesforce limits the number of Long Running API requests in your org. Once this limit is exceeded, you may encounter Concurrent API Errors, caused by subsequent requests’ attempts to process whilst the limit is exceeded. By default this is typically set to 25 long running API calls over 20 seconds.

The Signature Success plan’s Proactive Monitoring product will monitor for, and alert you to, sustained volumes of these errors. This article outlines some scenarios to help you investigate should you receive an alert. In addition, on the Salesforce Help site Designated contacts and above can see your realtime metrics, alerts & more.

If you receive the following error message, your organization may experience performance issues and possible service disruptions.

Full error message text:

  • 'ConcurrentRequests (Concurrent API Requests) Limit exceeded'

Causes

Concurrency issues of this type often arise due to:

  • Long Running API requests
  • Poorly coded Apex Web Services
  • Inefficient SOQL queries

Note: Concurrent API Errors may also contribute to Concurrent Apex and Connection Pool Errors, given the right circumstances.

Risoluzione

Here are some common practices & resources that may help to resolve this error.


Reduce the number of Apex trigger, workflow, and validation rules on your objects

  • All of these take time, and the more you have, the longer Salesforce takes to save a record.


Reducing the amount of data you are passing

  • Creating 200 records per call takes a long time. Try creating 100 per call, or 50. However, API requests limits should be taken into consideration before proceeding with any changes.


Poorly coded Apex Web Services

  • Always reference best practices provided in our Apex Developer Guide to optimize Apex Web Service (SOAP and REST) usage


Inefficient SOQL queries

  • Salesforce allows queries to run for up to 2 minutes, but generally we want them to run as fast as possible. Adding additional filters, custom indexes, and ID filters to your query statements are good starts.
  • Use the Query Plan Tool to validate and optimize performance.


Additional Resources:

Help and Developer resources

Trailhead training modules

Numero articolo Knowledge

000389067

 
Caricamento
Salesforce Help | Article