Loading

'STRING_TOO_LONG' error in Flow

Fecha de publicación: Jan 17, 2026
Descripción

When running a Flow an unhandled exception may occur that looks like the following:

UPSERT --- UPSERT FAILED --- ERRORS : (STRING_TOO_LONG) [field name]: data value too large: [field value] (max length=[field size]) --- for SFDC record with ID : null, 
Solución

Above error occurs in the following scenarios:
 

1.  If any field on the affected object contains a default value that exceeds the field size limit.  
NOTE:
a.Affected fields may or may not be part of Flows. Even, the soft-deleted fields count.
b. Salesforce counts all underlying special characters, line breaks, and hidden formatting characters used in the text toward the total character limit of the database field, pushing the total length over the limit before the visible text does.
2.  During the Record Create in Flow, a value is mapped to a field and the value exceeds the field size limit.  


To resolve this, either correct the limits or remove the fields completely.  

Número del artículo de conocimiento

000386497

 
Cargando
Salesforce Help | Article