Fixing Prospect Sync Errors with Salesforce

Most sync errors come from a small set of causes on the Salesforce side. Here is how to read them, fix the root cause and stop them coming back.

Type
Article
Topic
Account Engagement
Reading time
6 min
Updated
Author
GeekMidst Team
Reviewed by
Site owner
Banner for the GeekMidst article “Fixing Prospect Sync Errors with Salesforce”, covering How the sync works, briefly and Common errors, causes and…

A prospect fills in a form, scores well, and never appears in Salesforce. Or the lead exists, but its score, grade and campaign stay blank. Sync errors between Account Engagement and Salesforce are rarely mysterious once you know where to look, and in most orgs the cause sits on the Salesforce side: a rule, a permission or a duplicate that blocks the connector's update.

Diagram showing a prospect change passing through the connector's integration user into Salesforce checks, then either updating the lead or contact or recording a sync error to fix and retry
Most sync errors are Salesforce rejecting the connector's update, so fix the rule, permission or duplicate behind it, then retry. View full size

How the sync works, briefly

The Account Engagement connector runs as a dedicated integration user in Salesforce. When a prospect or a synced lead or contact changes, the connector tries to update the other side. Field-level sync behaviour decides which value wins for each mapped field: Salesforce's value, Account Engagement's value, or the most recently updated value. Prospects are not always created in Salesforce immediately; depending on your connector settings, a lead may only be created when the prospect is assigned or meets other criteria.

When an update is rejected, Account Engagement records a sync error with the message Salesforce returned. The error list in your connector settings is the starting point for any investigation. Fixing the cause and then retrying, or simply waiting for the next change on the record, will usually clear it.

Common errors, causes and fixes

Symptom or messageLikely causeFix
FIELD_CUSTOM_VALIDATION_EXCEPTIONA validation rule on Lead or Contact rejects the connector's updateExempt the integration user with a custom permission, or make the rule tolerate marketing-created records
INVALID_OR_NULL_FOR_RESTRICTED_PICKLISTAccount Engagement sends a value not in a restricted picklistAlign the picklist values on both sides, or map the form field to the same values
DUPLICATES_DETECTEDA Salesforce duplicate rule blocks the create or updateReview duplicate rules for the integration user; allow with alert or fix the source data
Field not updating, no error shownSync behaviour set so the other side wins, or the field is not mappedCheck the field's sync behaviour and mapping in Account Engagement
INSUFFICIENT_ACCESS_OR_READONLY or field permission errorsThe integration user lacks object or field accessGrant the required object and field-level access through a permission set
STRING_TOO_LONGA value exceeds the Salesforce field lengthIncrease the field length or truncate on capture
Prospect has no CRM recordNot yet assigned or not eligible under connector settingsReview lead creation and assignment settings and marketing data sharing rules

Before you start

The fixes below assume you have System Administrator access in a sandbox connected to a sandbox Account Engagement business unit, or that you can make metadata changes in production through your normal release process. Do not edit validation rules directly in production to make an error go away.

Validation rules: the most common cause

Validation rules written for sales users often require fields that a marketing form never collects, such as Industry or Lead Source detail. When the connector creates or updates the record, the rule fires and the update fails.

The cleanest fix is a custom permission, for example Bypass_Marketing_Validation, assigned to the integration user through a permission set. Then add NOT($Permission.Bypass_Marketing_Validation) inside the rule's formula, combined with your existing conditions using AND(). This keeps the rule in force for people while letting the connector write partial records. Review with your data owners whether those partial records need enrichment later.

Duplicates and record matching

Duplicate rules can block the connector from creating a lead that matches an existing lead or contact. Before changing the rules, check whether the duplicates are real. A quick aggregate query shows how widespread the problem is:

soql
SELECT Email, COUNT(Id) leadCount
FROM Lead
WHERE IsConverted = false
AND Email != null
GROUP BY Email
HAVING COUNT(Id) > 1
ORDER BY COUNT(Id) DESC
LIMIT 100
Find email addresses shared by more than one open lead (sample analysis query)

If the list is long, the sync errors are a symptom of a data quality problem that needs a merge exercise, not a rule change. Also check whether the same person exists as both a lead and a contact. Account Engagement matches prospects to CRM records by CRM ID where it can, so one email address can legitimately relate to more than one prospect in some configurations. Understand your matching settings before merging anything.

Field-level sync behaviour

When a field silently refuses to update, look at its sync behaviour before anything else. If it is set to use Salesforce's value, changes made in Account Engagement will be overwritten on the next sync. Score and grade fields should flow from Account Engagement, and ownership fields usually from Salesforce. Document the intended direction for every mapped field so future changes do not reintroduce the problem.

Integration user permissions

The connector can only write what its user can write. After adding a new custom field, it is easy to forget field-level security for the integration user, which leads to errors or to values that simply never appear. Use a permission set dedicated to the connector so access changes are visible and deployable.

A repeatable diagnosis routine

  1. 01

    Read the error text

    Open the sync error list in your connector settings and group errors by message. A handful of messages usually account for most errors.

  2. 02

    Reproduce on one record

    Pick a single failing prospect and the matching Salesforce record. Try the same update as the integration user in a sandbox to see the exact rule or permission involved.

  3. 03

    Fix the root cause

    Adjust the validation rule, permission set, duplicate rule or picklist through your normal release process rather than editing production directly.

  4. 04

    Retry and confirm

    Retry the failed records or trigger a change, then check that the error clears and the values appear on both sides.

  5. 05

    Prevent recurrence

    Add connector checks to your release testing so new rules and fields are tested with the integration user before deployment.

Prevention checklist

  • A dedicated permission set for the integration user, reviewed whenever fields are added
  • Validation rules that respect a marketing bypass custom permission
  • Restricted picklists aligned with form and import values
  • A documented sync direction for every mapped field
  • Sync error review as part of weekly admin routines
  • Connector scenarios included in your release testing checklist

For the bigger picture of keeping CRM and marketing data aligned, see Salesforce CRM and marketing data synchronisation. If errors keep recurring across releases, an org health check often finds the underlying rule and permission sprawl. Current connector behaviour and settings are documented in Salesforce Help.

Questions we hear

Will sync errors clear on their own?
Some do once the record changes again and the cause has gone away. Errors caused by rules or permissions keep failing until the root cause is fixed.
Should I give the integration user System Administrator access?
It removes some errors but is broader access than the connector needs. A dedicated permission set with the required object and field access is easier to audit.
Why does a prospect have no lead in Salesforce?
Often it has not met your lead creation or assignment criteria yet, or marketing data sharing rules exclude it. Check those settings before assuming an error.
Can I pause the connector while I fix things?
Yes, the connector can be paused, but changes queue up while it is paused. Plan the pause and the restart so a large backlog does not hit validation rules all at once.

Sync errors piling up?

We can trace your recurring errors to their root causes and fix the rules, permissions and mappings behind them through a proper release process.

Request a connector review →

Tell us what you are trying to fix.

Share your Salesforce setup, goals and constraints. A practitioner reads every message and replies with questions, first thoughts or an honest view of whether you need outside help at all.

Talk to a Salesforce Expert
Book a Consultation