Limits and Allocations

The following limits and allocations and limits apply to Bulk API 2.0.

Limits for Ingest Jobs

Item Limit
Maximum number of records uploaded per rolling 24-hour period 150,000,000
Maximum number of times a batch can be retried. See How Requests Are Processed. The API automatically handles retries. If you receive a message that the API retried more than 10 times, use a smaller upload file and try again.
Maximum file size. 150 MB
Maximum number of characters in a field. 32,000
Maximum number of fields in a record. 5,000
Maximum number of characters in a record. 400,000

Limits for Query Jobs

Item Limit
The maximum number of query jobs per 24-hour rolling window.

The current number can be seen in the DailyBulkV2QueryJobs value in the response to the /vXX.X/limits/ REST API method.

10,000
The total query results that can be generated per 24 hour rolling window.

The current size can be seen in the DailyBulkV2QueryFileStorageMB value in the response to the /vXX.X/limits/ REST API method.

1 TB
The maximum number of times a query job is retried before failure. The API automatically handles retries. If you receive a message that the API retried more than 15 times, apply a filter criteria and try again.
Results lifespan. Jobs that are older than 7 days are deleted if they are in a terminal state (completed or failed),

Batch Allocations

In Bulk API 2.0, you do not have to manage batches. The API creates and handles them for you transparently in the background. This lets you focus on managing the jobs instead of the batches.

And in Bulk API 2.0, only ingest jobs consume batches. Query jobs do not. For details, see How Requests Are Processed.

The batch allocation (15,000 batches per day) is shared between Bulk API and Bulk API 2.0, so every batch that is processed in Bulk API or Bulk API 2.0 counts towards this allocation.

In Bulk API 2.0, each ingest job creates an initial batch with zero records. This empty batch does not contribute to the daily allocation limit.

Note

See Also

For a comparison with Bulk API limits, see the Salesforce Developer Limits and Allocations Quick Reference.