It may happen that sending data to Salesforce fails for some participants, depending on the configuration of your Salesforce instance, the configuration of registration forms on Eventmaker, or other factors.
This article aims to list the most common errors encountered with the Salesforce REST API and how to resolve them.
FIELD_CUSTOM_VALIDATION_EXCEPTION
A validation on the entity to be created or updated has failed. a registration value entered in Eventmaker is considered incomplete or invalid by Salesforce. Please first ensure that the validations on the registration form match those on the field in Salesforce, and then edit the incomplete or invalid participant data in Eventmaker.
STRING_TOO_LONG
The string entered by the participant in the field indicated in the error is too long. We recommend adding character limits to your form fields in accordance with Salesforce limits. Then correct the overly long data in the participant on Eventmaker.
REQUIRED_FIELD_MISSING
A required field was not entered during the participant's registration. We recommend marking as required in Eventmaker any field that is mandatory in Salesforce. You should also avoid manual participant entry from the back office by an uninformed person to prevent these errors.
CANNOT_REPARENT_RECORD
The connector is attempting to update a Contact/Lead/Account record in Salesforce whose owner is now an inactive user, which is prohibited via the API. You must assign the problematic record to a new, active owner.
INVALID_OR_NULL_FOR_RESTRICTED_PICKLIST
The connector is attempting to populate a Picklist field with an unauthorized value. Please ensure that the values configured in the Eventmaker field match the API names of the values in the Salesforce field, then modify the affected participants accordingly.
UNABLE_TO_LOCK_ROW
The Contact/Lead/Account record that the connector is trying to update is already being edited by another user. Please retry synchronization a little later for the participant.
Failed to open TCP connection to login.salesforce.com:443
Temporary connection error to the Salesforce REST API. You can try restarting synchronization for the participant.
Connection reset by peer - SSL_connect
Temporary connection error to the Salesforce REST API. You can try restarting synchronization for the participant.
CANNOT_EXECUTE_FLOW_TRIGGER
An automated process on Salesforce has failed and prevents the synchronization from completing. Information may be missing on the participant, the entity on Salesforce may be invalid, or the automated process may be incorrect.
INVALID_CROSS_REFERENCE_KEY / ENTITY_IS_DELETED
The connector is attempting to update a Contact/Lead/Account that no longer exists. You must reset the Salesforce references on the participant and retry synchronization to Salesforce.
invalid grant
The authentication parameters for the Salesforce REST API are invalid, or the user account password has expired. In this case, you must reconnect Eventmaker to your Salesforce instance.
A high number of requests to the Salesforce REST API in a short period may also trigger this error once the request quota is exceeded. In that case, wait for a quieter period and rerun the failed runs.
DUPLICATES_DETECTED
When creating or updating a Contact/Lead/Account, the API indicates that a duplicate already exists for that same entity, preventing the action from completing. Please check duplicates for the Contact/Lead/Account in Salesforce and merge them.
