Troubleshooting Salesforce Data Loader errors?

Learn how to fix OAuth login issues, validation failures, duplicate rules, permissions, and ID-related errors step by step.
Interested in testing a pre-release of the Salesforce community's first-ever Data Migration course?
Sign Up below to secure a spot.

How to Solve 5 Salesforce Data Loader Errors that Stop a Data Migration in its Tracks.

If you are doing data migrations in Salesforce, Salesforce Data Loader is one of those tools that can feel like magic right up until it stops cold. Suddenly you have an error file, an “adventure in itself,” and no clear field name to fix.

If you want a visual walkthrough, check out 5 Salesforce Data Loader Errors That’ll Kill Your Upload & How to Solve Them for a step-by-step guide.

Here are the five most annoying Data Loader failures (the ones that repeatedly derail imports), plus practical ways to troubleshoot and unblock your upload fast.

If you want a visual walkthrough, check out 5 Salesforce Data Loader Errors That’ll Kill Your Upload & How to Solve Them for a step-by-step guide.

Table of Contents

Can’t Log In to Salesforce Data Loader (OAuth Login Failure)

This is the most frustrating kind of failure because it is not even about your data. You are doing the setup work, entering credentials, and Data Loader simply will not connect.

What it usually looks like

  • “Unable to complete OAuth login”
  • “Contact your Salesforce admin” (even when you are the admin)
  • “Destination URL not reset” or “failed send request”

Why it happens

The common root cause is that Data Loader is pointing to the wrong Salesforce org for authentication. Think of it like having the right key but walking up to the wrong front door. The utility can be configured for one environment while your credentials are for another.

Why it happens

  1. Update Data Loader’s authentication host:
    • Open Data Loader settings
    • Find the authentication host domain URL for production
    • Set it to login.salesforce.com
  2. Update Data Loader to the latest version:
    • In Salesforce, go to Settings
    • Look for Data Loader and the downloads
    • Install the most recent utility on your computer
  3. As a last resort: reinstall Data Loader if the login configuration still will not behave.

Oddly specific” validation error messages (records fail validation)

This error category is sneaky because Data Loader does not always tell you which field in the row caused it. You get an error message like:

“Clients must have a website”

And you are left thinking: what field is failing and why?

How to diagnose the real problem

Instead of guessing, treat the message like a clue. Read it and determine what it is not:

  • It is typically not a duplicate rule error
  • It is typically not an invalid field value error

The wording usually indicates a requirement needed to create a record that is missing from your source file.

Find the matching Salesforce validation rule

Go to the object’s Validation Rules and search for the rule whose error text matches what Data Loader reports.

Example:
If you tried to create an Account with Status = Client but your file omitted Website, that record fails the validation rule and never gets created.

Three options to solve it

  1. Deactivate the validation rule temporarily and reload:
    • Fastest path to get the load marked complete
    • But the rule will keep preventing updates until data satisfies the requirement
  2. Fix the source data to include the required values:
    • Best long-term outcome because records are clean and validated
    • Be careful with “fake temporary values” like http://www.websitewebsite.com just to pass validation
  3. Modify the validation rule to include bypass logic for admins:
    • Great for admins running loads
    • But if you are consulting on best practices, make sure the bypass does not turn into an “old process forcing new systems” problem
    • Otherwise, end users can get blocked all day by validation rules and feel like they have to fight the platform

Duplicate rule blocker (“Use one of these records?”)

When you insert or edit records that hit active duplicate rules, Salesforce can stop the import with the out-of-the-box message:

“Use one of these records?”

That message confirms your blocker is duplicate rules. One catch: duplicate rule alert text can be customized, so always double-check the rules if the text does not exactly match what you expect.

How to solve it

Ideally, you prevent duplicates in the first place. But during migrations, you sometimes have to load records that may be duplicates, knowing de-duping will happen later.

Fastest workaround options:

  1. Temporarily deactivate the offending duplicate rules
    • Then reload
    • Do not forget to reactivate after the migration
  2. Change the duplicate rule action from “block” to “allow”
    • Also remember to switch it back

“Insufficient access rights” errors (permissions, sharing, cross-reference)

This is the error that feels like Salesforce is playing hide-and-seek. The message often does not identify which field in the row is causing the issue.

Still, you can troubleshoot it systematically.

Start with a three-step method

  1. Identify which specific error you got
  2. Validate the ID values in your prepped file
  3. If prep looks correct, investigate sharing/record access

Two flavors of insufficient access rights

Insufficient access rights to Object ID

This typically indicates a permissions problem on the object you are loading into.

  • For example, inserting Opportunities may fail if the running user (or record owner) lacks object-level permissions for Opportunities
  • It could also be field-level security missing for a field you are updating

That message confirms your blocker is duplicate rules. One catch: duplicate rule alert text can be customized, so always double-check the rules if the text does not exactly match what you expect.

Insufficient access rights on Cross-Reference ID

This points to a related record you are referencing that the running user or record owner cannot access.

  • Example: inserting Opportunities and setting Contract ID without access to the Contract object can trigger this error

Speed up troubleshooting: check the IDs you rely on

Because Data Loader inputs can contain multiple lookup relationships, field-by-field checks can become time-consuming. A high-yield place to start:

  • Confirm record type IDs for the main object are valid
  • If you are not using record type IDs, you can rule that out immediately
  • If you are using them, verify:
    • Correct digit length (no malformed IDs)
    • No typos from prep work (including mistakes from VLOOKUPs)
    • Correct mapping from source to target columns

Any time Salesforce receives an ID it cannot find in the expected place, it can return an insufficient access error.

What about deleted or unshared records?

Two common hidden causes:

Referenced record is deleted

  • Grab a referenced ID from the error file
  • Paste it into Salesforce in the URL format: https://yourInstance.my.salesforce.com/.../aftercom (use the pattern your org supports)
  • If it does not resolve, that ID is not valid anymore

Referenced record exists, but is not shared with the record owner

  • Log in as the record owner
  • Try to access the referenced record
  • If they cannot see it, Data Loader cannot complete the load either

Salesforce can generate these errors for many reasons. The steps above cover the majority of real-world cases, but not every edge case.

“ID value of incorrect record type” (ID belongs to the wrong object or format)

This fifth error is similar in spirit to insufficient access rights. The key detail is that the ID Salesforce receives does not match what it expects for the target field.

What it means

You typically see it when an ID is:

  • Assigned to the wrong field
  • Belongs to the wrong object (wrong record type in the context)
  • Malformed (wrong format, spacing issues)

How to troubleshoot it

Insufficient access rights to Object ID

Use the same mindset as the previous error: validate ID correctness first, then validate mapping.

  • Ensure the ID is exactly 15 or 18 characters
  • Ensure it has no white spaces
  • Ensure the ID is the right ID for the target object and the right field you are loading
  •  

Yes, it is tedious. But it is also one of the fastest ways to learn how Salesforce wants your data model and file structure to line up so loads succeed.

Salesforce Data Migration Guide

Quick Navigation: 5 Common Errors

5 Common Salesforce Data Loader Errors & How to Fix Them​

Salesforce Data Loader is an essential tool for bulk importing, exporting, and updating records. However, navigating complex enterprise datasets is rarely a completely seamless process. Below, we break down the five most frequent Data Loader error codes, analyze their technical root causes, and provide actionable step-by-step solutions to ensure your CRM migrations run clean and error-free.

1. REQUIRED_FIELD_MISSING: Universal Rules Violated

This error triggers when you attempt to insert or update records without providing values for fields marked as universally required at the database level, required via page layouts, or enforced through active Validation Rules. **How to Fix:** Inspect your CSV mapping file. Ensure that target columns mapped to mandatory fields like *Last Name* on Contacts or *Company* on Leads contain valid, non-blank values. If the validation is temporary, consider deactivating the validation rule during migration.

2. INVALID_EMAIL_ADDRESS: Strict Validation Failure

Salesforce enforces strict standards on any Email field type. If your dataset contains entries with typos (e.g., missing ‘@’, trailing whitespaces, or double domains like ‘name@domain..com’), Data Loader rejects the entire row. **How to Fix:** Cleanse your source spreadsheet. Run a regular expression filter in Microsoft Excel or Google Sheets to find and fix improperly formatted emails before re-initiating your import task.

3. DUPLICATE_VALUE: Unique Key Constraint Violation

This error is thrown when your CSV attempts to insert a record containing a value already present in a field designated as ‘Unique’ (such as an External ID or unique custom field). **How to Fix:** Perform a primary key audit. If you meant to update records that already exist, utilize the **Upsert** operation in Data Loader rather than **Insert**, matching by the External ID field to merge the records gracefully.

4. MALFORMED_ID: Invalid Salesforce Record ID Format

Salesforce expects a precise 15-character or 18-character alphanumeric ID when mapping relationship fields (lookup/master-detail) or targeting record IDs during updates/deletes. Typographical errors or mismatched object types cause immediate rejection. **How to Fix:** Check your cross-references. Make sure you aren’t mapping a Contact ID to an Account Lookup, and confirm that no IDs have been truncated or altered during Excel exports.

5. UNABLE_TO_LOCK_ROW: Concurrent Transaction Conflicts

When Data Loader runs with a high batch size, multiple threads might attempt to update child records belonging to the same parent account or trigger sharing rules concurrently. Since Salesforce locks the parent record to prevent conflicts, other threads time out. **How to Fix:** Open Data Loader Settings. Reduce the **Batch Size** from the default 200 down to 50, 10, or even 1. Alternatively, enable Serial Mode for bulk API or temporarily pause process builders and triggers during the load.
Need Professional Salesforce Migration Support?
Struggling with complex Salesforce data transformations, enterprise integrations, or large-scale legacy platform migrations? Our certified consultants are here to manage clean-ups, validation architecture, and custom pipelines safely.

Frequently Asked Questions

How do I quickly tell whether a Salesforce Data Loader error is caused by validation rules or duplicate rules?

Look at the wording. Validation rule errors usually sound like a required condition for the record (for example, “Clients must have a website”). Duplicate rule errors often use the Salesforce duplicate rule style message such as “Use one of these records?”.

What is the fastest fix for “Can’t log in to Salesforce Data Loader”?

Update Data Loader’s authentication host domain URL for production to login.salesforce.com. If that does not work, update Data Loader to the latest version from Salesforce. Reinstall only if needed.

Why does Salesforce show “insufficient access rights” when my IDs look correct?

Because access problems can be caused by object permissions, field-level security, or sharing. This is especially common with “cross-reference ID” errors where the related record exists but is not accessible to the running user or record owner.

Should I deactivate validation rules or duplicate rules during data loads?

It can be appropriate for migrations when you understand the tradeoffs. Deactivating rules can unblock the load quickly, but those rules will continue to block future updates until the data meets requirements. Always plan to reactivate or adjust rules after the import.

What does “ID value of incorrect record type” usually come down to?

An ID that is the wrong type for the field, has a formatting problem, or is mapped to the wrong column. Verify IDs are 15 or 18 characters, contain no spaces, and match the expected object/record type context.

6 Responses

Leave a Reply

Discover more from SMC Migrations

Subscribe now to keep reading and get access to the full archive.

Continue reading