Salesforce

How do I fix an error displayed on the Salesforce Sync Error screen?

Last updated: April 24, 2018

Applies to:

Marketing Hub
marketing-pro-enterprise
Professional, Enterprise
Sales Hub
sales-pro-enterprise
Professional, Enterprise

Below are common causes of Salesforce sync errors and information on how you can fix them: 

Converted lead

This contact has been converted from a lead to a contact in Salesforce. Since you have selected to automatically add leads created in Salesforce but not contacts to HubSpot, HubSpot can no longer sync with this contact. To change this:

  • In your HubSpot account, click your photo or avatar in the top right-hand corner, then click Integrations.

  • Locate the Salesforce integration, then click the More dropdown menu and select View settings.
  • Under Salesforce Contacts, select If eligible to sync, create a HubSpot contact when a Salesforce contact is created or If eligible to sync, create a HubSpot contact when a Salesforce contact is created or an existing contact is updated.

Once you've changed this setting, contacts will sync successfully again the next time they are changed in HubSpot or Salesforce.

Data type mismatch

When a HubSpot property and a Salesforce field are mapped together but have some different data types (e.g., the HubSpot property is a Dropdown type and the Salesforce field is a Currency type), data between the two may not sync. To fix this, you'll need to change the type of one of the fields to more closely mirror or match the field that it's mapped to (in the example above, changing the Salesforce field to a Picklist would resolve the issue).

Deleted in Salesforce or Merged in Salesforce

When a contact is deleted in Salesforce or merged into another contact in Salesforce but still exists in HubSpot, this error will occur. The error doesn’t prevent any data from syncing, but is a good indication that HubSpot and Salesforce might become out of sync over time.

To prevent this, you can opt to delete a HubSpot contact when its corresponding lead/contact in Salesforce is deleted or merged:

  • Locate the Salesforce integration, then click the More dropdown menu and select View settings.
  • Under Deleting Contacts from HubSpot, check Delete the contact in HubSpot when a Salesforce lead is deleted and Delete the contact in HubSpot when a Salesforce contact is deleted.

Edited during sync

This occurs when a user in Salesforce is editing a contact at the same time HubSpot is trying to sync with it. HubSpot will successfully sync with the contact the next time that a sync is triggered on it. If you'd like a contact to sync immediately, click Resync with Salesforce in the Salesforce Sync card on a contact record. 

Inactive Salesforce owner 

HubSpot can't sync changes because the owner of this item is inactive in Salesforce. Verify that the owner in Salesforce is active or transfer the item to an active owner. 

Invalid domain for a property from Salesforce 

The value provided is not a valid domain for the property. Double-check the domain and enter a valid one.

Non-unique options

This occurs when a Salesforce field with options associated with it (usually a picklist) have two options that are the same. HubSpot is unable to know which Salesforce option to sync the value in HubSpot with, so the sync will fail.

To fix this, log into Salesforce, go to [Your Name] > Setup then find the field and delete one of the duplicate options. Once you do, the contacts will successfully sync next time a value on the contact changes. If you’d like to resync the contacts immediately, make a list of those contacts and click Resync with Salesforce in the list of contacts.

Other

This is an issue that HubSpot is unable to identify. If this issue represents a small fraction of your total syncs, allow some time to pass first, as these errors resolve themselves in many cases. If the issue persists, contact HubSpot Support for further assistance.

Salesforce save error

When HubSpot is unable to save data to Salesforce, this error occurs. Next to your Salesforce save error, you'll see data from Salseforce that indicates what caused the save error. For example, HubSpot might be unable to save a contact to Salesforce because of an invalid email address.

SOQL queries limit exceeded or Code statement limit exceeded

SOQL queries use the Salesforce Object Query Language (SOQL) to search for data that meet certain conditions in Salesforce, and Salesforce packages run code on a Salesforce org to retrieve certain information. Each Salesforce org is provisioned a certain number of concurrent and total number of SOQL queries and code statements per day, and encountering this error will cause some contacts not to sync.

This error is most commonly associated with third-party packages installed into your Salesforce org, which can sometimes conflict with HubSpot. For example, if you have a package that de-duplicates records in Salesforce, it may be at odds with HubSpot. First, try uninstalling the third-party package and see if the error persists. If you still see the error, generate a debug log in Salesforce by going to:

*Your Name* > Set up > Monitoring > Debug Logs or Logs > Debug Logs, then reach out to HubSpot Support.

Unsupported item assigned to queue

This error occurs when an item is assigned to a queue, but Salesforce does not support queues owning this type of item. 

Validation error

Validation errors occur when a contact from HubSpot doesn't meet the requirements for a validation rule that is set on a lead, contact, or account record in Salesforce (e.g., "Lead must have a company" or "Account must have a zip code").

In many cases, this validation rule is set up without fully realizing the implication it has on the HubSpot integration with Salesforce. If a contact can't sync to Salesforce because of a validation rule, the sync for that contact will fail indefinitely. To resolve this error, remove the validation rule.

Was this article helpful?

If you still need help you can get answers from the , or to contact support.