Salesforce Bulk API 2.0: Loading Large Data Sets Without the Headaches
If you have ever tried to load 50,000 records into Salesforce with the default Data Loader settings, you know the feeling: the progress bar crawls, a batch fails at 92%, and you are left guessing which records made it in and which did not. The Bulk API 2.0 exists for exactly this job — and once you understand how it thinks, large data loads stop being stressful.
What Bulk API 2.0 Actually Does
Bulk API 2.0 is Salesforce's asynchronous data-loading API. Instead of sending records one request at a time, you create a job, upload a CSV file, and Salesforce processes the records in the background while you get on with your day.
The flow is simple: create a job (insert, update, upsert, or delete), upload your CSV, close the job, and then check the job's status. Salesforce returns success and failure files you can download, so every record's outcome is accounted for. There is no mystery about what landed and what did not.
When to Use It — and When Not To
Reach for Bulk API 2.0 when you are moving thousands of records or more: data migrations, nightly syncs from another system, or bulk cleanups. For a few hundred records, the standard Data Loader or even the Import Wizard is faster to set up and easier to watch.
The one thing it will not do is fix bad data. A bulk load multiplies whatever quality your source file has — good or bad. Clean the data first: standardize picklist values, deduplicate, and validate required fields before you upload. We wrote about why that cleaning step matters before any AI or automation project in this guide to data cleaning for AI strategy.
Five Practices That Keep Loads Boring
1. Upsert with an external ID. If your records have a stable identifier from the source system, store it in an external ID field and upsert against it. You get insert-or-update in one pass, and re-running a job never creates duplicates.
2. Keep files under the limits. Bulk API 2.0 accepts CSV files up to 150 MB, and each job can process up to 150 million records. But a single giant file is harder to troubleshoot — split very large loads into logical chunks, one object or one business unit at a time.
3. Watch the job, don't just fire it. A job moves through states: Open, UploadComplete, InProgress, JobComplete. Check the state before you assume anything, and download the failed-records file when the job finishes. Failed rows include an error message per row — usually a validation rule, a missing required field, or a bad lookup value.
4. Respect the daily limits. Each org gets 10,000 Bulk API batches per rolling 24 hours (and 15,000 Bulk API 2.0 jobs per day in most editions). Sounds generous until a scheduled integration retries aggressively. If you are building an integration, test your code the way you would test any Apex — with real governor-limit awareness.
5. Load in dependency order. Parent records first, then children. Accounts before contacts, opportunities before opportunity products. It sounds obvious, and it is the step most often skipped at 11 PM before a go-live.
Common Gotchas Worth Knowing
- Validation rules still fire. Bulk API does not bypass them. If a rule blocks a record, that row fails while the rest succeed — which is exactly why the failed-records file exists.
- Triggers and Flows run on every record. A heavy Flow on the object you are loading will slow the job and can push you into governor limits. Consider deactivating non-essential automation during a migration window, then turning it back on.
- Hard deletes are permanent. The hardDelete operation skips the Recycle Bin. Use it only when you are certain, and always run a delete against a small test batch first.
The Bottom Line
Bulk API 2.0 turns a scary migration into a repeatable process: prepare the file, create the job, monitor the state, and reconcile the failures. The tool is forgiving if you respect it — clean data in, checked results out, and no heroics at midnight.
Originally published at Way2Force. Rohan Mehta is a Salesforce writer at Way2Force — practical guides on Salesforce Flow, automation, and CRM.


