Skip to main content

SALESFORCE DATA IMPORT

Salesforce CSV over 50,000 records: split it into safe batches

A CSV with 62,000 leads is too large for one Data Import Wizard job even if the file itself is small. Count the records below the header, then split the file by rows before deciding which batch to import first.

Published:

Updated:

Related tool: Split by rows or size

Count records for each Data Import Wizard job

Salesforce documents a maximum of 50,000 records for one Data Import Wizard job. A target of 49,000 leaves a little room to add records later.

  • More than 50,000 records: choose row-count splitting.
  • The job fails with a mapping error: compare headers and required fields first.
  • The same Lead, Contact, or Account appears twice: remove duplicates before importing.

Check the object and import key

At 49,000 data rows per batch, 62,000 records produce two files with 49,000 and 13,000 records. Each starts with the original header. Neither header counts as a lead.

  • Keep the header row in each output file.
  • Use the same external ID or Salesforce ID strategy for every batch.
  • Test a small batch first, as Salesforce recommends, before scheduling the full import.

Create batches in Maskedcsv

Maskedcsv shows the input row count and the output counts so you can reconcile the batches before Salesforce sees them.

  1. Keep the original Salesforce export. Open the split tool and select one CSV within Maskedcsv’s 500 MB input limit (524,288,000 bytes).
  2. Confirm that the first row is the header, choose the row-count method, and enter 49,000 data rows per file or a lower limit required by your runbook.
  3. Run the split, download the ZIP, and extract the numbered CSVs. Check the header in each part.
  4. Keep the numbered filenames and record which batches Salesforce accepts.
Split this CSV by row count

Reconcile the batches before Data Import Wizard

  • Check the row counts of all batches against the source. For an update, also look up one external ID from the first batch and confirm that the existing record was updated.
  • All batches contain the same headers and column order.
  • The chosen ID or external ID is present and unique where your mapping requires it.
  • The first test batch completes without creating unexpected records.

Handle errors without losing the source

If Salesforce returns failed rows, export the error file, fix only the reported columns, and retry that batch. Do not merge successful and failed rows blindly; keep the batch number in your import log.

Record the result of each import job

Once each batch is below 50,000 records and reconciled, continue in Salesforce Data Import Wizard and verify the result count after every job.

Official Salesforce documentation

Limits and import formats can change. Use the official documentation below as the final check for your account and plan.