CRM update failed: the CRM rejected the value

Updated

Applies to: Super Admins, Creators and Integrators, with Salesforce or HubSpot connected

A CRM update failed because of a value it tried to save. To see it, open the project's Automations tab, then select Logs. The failed row shows Update Salesforce Field or Update Hubspot Field in Action and an X in Success. The message in Error describes the problem with the value. Payload shows the values OnRamp sent, if it sent any.

Why it happens

Either your CRM rejected the value, or OnRamp stopped the update before sending it because a value was too long.

When your CRM rejects a value, Error shows the CRM's own error text if the CRM sends one. Otherwise, depending on the connection, it shows the raw response from the integration, or CRM update failed on followed by the object and record ID. If the CRM sends an error code that isn't already in the message, the text starts with that code, for example STRING_TOO_LONG:. A value the CRM rejects for being too long can show exceeds the field maximum of.

Before it sends anything, OnRamp checks length itself. It shortens plain text that's too long for the field, and the update goes ahead. When that happens, the row's Payload lists the shortened fields under truncated_fields, with each value's original length and the field's maximum. If a value arrived cut short in your CRM, see Project automation succeeded, but a CRM field didn't change.

OnRamp doesn't shorten a value when a shortened one would be wrong. It stops instead for:

  • IDs, project links and link data fields

  • A static value you set in the mapping

  • URL and multi-select fields in your CRM

  • Field types with no fixed length limit, such as email, phone and long text area

In these cases, Error includes accepts at most, and Payload shows only {}. The message names the field and the mapped value, and says what to do next.

Fix it

Find the reason that matches the message in Error:

What the message is about

What to change

accepts at most

Follow the message: map a shorter value, or make the field longer in your CRM. If you mapped the project link, map the project ID instead.

exceeds the field maximum of or STRING_TOO_LONG

Map a shorter value, or make the field longer in your CRM.

Cannot deserialize instance of or INVALID_TYPE_ON_FIELD_IN_RECORD

The value's type doesn't match the field, such as text mapped into a number or date field. Map a source of the matching type, or change the field's type in your CRM.

A picklist value the field doesn't allow

Follow Salesforce picklist options don't match in automation actions.

Any other message from your CRM

Change the value so it meets the field's rules in your CRM, or ask your CRM admin about the field.

  1. In the project's Automations tab, select Logs.

  2. Select View in the Error column. Compare the message with the values in Payload.

  3. Select the automation in the list. It opens in Workflow.

  4. Select the Update Salesforce field or Update Hubspot field step.

  5. Under Map fields to update, make the change the table describes. If the change belongs in your CRM, make it there instead.

  6. Select Save. You'll see Save only if you can update the project's settings. Otherwise, the automation opens read-only.

  7. Repeat the event on the project. Then, in Logs, select Refresh to see the new row.

Still stuck?

Contact support with the project's name and link, the row's Timestamp, and the text from Error and Payload. Include the field's API name and type in your CRM.

More in Automation runs