ApiBatchItems Limit Exceeded Exception in Salesforce

ApiBatchItems Limit Exceeded Exception in Salesforce

ApiBatchItems limit hits or the Exception is thrown when the total number of batches processed in a day exceeds the allowed limit in your Salesforce org.

Bulk API Batch Allocations:

We can submit only up to 15,000 batches per rolling 24-hour period.

Workaround:

Bulk API 2.0 is the best option to overcome this limitation in Salesforce.

Why Bulk API 2.0?

1. In Bulk API 2.0, only ingest jobs consume batches. Query jobs don’t consume batches.

2. In Bulk API 2.0, batches are created for you automatically. In Bulk API, you must create the batches yourself.

Reference Articles:

https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/bulk_common_limits.htm

https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_bulkapi.htm

Leave a Reply